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.3.0.tar.gz (65.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.3.0-py3-none-any.whl (64.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: toolbox_core-1.3.0.tar.gz
  • Upload date:
  • Size: 65.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.3.0.tar.gz
Algorithm Hash digest
SHA256 2bb3e89ecd5304e0c285d5dbe6c16f7ecf31bf1319427133b465e11807402ec9
MD5 0efafcfbaf1b1a9c72f7e74b9bdc0503
BLAKE2b-256 fac0b17db1b36e81a001ed0d2efe040968b797f7bdec08dfe614e565bbd67cd5

See more details on using hashes here.

Provenance

The following attestation bundles were made for toolbox_core-1.3.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.3.0-py3-none-any.whl.

File metadata

  • Download URL: toolbox_core-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 64.6 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d08743d278bb1b62dc2fcd4adb82c8982e7aeb7b457057ba26b41f9102c498d3
MD5 053c997d7c3ec56149eca9a5ccdc0cde
BLAKE2b-256 1fed64b1d6ba971a34811bb3beb3b7fa6d99883c128cbf3bc8ac4e9e5aab088c

See more details on using hashes here.

Provenance

The following attestation bundles were made for toolbox_core-1.3.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