Skip to main content

MCP tools loader for Axio

Project description

axio-tools-mcp

PyPI Python License: MIT

Model Context Protocol (MCP) bridge for axio.

Connect any MCP server to your axio agent. Tools exposed by MCP servers are discovered at runtime and become first-class axio Tool instances — no manual wiring required.

Features

  • Dynamic tool discovery — connects to MCP servers and converts their tools into axio Tool instances automatically
  • Multiple servers — configure and run several MCP servers simultaneously
  • Lifecycle management — handles server startup, shutdown, and reconnection
  • TUI integration — ships a settings screen for managing MCP server configuration from within axio-tui

Installation

pip install axio-tools-mcp

Usage

With axio-tui (recommended)

pip install "axio-tui[mcp]"
uv run axio   # MCP Servers section appears in settings

Standalone

from axio_tools_mcp.registry import MCPRegistry
from axio import Agent
from axio.context import MemoryContextStore
from axio_transport_openai import OpenAITransport

async def main() -> None:
    registry = MCPRegistry()
    await registry.init(config=None)

    tools = registry.all_tools   # list[axio.Tool]
    print(f"Loaded {len(tools)} tools from MCP servers")

    agent = Agent(
        system="You are a helpful assistant.",
        tools=tools,
        transport=OpenAITransport(api_key="sk-...", model="gpt-4o"),
    )
    result = await agent.run("Use the available tools to help me", MemoryContextStore())
    print(result)

    await registry.close()

MCP server configuration

MCP servers are configured via the axio-tui settings UI or programmatically:

{
  "servers": [
    {
      "name": "filesystem",
      "command": ["npx", "-y", "@modelcontextprotocol/server-filesystem", "/tmp"]
    },
    {
      "name": "github",
      "command": ["npx", "-y", "@modelcontextprotocol/server-github"],
      "env": {"GITHUB_PERSONAL_ACCESS_TOKEN": "ghp_..."}
    }
  ]
}

Plugin registration

[project.entry-points."axio.tools.settings"]
mcp = "axio_tools_mcp.plugin:MCPPlugin"

Part of the axio ecosystem

axio · axio-tools-local · axio-tools-docker · axio-tui

License

MIT

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

axio_tools_mcp-0.2.3.tar.gz (67.7 kB view details)

Uploaded Source

Built Distribution

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

axio_tools_mcp-0.2.3-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file axio_tools_mcp-0.2.3.tar.gz.

File metadata

  • Download URL: axio_tools_mcp-0.2.3.tar.gz
  • Upload date:
  • Size: 67.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for axio_tools_mcp-0.2.3.tar.gz
Algorithm Hash digest
SHA256 3a2c54c1e099f4931bee30b0219e3ea1a1795d2ca1077e9dbd2aa18155fcf8e7
MD5 3c1c54172d8bee2e210907d10649ef6f
BLAKE2b-256 4386307b13d2bd730be4819eea38485c754e879285e120a0cca1e585ec9f3fd6

See more details on using hashes here.

Provenance

The following attestation bundles were made for axio_tools_mcp-0.2.3.tar.gz:

Publisher: publish.yml on axio-agent/axio-tools-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file axio_tools_mcp-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: axio_tools_mcp-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 13.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for axio_tools_mcp-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0b71446fed35a4943d82f136581f99408d50a2a308f59179a122870281a2f4af
MD5 0aa55bec5461da11278c67c8ddb53e90
BLAKE2b-256 ae4b780bcf6aac2da7874d14c2a07c195334f7c1054496d2e4c3903b5ab3b6b2

See more details on using hashes here.

Provenance

The following attestation bundles were made for axio_tools_mcp-0.2.3-py3-none-any.whl:

Publisher: publish.yml on axio-agent/axio-tools-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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