|
Migrate MCP tool naming from mcp:server:tool to mcp__server__tool
The colon separator (mcp:server:tool) confuses many LLMs during
tool-calling because colons appear in schemas and URLs. Switch to
double-underscore separator (mcp__server__tool) for robust parsing.
Key changes:
- navi/mcp/tools.py: add build_mcp_name(), parse_mcp_name(), is_mcp_tool()
- navi/core/tool_executor.py: update _resolve_tool() with new helpers
and legacy colon fallback for old sessions
- navi/core/tool_utils.py, subagent_runner.py: use build_mcp_name()
- navi/api/routes/{admin,agents}.py: prefix via build_mcp_name()
- navi/tools/{list_tools,reload_tools}.py: migrated
- All profile configs + system_prompt.txt: replace mcp: with mcp__
- manuals/{model_3d,lint_scad,render_3d,spawn_agent}.md: updated
- mcp_servers.d/gnexus-book.json: instructions updated
- docs/{api,profiles,tools,mechanics,visual.html}: updated
- tests: test_tool_executor.py and test_mcp.py aligned
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
|---|
|
|
| docs/api.md |
|---|
| docs/mechanics.md |
|---|
| docs/profiles.md |
|---|
| docs/tools.md |
|---|
| docs/visual.html |
|---|
| manuals/lint_scad.md |
|---|
| manuals/model_3d.md |
|---|
| manuals/render_3d.md |
|---|
| manuals/spawn_agent.md |
|---|
| mcp_servers.d/gnexus-book.json |
|---|
| navi/api/routes/admin.py |
|---|
| navi/api/routes/agents.py |
|---|
| navi/core/subagent_runner.py |
|---|
| navi/core/tool_executor.py |
|---|
| navi/core/tool_utils.py |
|---|
| navi/mcp/tools.py |
|---|
| navi/profiles/developer/config.json |
|---|
| navi/profiles/discuss/system_prompt.txt |
|---|
| navi/profiles/modeler_3d/config.json |
|---|
| navi/profiles/modeler_3d/subagent_system_prompt.txt |
|---|
| navi/profiles/modeler_3d/system_prompt.txt |
|---|
| navi/profiles/secretary/config.json |
|---|
| navi/profiles/secretary/system_prompt.txt |
|---|
| navi/profiles/server_admin/config.json |
|---|
| navi/profiles/server_admin/system_prompt.txt |
|---|
| navi/tools/list_tools.py |
|---|
| navi/tools/reload_tools.py |
|---|
| tests/unit/core/test_tool_executor.py |
|---|
| tests/unit/test_mcp.py |
|---|