Skip to content

docs: drop anonymous mode references (SURF-2364) - #263

Open
Gerardo Sabetta (gerardosabetta) wants to merge 1 commit into
mainfrom
gerardosabetta/surf-2364-socket-mcp-remove-anonymous-mode
Open

Gerardo Sabetta (gerardosabetta) wants to merge 1 commit into
mainfrom
gerardosabetta/surf-2364-socket-mcp-remove-anonymous-mode

Conversation

@gerardosabetta

@gerardosabetta Gerardo Sabetta (gerardosabetta) commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

0.7.0 made every tool auth-only, but README.md and docs/service.md still described an anonymous mode. This PR fixes that text. It changes no code.

  • docs/service.md: dropped "anonymous tool discovery". Every tool, package_file_contents and package_file_grep included, now says it uses the caller's token. depscore no longer "can fall back" to the startup token. The "next release after 0.6.0" note now reads "Since 0.7.0". The Sentry bullet about anonymous calls falling back to SOCKET_API_TOKEN is gone, and so is anonymous from the auth.outcome values.
  • README.md: both "after 0.6.0" notes now say "Since 0.7.0". "Protected tools" became "every tool". Dropped "If your client lists tools without prompting", because no client can list tools without signing in.

Heads-up: auth.outcome anonymous

AuthOutcome in lib/error-reporting.mts still includes anonymous, and resolveAuthOutcome can still return it. Sentry never receives it, though:

  • Error reporting runs only in HTTP mode.
  • Since 0.7.0, HTTP answers 401 before tools/call when a request has no token.
  • tools/call itself refuses a tokenless call before any handler runs.
  • The only denial that gets reported is operator_denied.

So I removed anonymous from the docs and left the code alone, since this ticket is docs-only. Removing that union member could be a code follow-up.

Verification

  • pnpm run check (fmt:check, lint, repo:check typecheck + build, manifest version match, content scan): passes
  • pnpm run repo:check: passes
  • pnpm test: 740/740 tests pass in 76 files
  • I grepped README.md and docs/ for other anonymous-mode and "after 0.6.0" wording and found none. Not covered: I didn't connect to the live hosted server.

Linear: https://linear.app/socketdev/issue/SURF-2364/socket-mcp-remove-anonymous-mode-references-from-the-docs

Slides

cover

gap

heads-up

verify

🤖 Generated with Claude Code

Gerardo Sabetta (gerardosabetta) added a commit that referenced this pull request Dec 4, 2026
@gerardosabetta
Gerardo Sabetta (gerardosabetta) marked this pull request as ready for review December 4, 2026 18:08
@cursor

cursor Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

PR Summary

Low Risk
Documentation-only edits with no runtime, auth, or API behavior changes.

Overview
Updates README.md and docs/service.md so they match 0.7.0 behavior: there is no anonymous or tool-listing-without-sign-in path on the hosted server.

Forward-looking “after 0.6.0” wording is replaced with “Since 0.7.0” for hosted OAuth, self-hosted HTTP bearer requirements, and per-tool tokens. Install copy drops the idea that clients might list tools before prompting sign-in; compatibility text now says every tool needs sign-in, not only “protected” ones.

In the service reference, hosted auth no longer mentions anonymous tool discovery. Every tool, including depscore, package_file_contents, and package_file_grep, is documented as using the caller’s token with no depscore fallback to the server startup token on HTTP without OAuth. Sentry docs drop the anonymous-fallback failure case and remove anonymous from the documented auth.outcome tag values (implementation may still define it; this PR does not change code).

Reviewed by Cursor Bugbot for commit f2a1eca. Configure here.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit f2a1eca. Configure here.

Comment thread README.md

> [!NOTE]
> **Starting with the next Socket MCP release after 0.6.0**, once it is deployed to the hosted server, every tool needs sign-in, including package scoring and package file reads, and the hosted server has no anonymous mode. A client that connects without signing in gets HTTP `401` on its first request, before any tool is listed. The `WWW-Authenticate` header points to the server's OAuth metadata and names the scopes to request: `packages:list`, `alerts:list`, and `threat-feed:list`. Clients that support MCP authorization start sign-in from that response. Others need an explicit sign-in step.
> **Since 0.7.0**, every tool needs sign-in, including package scoring and package file reads, and the hosted server has no anonymous mode. A client that connects without signing in gets HTTP `401` on its first request, before any tool is listed. The `WWW-Authenticate` header points to the server's OAuth metadata and names the scopes to request: `packages:list`, `alerts:list`, and `threat-feed:list`. Clients that support MCP authorization start sign-in from that response. Others need an explicit sign-in step.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hosted docs claim no anonymous mode

Medium Severity

Hosted setup in README.md and docs/service.md now says https://mcp.socket.dev/ has no anonymous mode and answers 401 before listing tools. That violates "Hosted docs match deployed prod, not main": production still serves anonymous initialize and tools/list. The Option 1 lead also drops protected-tool sign-in and the case where a client lists tools without prompting.

Additional Locations (2)
Fix in Cursor Fix in Web

Triggered by learned rule: Hosted docs match deployed prod, not main

Reviewed by Cursor Bugbot for commit f2a1eca. Configure here.

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.

1 participant