Skip to main content

McpPlug (Python)

Ported line-for-line from the TypeScript implementation. See the root README for the pitch and the scope decisions — this file only covers what's specific to running the Python code.

Install

pip install -e ".[dev]"

Quickstart

Requires the composio CLI installed and authenticated (composio link <toolkit>) for whichever tools you list.

from mcpplug import ComposioSourceOptions, connect_composio_source

github = await connect_composio_source(
    "gh", ComposioSourceOptions(slugs=["GITHUB_LIST_REPOSITORIES_FOR_THE_AUTHENTICATED_USER"])
)

tools = await github.load_tools()
# -> [ToolDefinition(name='gh_GITHUB_LIST_REPOSITORIES_FOR_THE_AUTHENTICATED_USER', ...)]

result = await tools[0].execute({"per_page": 5})

Merge tools into any agent's tool list — each ToolDefinition is the same shape a loopengine-style AgentConfig.tools expects.

Test

pytest

Status

The ToolSource protocol and the Composio-backed source are real and tested (tests/test_composio_source.py uses a stand-in CLI script, not a live network call). Not yet published to PyPI.

Release files for mcpplug 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcpplug 0.0.1
File Size Uploaded
mcpplug-0.0.1.tar.gz 4.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mcpplug 0.0.1
File Interpreter ABI Platform
mcpplug-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 9.5 kB

Release files / mcpplug-0.0.1.tar.gz

Download URL mcpplug-0.0.1.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d965ea6e5c80fb87c1fbd9e3c31b6ef1d8da1497eaa0d0b584724e0e83b3e906
BLAKE2b-256 checksum
How to use checksums
22fe3b5f4d38fcb3d8d1de507951f9d6aa71bdf4f7736f7922f40f03d0140366
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.8

Release files / mcpplug-0.0.1-py3-none-any.whl

Download URL mcpplug-0.0.1-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
66164b3351ba0c0a68cca33bc1ddb11933557f5082d7efd2d76796af5220b3a6
BLAKE2b-256 checksum
How to use checksums
f42ec25cdf49d257bfe6fb199580f16731c8505e938e3331fc8834ace262530d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.8

Release history Release notifications | RSS feed

0.0.2

2 release files

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page