Skip to main content

MCP client tool for exoclaw — connects to MCP servers and wraps their tools

Project description

exoclaw-tools-mcp

MCP client for exoclaw — connects to MCP servers over stdio, SSE, or streamable HTTP and registers their tools as native exoclaw tools.

Install

pip install exoclaw-tools-mcp

Usage

from contextlib import AsyncExitStack
from exoclaw.agent.tools.registry import ToolRegistry
from exoclaw_tools_mcp.tool import connect_mcp_servers
from exoclaw_tools_mcp.config import MCPServerConfig

stack = AsyncExitStack()
registry = ToolRegistry()

await connect_mcp_servers(
    mcp_servers={
        "filesystem": MCPServerConfig(command="npx", args=["-y", "@modelcontextprotocol/server-filesystem", "/tmp"]),
        "my-api":     MCPServerConfig(url="https://example.com/mcp"),
    },
    registry=registry,
    stack=stack,
)
# registry now contains all tools from both servers as mcp_<server>_<tool> entries

Transport type is inferred automatically: command → stdio; URLs ending in /sse → SSE; other URLs → streamable HTTP. Custom headers and per-tool timeouts are supported via MCPServerConfig.

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

exoclaw_tools_mcp-0.2.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

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

exoclaw_tools_mcp-0.2.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file exoclaw_tools_mcp-0.2.0.tar.gz.

File metadata

  • Download URL: exoclaw_tools_mcp-0.2.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for exoclaw_tools_mcp-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ae67bef9502e553babd9e674746d711c4efa7c4af38118b0b2aa0c646cba7c64
MD5 4d0a3d0c4f51f15b6a307b84383449b2
BLAKE2b-256 4206591bf5506731c48cf2ddba859798f5b77a30a6b81bb6b56099ea83b574d1

See more details on using hashes here.

File details

Details for the file exoclaw_tools_mcp-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: exoclaw_tools_mcp-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for exoclaw_tools_mcp-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 209b741db4cd8636c15bcc6deefb6da7cd967da221b8ef43766b11fcc281f616
MD5 d4704ccbd1fa2c45ddda1cad5b6d0638
BLAKE2b-256 b6c3dc74c6c934225ad298c6c351eff6839038e1eba42449bacb65157134167c

See more details on using hashes here.

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