Skip to main content

Python Base SDK for interacting with the Toolbox service

Project description

MCP Toolbox Logo

MCP Toolbox Core SDK

PyPI version PyPI - Python Version Coverage Status License: Apache 2.0

This SDK allows you to seamlessly integrate the functionalities of MCP Toolbox allowing you to load and use tools defined in the service as standard Python functions within your GenAI applications.

For detailed guides, authentication examples, and advanced configuration, visit the Python SDK Core Guide.

Installation

pip install toolbox-core

Quickstart

Here's a minimal example to get you started. Ensure your Toolbox service is running and accessible.

import asyncio
from toolbox_core import ToolboxClient

async def main():
    # Replace with the actual URL where your Toolbox service is running
    async with ToolboxClient("http://127.0.0.1:5000") as toolbox:
        weather_tool = await toolbox.load_tool("get_weather")
        result = await weather_tool(location="London")
        print(result)

if __name__ == "__main__":
    asyncio.run(main())

Usage

The core package provides a framework-agnostic way to interact with your Toolbox server. For detailed guides and advanced configuration, please visit the following sections on our Documentation Site:

Contributing

Contributions are welcome! Please refer to the DEVELOPER.md file for guidelines on how to set up a development environment and run tests.

License

This project is licensed under the Apache License 2.0. See the LICENSE file for details.

Support

If you encounter issues or have questions, check the existing GitHub Issues for the main Toolbox project.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

toolbox_core-1.1.0.tar.gz (56.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

toolbox_core-1.1.0-py3-none-any.whl (53.3 kB view details)

Uploaded Python 3

File details

Details for the file toolbox_core-1.1.0.tar.gz.

File metadata

  • Download URL: toolbox_core-1.1.0.tar.gz
  • Upload date:
  • Size: 56.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.2.0 CPython/3.11.2

File hashes

Hashes for toolbox_core-1.1.0.tar.gz
Algorithm Hash digest
SHA256 f3fc2e68527c2e1671e4fa8894f512e146d3821aafac3ed4d4542faac0fe1dfc
MD5 bebd27a597414d4113b5b6b207cc7fb6
BLAKE2b-256 612a6c335548edd70cfe8ba710c727cffd57d90c0d378a332154e5393c4dc23f

See more details on using hashes here.

Provenance

The following attestation bundles were made for toolbox_core-1.1.0.tar.gz:

Publisher: google-cloud-sdk-py@oss-exit-gate-prod.iam.gserviceaccount.com

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.
  • Statement: Publication detail:
    • Token Issuer: https://accounts.google.com
    • Service Account: google-cloud-sdk-py@oss-exit-gate-prod.iam.gserviceaccount.com

File details

Details for the file toolbox_core-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: toolbox_core-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 53.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.2.0 CPython/3.11.2

File hashes

Hashes for toolbox_core-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dae6788cdb318e39a0063f464bfdff34ca6f86aee6338bdfff53d6e65beb3ff6
MD5 817aebaf982be810b083968e6020a826
BLAKE2b-256 0ff4f079d6cec60105d8241001e4e120ec64cccb7a04643ba8b5d3193ec3fe79

See more details on using hashes here.

Provenance

The following attestation bundles were made for toolbox_core-1.1.0-py3-none-any.whl:

Publisher: google-cloud-sdk-py@oss-exit-gate-prod.iam.gserviceaccount.com

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.
  • Statement: Publication detail:
    • Token Issuer: https://accounts.google.com
    • Service Account: google-cloud-sdk-py@oss-exit-gate-prod.iam.gserviceaccount.com

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page