MCP tools loader for Axio
Project description
axio-tools-mcp
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
Toolinstances 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.agent 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
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 axio_tools_mcp-0.5.1.tar.gz.
File metadata
- Download URL: axio_tools_mcp-0.5.1.tar.gz
- Upload date:
- Size: 68.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c06e7aa83734c49a9b07805c32c6f6fca206803673a72b5ee7b7ae707496829
|
|
| MD5 |
921dba0348b4d56a83580fdfadf0ef75
|
|
| BLAKE2b-256 |
28964646b7c2e3729168a3f3764346c839dce220c1b6168eb2a7c9c4bff43b3a
|
Provenance
The following attestation bundles were made for axio_tools_mcp-0.5.1.tar.gz:
Publisher:
publish.yml on axio-agent/monorepo
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
axio_tools_mcp-0.5.1.tar.gz -
Subject digest:
3c06e7aa83734c49a9b07805c32c6f6fca206803673a72b5ee7b7ae707496829 - Sigstore transparency entry: 1298237935
- Sigstore integration time:
-
Permalink:
axio-agent/monorepo@a5ce22f251d874d81d39d3459e92c6d173b9c151 -
Branch / Tag:
refs/tags/0.5.1 - Owner: https://github.com/axio-agent
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a5ce22f251d874d81d39d3459e92c6d173b9c151 -
Trigger Event:
release
-
Statement type:
File details
Details for the file axio_tools_mcp-0.5.1-py3-none-any.whl.
File metadata
- Download URL: axio_tools_mcp-0.5.1-py3-none-any.whl
- Upload date:
- Size: 14.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b493ee472648c6c640433318c06308ddc45d4c5cff205d04495a933ab4788ecb
|
|
| MD5 |
1827ac1383ed348029a7e40accba8aea
|
|
| BLAKE2b-256 |
50aabf51c608ce8e2d8319feb6c59a62f3b4897e9cde52f59b7284d447130b48
|
Provenance
The following attestation bundles were made for axio_tools_mcp-0.5.1-py3-none-any.whl:
Publisher:
publish.yml on axio-agent/monorepo
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
axio_tools_mcp-0.5.1-py3-none-any.whl -
Subject digest:
b493ee472648c6c640433318c06308ddc45d4c5cff205d04495a933ab4788ecb - Sigstore transparency entry: 1298238018
- Sigstore integration time:
-
Permalink:
axio-agent/monorepo@a5ce22f251d874d81d39d3459e92c6d173b9c151 -
Branch / Tag:
refs/tags/0.5.1 - Owner: https://github.com/axio-agent
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a5ce22f251d874d81d39d3459e92c6d173b9c151 -
Trigger Event:
release
-
Statement type: