oterm/tests/agent
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
..
__init__.py Add agent-tier tests for history, errors, streaming, regenerate 2026-04-24 22:11:11 +03:00
test_errors.py Qualify MCP tool names by server 2026-07-31 15:46:30 +03:00
test_history.py Drop dead VCR scaffolding and tighten MessageModel.role to user/assistant 2026-04-26 21:26:00 +03:00
test_regenerate.py Remove the rest of the flaky pilot.pause() in tests 2026-04-29 21:36:00 +03:00
test_streaming.py Merge pull request #322 from ggozad/feat/capabilities 2026-07-25 10:55:39 +03:00