Skip to content

fix(cli): neutral send_feedback description and mcp docs drift test - #587

Merged
nc9 merged 2 commits into
mainfrom
claude/mcp-tool-descriptions-gbpsls
Oct 8, 2026
Merged

nc9 merged 2 commits into
mainfrom
claude/mcp-tool-descriptions-gbpsls

Conversation

@nc9

@nc9 nc9 commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

There is no issue for this change, so the criteria below come from the task brief and there is no issue to reference.

Acceptance criteria

  • send_feedback says only what it does and when a user wants it. The description no longer tells the model to call it "any time something surprises you", and it no longer mentions the end of a session. Evidence: apps/cli/src/mcp/tools/feedback-tools.ts; tests/mcp/docs-sync.test.ts ("never instruct the model to call a tool unprompted", "send_feedback says what it does and when a user wants it").
  • No plan pitch in descriptions. Evidence: tests/mcp/docs-sync.test.ts ("carry no plan or upgrade pitch") runs over every tool the CLI server lists.
  • get_credit_balance rewrite: not applicable to the CLI. The local squirrel mcp server does not register get_credit_balance. It exists only on the hosted server, whose source is not in this repo. The hosted tools table in docs/developers/mcp.mdx already describes it in one neutral line ("Monthly and pack credit buckets for the org."), so there is nothing to change here. The hosted description needs the same rewrite where that code lives.
  • docs/cli/mcp.mdx lists every tool the CLI server exposes, matching tools/list. The table already listed all 15 tools, so no docs edit was needed. Evidence: tests/mcp/docs-sync.test.ts ("lists exactly the tools the server exposes, once each") fails if a tool is added or removed without a row.
  • Shared tools stay consistent. send_feedback's wording now matches the hosted docs row (feedback to the team, same categories). tests/mcp/server.test.ts treats send_feedback as an unauthenticated tool, since its old description only passed the auth-note check by accident (the word "session").
  • Checks. bun test for docs-sync, feedback-tools, server (20 pass); bun run typecheck, lint, root format:check clean; make validate in docs passes. The secret-scan hook (detect-secrets) is not installed in this environment, so it was not run; the diff adds no secrets.

Agent skill

The squirrelscan agent skill does not need a change: no tool name, argument or behavior changed, only the send_feedback description text.

@claude

claude Bot commented Oct 8, 2026

Copy link
Copy Markdown

Reviewed the diff. I found no blocking issues. The description change is accurate and the new tests are a useful guard. I did not run the tests myself.

  • (low) apps/cli/tests/mcp/docs-sync.test.ts: the "unprompted" and "plan pitch" regexes are a narrow denylist. They would not catch rewordings such as "whenever something surprises you" or "upgrade" variants like "upgrading", because \bupgrade\b does not match "upgrading". Consider adding a few more stems, or treat the test as a guard against regressions only.
  • (nit) docs-sync.test.ts: the final test asserts exact substrings ("Send feedback to the squirrelscan team", "when the user wants"). A harmless copy edit will fail it. That seems intended, but the failure message will not say so.
  • (nit) docs-sync.test.ts: listTools() builds a new server and client for each test and never closes them. This is fine for bun, but a client.close() would be tidier.
  • (nit) docs/cli/mcp.mdx: the compare_entities and get_entity_findings rows use ``` escapes inside inline code. These look like a rendering bug, though they are outside this PR and the test regex tolerates them.

nc9 commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor Author

Status: ready for review. All 15 checks pass, including the secret scan. The bot review found no critical, high or medium issues (one low and three nits, left as is), so no fix round was needed.

One open item outside this PR: get_credit_balance exists only on the hosted server, so its description needs the same neutral rewrite where that code lives.

@claude

claude Bot commented Oct 8, 2026

Copy link
Copy Markdown

Reviewed the diff: description rewrite, new docs-sync.test.ts, and the server.test.ts tweak. I found no blocking problems. I did not run the tests.

  • (low) apps/cli/tests/mcp/docs-sync.test.ts: the \b(...)\b regex in the 'unprompted' check matches you should call and call this (first|whenever) fine. But \b after an alternation ending in a word char is OK, so only paraphrases such as 'use this whenever' would slip through. It is a heuristic guard, which is acceptable.
  • (nit) The 'plan pitch' regex includes buy and purchase. A legitimate future description (e.g. 'purchase history') would trip it. Consider scoping it if that happens.
  • (nit) The docs path is resolved with ../../../../docs/cli/mcp.mdx, so the test breaks if the test file moves. Fine as is.
  • (nit) The toContain('when the user wants') assertion pins exact wording. It is brittle against copy edits, but it is intentional here.

The change is small and the tests are reasonable. The docs-vs-tools/list drift check is a useful addition.

@nc9
nc9 merged commit 320dab8 into main Oct 8, 2026
15 checks passed
@nc9
nc9 deleted the claude/mcp-tool-descriptions-gbpsls branch October 8, 2026 15:12
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