|
McpTool: auto-inject session_id + normalize navi-3d paths
- McpTool.execute() now forces the real session_id from current_session_id ContextVar, preventing LLM hallucinations of wrong UUIDs (ghost-session bug). - For navi-3d MCP server, source_path/output_path are normalized to basename to prevent double path nesting when the LLM passes full relative paths. - Updated MCP tool descriptions to ask for filenames only. - Added system prompt instructions in context_builder and subagent_runner reminding the model to pass bare filenames to navi-3d tools. 396 passed, 1 skipped |
|---|
|
|
| mcp-servers/navi-3d/app/mcp_server.py |
|---|
| navi/core/context_builder.py |
|---|
| navi/core/subagent_runner.py |
|---|
| navi/mcp/tools.py |
|---|
| tests/unit/test_mcp.py |
|---|