Python Base SDK for interacting with the Toolbox service
Project description
MCP Toolbox Core SDK
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:
- Transport Protocols
- Loading Tools
- Invoking Tools
- Synchronous Usage
- Use With Langraph
- Client to Server Authentication
- Authenticating Tools
- Binding Parameter Values
- OpenTelemetry
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4da19c19797b15ffddfd2526be191ec084549348abef01c91738e6da174b0825
|
|
| MD5 |
2758ec7803264a51215ad6dd3e2e9553
|
|
| BLAKE2b-256 |
fc5c599a13fb527bda261b276f3b6d60a10c24eac433f0ac1c6100f596b9f925
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
toolbox_core-1.0.0.tar.gz -
Subject digest:
4da19c19797b15ffddfd2526be191ec084549348abef01c91738e6da174b0825 - Sigstore transparency entry: 1180486900
- Sigstore integration time:
-
Token Issuer:
https://accounts.google.com -
Service Account:
google-cloud-sdk-py@oss-exit-gate-prod.iam.gserviceaccount.com
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f181c33a1b3ac4189794036b9d36b192b2f0c405f947df09fa1aed83e4e1dc67
|
|
| MD5 |
db7d6a5204be884ae0238340b1076c18
|
|
| BLAKE2b-256 |
d8866685bcce748cb27dc8a0cf5e5abe207081fadc0c31d81de31fe81dfc52db
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
toolbox_core-1.0.0-py3-none-any.whl -
Subject digest:
f181c33a1b3ac4189794036b9d36b192b2f0c405f947df09fa1aed83e4e1dc67 - Sigstore transparency entry: 1180486898
- Sigstore integration time:
-
Token Issuer:
https://accounts.google.com -
Service Account:
google-cloud-sdk-py@oss-exit-gate-prod.iam.gserviceaccount.com
-
Statement type: