Repository navigation
feat(cursor): ship socket's hosted oauth mcp server in the cursor plugin - #26
Merged
Jordan Harband (ljharb) merged 1 commit intoNov 5, 2026
Merged
Conversation
Jordan Harband (ljharb)
force-pushed
the
feat/cursor-socket-mcp
branch
2 times, most recently
from
November 5, 2026 21:24
58d6529 to
d6e268e
Compare
John-David Dalton (jdalton)
approved these changes
Nov 5, 2026
John-David Dalton (jdalton)
left a comment
Collaborator
There was a problem hiding this comment.
Might have some conflicts if multiple prs land but just iron them out as you go
The Cursor plugin declares https://mcp.socket.dev/ in .cursor-plugin/mcp.json under the server name `socket`, the same name the socket-connect marketplace entry and the Gemini extension use, so users sign in to Socket in the browser instead of pasting one org's API key. The manifest also gets a display name, a logo, and a rule that tells the agent when to use the Socket MCP tools and how to fall back to the CLI if sign-in does not complete. The shipped-content gates now scan .cursor-plugin/rules, including .mdc files, because agents read and obey them.
Jordan Harband (ljharb)
force-pushed
the
feat/cursor-socket-mcp
branch
from
November 5, 2026 21:42
d6e268e to
b52b72f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Cursor plugin now declares https://mcp.socket.dev/ in .cursor-plugin/mcp.json, so users sign in to Socket in the browser instead of pasting one org's API key. The manifest also gets a display name, a logo, and a rule that tells the agent when to use the Socket MCP tools and how to fall back to the CLI if sign-in does not complete.
The shipped-content gates now scan .cursor-plugin/rules, including .mdc files, because agents read and obey them.
Known limitation
Hosted OAuth does not complete in current Cursor versions. The socket-mcp README compatibility matrix lists Cursor 3.22.12 hosted OAuth as failing. The cause is described in the Cursor forum report: Cursor shows Authenticate only when the server returns 401 during connect. The live
mcp.socket.devanswers an unauthenticatedinitializewith 200 and returns 401 only ontools/call.The fix is on the server side:
WWW-Authenticatechallenge on connect, with tests.mainalready returns 401 on an unauthenticatedinitialize, but productionmcp.socket.devruns different code. The hosted deployment must be updated as well before Cursor can sign in.Until then, the README and the Cursor rule say this plainly and point users to the CLI sign-in (
pnpm dlx socket login).Testing
mainafter feat(auth): connect to Socket through browser sign-in #25 and build: drop the fleet pack and own the repo tooling #28 landed.pnpm run checkpasses, and all repo tests pass locally: 56 files, 1253 tests.pnpm run generate:checkreports the generated files are up to date.Note
Medium Risk
Expands agent-obeyed shipped instructions and connects users to an external OAuth MCP endpoint; config avoids embedding secrets but auth and dependency-check behavior in Cursor sessions depend on this wiring.
Overview
The Cursor plugin now wires in Socket's hosted MCP at
https://mcp.socket.dev/(OAuth in the browser, no API key in config) instead of an empty MCP stub, and the manifest adds display name, logo, and rules that tell the agent when to rundepscore/ org tools and how to fall back to the Socket CLI if Cursor OAuth fails.README documents the Customize → Authenticate flow and the known Cursor OAuth limitation.
Repo tooling follows suit: the Cursor plugin generator emits the OAuth-only MCP JSON, requires the hand-maintained logo and rules paths, and tests assert no credentials ship. Shipped-content gates now treat
.cursor-plugin/rules(including.mdcfiles) like other agent-obeyed surfaces for fleet-leak and injection scans.Reviewed by Cursor Bugbot for commit f88cdb7. Configure here.