Repository navigation
docs: drop anonymous mode references (SURF-2364) - #263
Gerardo Sabetta (gerardosabetta) wants to merge 1 commit into
Conversation
PR SummaryLow Risk Overview 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 Reviewed by Cursor Bugbot for commit f2a1eca. Configure here. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ 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.
|
|
||
| > [!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. |
There was a problem hiding this comment.
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)
Triggered by learned rule: Hosted docs match deployed prod, not main
Reviewed by Cursor Bugbot for commit f2a1eca. Configure here.


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.
package_file_contentsandpackage_file_grepincluded, now says it uses the caller's token.depscoreno 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 toSOCKET_API_TOKENis gone, and so isanonymousfrom theauth.outcomevalues.Heads-up:
auth.outcomeanonymousAuthOutcomeinlib/error-reporting.mtsstill includesanonymous, andresolveAuthOutcomecan still return it. Sentry never receives it, though:tools/callwhen a request has no token.tools/callitself refuses a tokenless call before any handler runs.operator_denied.So I removed
anonymousfrom 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): passespnpm run repo:check: passespnpm test: 740/740 tests pass in 76 filesLinear: https://linear.app/socketdev/issue/SURF-2364/socket-mcp-remove-anonymous-mode-references-from-the-docs
Slides
🤖 Generated with Claude Code