Skip to content

feat(cli): squirrel mcp is a stdio front end for the hosted MCP, channel built in (#737) - #2051

Draft
nc9 wants to merge 4 commits into
mainfrom
boat/mcp-frontend-737
Draft

nc9 wants to merge 4 commits into
mainfrom
boat/mcp-frontend-737

Conversation

@nc9

@nc9 nc9 commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Closes #737.

squirrel mcp now forwards the hosted MCP (mcp.squirrelscan.com/mcp) over stdio with the CLI's login (SQUIRRELSCAN_API_KEY or squirrel auth login, resolved per request). All local tool implementations are deleted.

  • Forwards tools/*, resources/*, prompts/*, skills/*, events/* and completion/complete. Upstream stays on the current revision (auto negotiation); downstream is serveStdio, so both the legacy handshake and 2026-07-28 work.
  • Signed out: the catalog lists; a tool call returns one error naming squirrel auth login and squirrel audit. The call never leaves the machine.
  • squirrel mcp --channel (alias squirrel channel): legacy-only handshake, declares claude/channel (no permission relay), keeps the existing notification-feed poller (cursor, catch-up once, ids and counts only). events/poll is not on the hosted server yet, so the feed is the source.
  • Migration: audit_website and quick_check are forwarded to run_audit for one release (offline: true returns an error pointing to squirrel audit).
  • Docs: docs/cli/mcp.mdx rewritten, channel and related pages updated.

Acceptance criteria

  • tools/list equals hosted list: tests/mcp/frontend.test.ts "tools/list is exactly the hosted list"
  • New hosted tool appears with no CLI change: "a tool added to the hosted server appears..."
  • Cloud call same result, credential sent: "a cloud call returns the hosted result and sends the credential"
  • Signed out: "the catalog lists and a tool call returns one error naming the fixes" (in process and as a process)
  • get_report after squirrel audit publish: forwarded unchanged like any tool (no local code path); not exercised live (no network or credentials here)
  • Legacy and 2026-07-28 handshakes: process tests "serves a 2025-era client", "serves a 2026-07-28 client"; channel mode legacy-only. Not tried against real Claude Code.
  • Channel event within 60 s of a cloud audit: poll default 30 s and the poller are unchanged and covered by tests/channel/*; not verified against the live cloud
  • Local tools removed; squirrel channel still works: "squirrel channel is the channel alias"
  • Docs updated; make validate in docs/ passes

Gates

bun run format:check, lint, typecheck clean in apps/cli. Tests: frontend + protocol + channel (47 pass), run-lifecycle + register-run-url-guard (38 pass), completion (99 pass). Deleted the local-tool test files.

Agent skill: references/mcp.md in the squirrelscan skill describes the old local squirrel mcp and audit_website; it needs a change (skills issue to be filed by the maintainer).

@nc9
nc9 force-pushed the boat/mcp-frontend-737 branch 2 times, most recently from 1e76698 to cf7cb56 Compare November 17, 2026 10:34
@nc9
nc9 force-pushed the boat/mcp-frontend-737 branch from cf7cb56 to be575e3 Compare November 17, 2026 11:48
@nc9

nc9 commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

On hold: this PR removes the local MCP's own tools, including the four support-ticket tools that pub#1909 just added, and the hosted MCP doesn't serve those yet. It waits for the hosted side to expose them with the same scopes; then it gets rebased to drop the local copies, with a fresh review.

nik

This branch has not been deployed

No deployments
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.

squirrel mcp becomes a stdio front end for the hosted MCP (one tool set, channel built in)

1 participant