oterm/docs/mcp
Yiorgis Gozadinos d077f671f1
Qualify MCP tool names by server
Tool identity was the bare tool name, so a name exported by two MCP
servers resolved to both toolsets and pydantic-ai rejected the agent.
MCP tools are now identified as `{server}_{tool}` and reach the model
through PrefixedToolset, making per-server selection independent.

Since the server name now reaches the provider, reject names outside
[a-zA-Z0-9_-] when the config loads and skip tools whose qualified name
is over 64 characters.

Tools load before the store so the 0.22.0 upgrade can qualify saved
selections from the connected servers' tool lists.

Point the ty pre-commit hook at the pinned version, matching CI and the
ruff hooks.

Closes #321
2026-07-31 15:46:30 +03:00
..
index.md Qualify MCP tool names by server 2026-07-31 15:46:30 +03:00