Skip to content

fix(mcp): resolve remote find_skills name via tools/list - #26

Merged
aditya-scio merged 2 commits into
mainfrom
fix/find-skills-remote-name-fallback
Sep 17, 2026
Merged

aditya-scio merged 2 commits into
mainfrom
fix/find-skills-remote-name-fallback

Conversation

@aditya-scio

@aditya-scio aditya-scio commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • The upstream Glean MCP server exposes either find_skills or find_skills_and_tools depending on the rename experiment. The plugin hardcoded find_skills, so hosts serving the new name broke skill discovery.
  • handleFindSkills now lists upstream tools once per client, picks whichever name is present (preferring find_skills_and_tools), caches it in a WeakMap, and calls that. Falls through to the new name if neither is listed so the upstream error surfaces as before.
  • Marked with a ponytail: comment: delete the resolver and hardcode the winner once the experiment concludes.

Test plan

  • vitest run --root shared/glean/mcp — 22 files, 336 tests pass
  • New tests: legacy-name fallback, and tools/list called once per client
  • tsc --noEmit -p shared/glean/mcp/tsconfig.json clean

The upstream server exposes either find_skills or find_skills_and_tools
depending on the rename experiment. Resolve the name once per client from
tools/list and call whichever exists, preferring the new name.

Co-Authored-By: Claude <noreply@anthropic.com>
@aditya-scio

Copy link
Copy Markdown
Contributor Author

Old:

image

New:

image

@aditya-scio
aditya-scio merged commit d95bd7e into main Sep 17, 2026
1 check passed
@aditya-scio
aditya-scio deleted the fix/find-skills-remote-name-fallback branch September 17, 2026 21:26
@steve-calvert-glean steve-calvert-glean added enhancement New feature or request bug Something isn't working and removed enhancement New feature or request labels Sep 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants