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
1 parent a075ac7 commit ba183effad1be8dfc3b277366affeb53e46d7dc9
@Eugene Sukhodolskiy Eugene Sukhodolskiy authored on 21 May
Showing 5 changed files
View
mcp-servers/navi-3d/app/mcp_server.py
View
navi/core/context_builder.py
View
navi/core/subagent_runner.py
View
navi/mcp/tools.py
View
tests/unit/test_mcp.py