Skip to content

fix(mcp): drop search scores, fix refs threshold#34

Merged
prosdev merged 2 commits intomainfrom
fix/drop-search-scores
Apr 2, 2026
Merged

fix(mcp): drop search scores, fix refs threshold#34
prosdev merged 2 commits intomainfrom
fix/drop-search-scores

Conversation

@prosdev
Copy link
Copy Markdown
Contributor

@prosdev prosdev commented Apr 2, 2026

Summary

  • Remove misleading scores from MCP search output. RRF fusion scores (always ~1-2%) were displayed as percentages to agents — meaningless and noisy. Matches industry practice (Cody, Cursor, Copilot show ranked results without scores).
  • Fix dev_refs returning no results via MCP. SearchService defaulted scoreThreshold to 0.7, silently filtering all results since RRF scores are ~0.01. Changed default to 0.
  • Add result count preamble to search output: Found N results for "query" | showing top K
  • Remove scoreThreshold from MCP tool schema. Core API retains it for CLI --threshold flag.

Test plan

  • pnpm build — passes
  • pnpm test — 1764 tests pass
  • pnpm typecheck — passes
  • node packages/dev-agent/dist/cli.js search "SearchAdapter" — no scores in output
  • node packages/dev-agent/dist/cli.js refs "SearchAdapter" — finds symbol
  • Restart MCP server, verify dev_search shows no scores
  • Restart MCP server, verify dev_refs finds symbols that previously returned NOT_FOUND

prosdev and others added 2 commits April 1, 2026 23:15
Search results displayed RRF fusion scores as percentages (always ~1-2%),
which were meaningless to agents. Removed score display from both formatters,
added a result count preamble, and removed scoreThreshold from the MCP tool
schema. Also fixed SearchService defaulting scoreThreshold to 0.7 which
silently filtered out all results for dev_refs since RRF scores are ~0.01.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@prosdev prosdev merged commit bc054d3 into main Apr 2, 2026
1 check passed
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.

1 participant