Skip to content

feat(third_party): add the Funnel plugin - #1374

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

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

Conversation

@rshah2020

Copy link
Copy Markdown
Contributor

What this adds

third_party/funnel: a plugin wrapping Funnel's official hosted MCP server at https://mcp.ai.funnel.io/mcp (global region; EU users switch to mcp.eu.ai.funnel.io per the README). Funnel is a marketing data hub covering Google Ads, Meta, TikTok Ads, LinkedIn Ads, Google Analytics, Microsoft Advertising, Shopify, HubSpot, and 600+ other platforms. Agents can list and load workspaces, find fields, query and re-slice cross-channel data, and, with user approval, manage custom fields, exports, data sources, dashboards, portals, budgets, and scheduled tasks.

Files: .cursor-plugin/plugin.json, mcp.json, README.md, CHANGELOG.md, LICENSE (MIT, same as other third-party plugins), assets/logo.png (Funnel's official green logomark SVG rasterized to 256×256 RGBA PNG with a transparent background). Marketplace entry and root README row tail-appended after folk.

Tool list and behavior in the README come from Funnel's Quick start guide; no tools were invented.

Auth

The server requires OAuth. Funnel's authorization server (login.funnel.io, Auth0) has dynamic client registration disabled, so mcp.json pins Funnel's published public client ID 4HiYmsg53mSStXa3UqfStADOhZ1tF6Y0 via auth.CLIENT_ID, exactly as Funnel's own Cursor setup snippet does (same shape as the meta-ads and x plugins). The PRM document also advertises this client_id. No secret is involved (token_endpoint_auth_methods_supported includes none).

Smoke test (from the VM, unauthenticated)

  • POST /mcp initialize → clean HTTP 401, body {"error":{"code":-32001,"message":"Missing Bearer token"}}, header WWW-Authenticate: Bearer error="invalid_token", resource_metadata="https://mcp.ai.funnel.io/.well-known/oauth-protected-resource/mcp".
  • PRM at both /.well-known/oauth-protected-resource and /.well-known/oauth-protected-resource/mcp → 200: resource=https://mcp.ai.funnel.io/mcp, authorization_servers=["https://login.funnel.io/"], scopes_supported=[openid, profile, email, offline_access], client_id=4HiYmsg53mSStXa3UqfStADOhZ1tF6Y0.
  • AS metadata (/.well-known/oauth-authorization-server and /.well-known/openid-configuration) → 200: authorization code + refresh token grants, PKCE S256 supported, token_endpoint_auth_methods_supported includes none, no registration_endpoint, client_id_metadata_document_supported: true.
  • DCR attempt at POST https://login.funnel.io/oidc/register with redirect_uris=["cursor://anysphere.cursor-mcp/oauth/callback"] → 400 dynamic client registration is disabled. DCR did not accept the Cursor redirect because DCR is unavailable entirely.
  • Redirect URI check for the pinned client: GET /authorize?client_id=4HiYmsg53mSStXa3UqfStADOhZ1tF6Y0&redirect_uri=cursor://anysphere.cursor-mcp/oauth/callback&code_challenge_method=S256&... → 302 to Funnel's login page (accepted). A bogus redirect URI with the same client → 403 Callback URL mismatch. So Cursor's desktop callback is registered on Funnel's client.
  • No browser sign-in was completed. Authenticated tool execution (tools/list, tool calls) was not tested without a Funnel user account.

Validation

  • node scripts/validate-plugins.mjs → All plugins validated successfully.
  • node scripts/generate-pstack-harness-trees.mjs --check → up to date.

Not done / caveats

  • Only Cursor's desktop cursor:// redirect was verified against the pinned client; other Cursor redirect sets (web/cloud, Grok Bot) were not checked, since that would require knowing their callback URIs and they cannot be added to Funnel's client from our side.
  • Did not run a live OAuth flow or any tool call.

Connect agents to Funnel's hosted MCP server at https://mcp.ai.funnel.io/mcp
to list and load workspaces, find fields, query and re-slice cross-channel
marketing data, and, with user approval, manage custom fields, exports, data
sources, dashboards, portals, budgets, and scheduled tasks.

Auth is OAuth 2.0 with PKCE against login.funnel.io. The authorization server
has dynamic client registration disabled, so mcp.json pins Funnel's published
public client ID (the one in Funnel's own Cursor setup snippet); the authorize
endpoint accepts cursor://anysphere.cursor-mcp/oauth/callback for that client.

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.

2 participants