Repository navigation
Conversation
Connect agents to Lightyear's hosted MCP server at the root of https://mcp.lightyear.com (no /mcp suffix) to analyze balances and transactions, manage watchlists and price alerts, draft and edit investment plans, screen instruments, and draft order proposals that the user approves in the Lightyear app. Auth is OAuth 2.1 authorization code with PKCE (S256) against api.lightyear.com. Lightyear offers no dynamic client registration and identifies clients by OAuth Client ID Metadata Document; its authorize endpoint accepts Cursor's published client metadata document, so there is nothing to configure. Co-authored-by: Rohan Shah <rshah2020@users.noreply.github.com>
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.
What this wraps
Lightyear's official remote MCP server at the root of
https://mcp.lightyear.com(no/mcpsuffix;/mcpreturns 403). Lightyear is a regulated European brokerage. Through the connection an agent can analyze balances and transactions, manage watchlists and price alerts, draft and edit investment plans, search and screen instruments, and draft order proposals. Order proposals are only drafts: the user must review and approve them in the Lightyear app before anything is submitted, and the README says so prominently.New files under
third_party/lightyear/:.cursor-plugin/plugin.json,mcp.json(type: http),README.md,CHANGELOG.md,LICENSE(MIT, same as sibling plugins),assets/logo.png(Lightyear's 512×512 bolt icon from lightyear.com, cropped to square and resized to 256×256 RGBA). Tail-appended entries in.cursor-plugin/marketplace.jsonand the rootREADME.mdtable.Validation
node scripts/validate-plugins.mjs→All plugins validated successfully.node scripts/generate-pstack-harness-trees.mjs --check→ up to date.Smoke test (unauthenticated, from the VM)
POST /initialize→ clean HTTP 401,WWW-Authenticate: Bearer resource_metadata="https://mcp.lightyear.com/.well-known/oauth-protected-resource".GET /also 401.POST /mcp→ 403, so the root URL is correct./.well-known/oauth-protected-resource) → 200:resource: https://mcp.lightyear.com/,authorization_servers: ["https://api.lightyear.com"], scopesaccount:read,investment_plan:read/write,order_proposal:write,price_alert:read/write,watchlist:read/write. The path-suffixed PRM (.../oauth-protected-resource/mcp) is 403.https://api.lightyear.com/.well-known/oauth-authorization-server) → 200: authorization code + refresh token, PKCES256,token_endpoint_auth_methods_supported: ["none"],client_id_metadata_document_supported: true, noregistration_endpoint. No OIDC discovery document (404)./register,/oauth/register,/api/v1/public/oauth/registeron both hosts → 403. There is an older, unadvertised issuer athttps://api.lightyear.com/oauth2/internal-mcpwith a registration endpoint; it returns an empty 400 forredirect_uris: ["cursor://anysphere.cursor-mcp/oauth/callback"]and forhttps://www.cursor.com/agents/mcp/oauth/callback, and only acceptedhttp://localhost:8787/callback. The PRM does not point at that issuer, so a compliant client will not use it.GET .../oauth/authorizewithclient_id=https://cursor.com/oauth/mcp-client.json, PKCE S256,resource=https://mcp.lightyear.com/andredirect_uri=https://www.cursor.com/agents/mcp/oauth/callback(orhttp://localhost:8787/callback) → 302 to the Lightyear consent pagehttps://lightyear.com/connect/authorize?.... The same request withredirect_uri=cursor://anysphere.cursor-mcp/oauth/callback→ 400 (that URI is not in Cursor's published metadata document), and a bogusclient_id→ 400. So Lightyear fetches and enforces Cursor's CIMD document correctly.Reviewer note
Because Lightyear is CIMD-only (no DCR), connecting depends on the Cursor client presenting
https://cursor.com/oauth/mcp-client.jsonas itsclient_idwhenclient_id_metadata_document_supportedis advertised. The document is live and Lightyear accepts it; if a given Cursor build still falls back to DCR only, the sign-in will fail at the authorization server rather than in the plugin. Nothing in this PR can work around that without a pre-registered client ID from Lightyear.Skipped
tools/list; tool names and counts are not listed in the README.placement: "server"flag; left to the default like most sibling third-party plugins.