Skip to content

feat(third_party): add the Relay plugin - #1375

Open
rshah2020 wants to merge 1 commit into
mainfrom
add-relay-plugin
Open

rshah2020 wants to merge 1 commit into
mainfrom
add-relay-plugin

Conversation

@rshah2020

Copy link
Copy Markdown
Contributor

Adds a relay plugin under third_party/relay/ that wraps Relay's hosted MCP server (https://mcp.relayfi.com/mcp), the official connector for Relay business banking. Relay documents seventeen read tools covering organizations, accounts and balances, transactions, cards, bank statements (with short-lived download links), invoice contacts, catalog items, and invoices.

What's added

  • third_party/relay/.cursor-plugin/plugin.json (relay, 1.0.0, cursor 3.13.0, category finance-and-legal, homepage https://mcp.docs.relayfi.com/)
  • third_party/relay/mcp.json: type: http, https://mcp.relayfi.com/mcp
  • README (auth, prerequisites, scope-to-tool table, notes), CHANGELOG, MIT LICENSE
  • assets/logo.png: Relay's official wordmark (relay-logo-dark.svg from relayfi.com, #004822), rendered from SVG and centered on a white 256×256 tile so it stays legible on dark and light marketplace backgrounds
  • Entry appended to .cursor-plugin/marketplace.json and a row appended to the root README table, with the same description in all three places

Dedupe: no existing relay/relayfi plugin in third_party/. The open draft #1183 adds agent-relay (agentrelay.com), a different product, so the relay slug does not collide.

Validation

node scripts/validate-plugins.mjs and node scripts/generate-pstack-harness-trees.mjs --check pass.

Smoke test (unauthenticated, from the agent VM)

  • POST /mcp initialize → clean HTTP 401 with WWW-Authenticate: Bearer realm="mcp", error="invalid_token", resource_metadata="https://mcp.relayfi.com/.well-known/oauth-protected-resource/mcp".
  • Protected resource metadata: root /.well-known/oauth-protected-resource is 404; the path-suffixed /mcp document resolves. authorization_servers: ["https://app.relayfi.com/oauth"], bearer_methods_supported: ["header"]. The live scopes_supported list also includes contacts.write and invoices.write, which Relay's docs do not mention and which unlock no documented tool.
  • Authorization server metadata at https://app.relayfi.com/.well-known/oauth-authorization-server/oauth: authorization_code + refresh_token, PKCE S256, token_endpoint_auth_methods_supported: ["none", "private_key_jwt"], client_id_metadata_document_supported: true, and no registration_endpoint. POST https://app.relayfi.com/oauth/register redirects to the Relay login page (no DCR endpoint exists), so Dynamic Client Registration with cursor://anysphere.cursor-mcp/oauth/callback could not be attempted; Relay relies on Client ID Metadata Documents, the same model as the existing runta plugin.
  • CIMD probe at GET /oauth/auth with client_id=https://cursor.com/oauth/mcp-client.json: redirect_uri=https://www.cursor.com/agents/mcp/oauth/callback was accepted (303 to Relay's /oauth/interaction/... consent flow). https://www.cursor.com/bot/mcp/oauth/callback, https://grok.com/connectors-oauth-exchange-code/, and cursor://anysphere.cursor-mcp/oauth/callback returned 400 invalid_request. http://localhost:8787/callback and http://127.0.0.1:8787/callback returned a CloudFront 403 (any http://localhost… value in the query string is blocked at the edge, even in an unrelated parameter), so Cursor desktop's loopback redirect may not reach Relay's authorization server. Worth a reviewer's check before publishing.
  • Relay's own docs state "Relay supports Claude and ChatGPT. Other MCP clients can't connect." The authorization endpoint nonetheless accepted Cursor's client metadata document as described above.
  • No browser sign-in was completed. Authenticated tool execution (tools/list, tool calls, tool annotations) was not tested without a Relay account.

Skipped / caveats

  • The "strictly read-only" claim comes from the vendor's submission and Help Center and was not verified against tool annotations or by calling tools. The README attributes it to Relay.
  • Only https://www.cursor.com/agents/mcp/oauth/callback was observed to be accepted; Grok Bot and desktop redirects are flagged above rather than resolved.

Co-authored-by: Rohan Shah <rshah2020@users.noreply.github.com>
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