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.0.0.tar.gz (52.8 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.0.0-py3-none-any.whl (51.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: toolbox_core-1.0.0.tar.gz
  • Upload date:
  • Size: 52.8 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.0.0.tar.gz
Algorithm Hash digest
SHA256 4da19c19797b15ffddfd2526be191ec084549348abef01c91738e6da174b0825
MD5 2758ec7803264a51215ad6dd3e2e9553
BLAKE2b-256 fc5c599a13fb527bda261b276f3b6d60a10c24eac433f0ac1c6100f596b9f925

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: toolbox_core-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 51.0 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.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f181c33a1b3ac4189794036b9d36b192b2f0c405f947df09fa1aed83e4e1dc67
MD5 db7d6a5204be884ae0238340b1076c18
BLAKE2b-256 d8866685bcce748cb27dc8a0cf5e5abe207081fadc0c31d81de31fe81dfc52db

See more details on using hashes here.

Provenance

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