You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
retrieve_tools: annotations/call_with always defaults to call_tool_read due to tool name parsing bug #306
But result.Tool.Name is just the tool name (e.g. "browser_close_tab"), not "server:tool". The server name is stored separately in result.Tool.ServerName.
Since tool names don't contain :, len(parts) is always 1, so the code falls through to the else branch:
} else {
mcpTool["call_with"] =contracts.ToolVariantRead// Default to read
}
This means call_with is always"call_tool_read" for every tool, regardless of annotations.
Verified
mcpproxy v0.17.5
Trace log confirms annotations ARE parsed from upstream ("Tool with annotations from server" for 5 tools with destructiveHint/readOnlyHint)
lookupToolAnnotations(serverName, toolName) works correctly when called with proper args
DeriveCallWith() works correctly
The only break is the SplitN(result.Tool.Name, ":", 2) on line 851
All tools from all servers get call_with: "call_tool_read" regardless of their annotations. Destructive tools (close, delete, etc.) are not flagged as destructive in retrieve_tools response.
Activity
Fix retrieve_tools annotations/call_with always defaulting to call_to…
fix(server): canonicalize retrieve_tools identity to server:tool (#874)