Skip to content

fix(tool-calls): preserve query-bearing MCP names - #729

Open
dawNotPoi wants to merge 2 commits into
xintaofei:mainfrom
dawNotPoi:fix/710-mcp-tool-name
Open

fix(tool-calls): preserve query-bearing MCP names#729
dawNotPoi wants to merge 2 commits into
xintaofei:mainfrom
dawNotPoi:fix/710-mcp-tool-name

Conversation

@dawNotPoi

@dawNotPoi dawNotPoi commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

Fixes #710

Summary

  • Stop treating every MCP payload with a query field as a web search.
  • Keep the explicit tool name for OpenCode MCP calls such as codegraph_explore.
  • Continue recognizing query-bearing calls when the title or kind identifies websearch.

Tests

  • ./node_modules/.bin/vitest run src/lib/tool-call-normalization.test.ts --reporter=dot
  • ./node_modules/.bin/eslint src/lib/tool-call-normalization.ts src/lib/tool-call-normalization.test.ts
  • git diff --check
  • Full Vitest: 6332 passed; one pre-existing forge-page.test.tsx timeout.

@xintaofei

Copy link
Copy Markdown
Owner

codeg work task 184 is done — #729 (2 files, +76/-3).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: OpenCode 的 MCP 工具调用(如 codegraph_explore)错误显示为“网页搜索”

2 participants