Skip to content

feat(mcp): auto-refresh and retry on Tool not found - #16

Merged
nictuku merged 1 commit into
mainfrom
nictuku/retry-tool-not-found
Apr 24, 2026
Merged

nictuku merged 1 commit into
mainfrom
nictuku/retry-tool-not-found

Conversation

@nictuku

@nictuku nictuku commented Apr 24, 2026

Copy link
Copy Markdown
Contributor

When mcp tools-call gets isError=true with text starting Tool not found, the CLI now calls tools/list and retries once if the tool is now present. If still missing, it fails with up to 5 "did you mean" suggestions ranked by shared underscore tokens.

Test plan

  • make test passes (new tests for isToolNotFound and similarTools)
  • make build passes
  • Manual: run pipeboard mcp tools-call --server snap-ads-mcp --tool list_snap_segments ... and confirm the retry path fires

When a tools/call returns isError with "Tool not found", fetch
tools/list once and retry if the tool now appears. If it is still
missing, fail with up to 5 did-you-mean suggestions ranked by shared
underscore tokens.
@nictuku
nictuku merged commit 671cf7f into main Apr 24, 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