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.1.tar.gz (5.1 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.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for exoclaw_tools_mcp-0.2.1.tar.gz
Algorithm Hash digest
SHA256 848436ab8b122e9bf224a3e1cb42df5fe84a0413eea81bd9c0966cb7954e474c
MD5 4e9a6c705eff7007ceea24b1a9f6d47a
BLAKE2b-256 350a0f6ea3f34789f2b8652100696b4bbe2c77e35137ad73714cd3a41dff7b6d

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for exoclaw_tools_mcp-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 db64302b7633d8ea8b48b59f5ab69fdf640b37d1ce39596cf285d5b81cf18a1c
MD5 5d23c8aeaef5f516a4b5874f315c24f7
BLAKE2b-256 9ce78ff5b3a676bc30eef34b15cc6e6bb48deb3c30d0801ad686f52aa7118db4

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