mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-06 08:01:49 +00:00
MCP tools annotated with readOnlyHint: true are now allowed to execute in plan mode without being blocked. Previously, all MCP tools were assigned Kind.Other and required confirmation, causing plan mode to block even read-only MCP tools. Changes: - Add McpToolAnnotations interface to mcp-tool.ts - Fetch tool annotations via mcpClient.listTools() during discovery - Pass annotations through to DiscoveredMCPTool and its invocation - Set Kind.Read for tools with readOnlyHint: true (instead of Kind.Other) - Skip confirmation for readOnlyHint: true tools in shouldConfirmExecute Fixes #1826 |
||
|---|---|---|
| .. | ||
| cli | ||
| core | ||
| sdk-java | ||
| sdk-typescript | ||
| test-utils | ||
| vscode-ide-companion | ||
| webui | ||
| zed-extension | ||