Skip to content

docs: add fx as a supported MCP client - #49446

Merged
awaseem merged 2 commits into
supabase:masterfrom
suarezesteban:docs/add-fx-mcp-client
Aug 24, 2026
Merged

awaseem merged 2 commits into
supabase:masterfrom
suarezesteban:docs/add-fx-mcp-client

Conversation

@suarezesteban

@suarezesteban suarezesteban commented Aug 23, 2026 •

Copy link
Copy Markdown
Contributor

I have read the CONTRIBUTING.md file.

YES

What kind of change does this PR introduce?

Docs update: adds fx to the MCP client list, following the same pattern as the recently added Warp (#48838), GitHub Copilot CLI (#46150) and OpenCode (#41825) clients.

fx is a native coding agent and an MCP client. It supports Streamable HTTP and the full OAuth flow (metadata discovery, PKCE, Dynamic Client Registration fallback, refresh), so it connects to the hosted Supabase MCP server without a proxy.

What is the current behavior?

fx is not in the client list, so users have to hand-write the config. fx keys servers under mcp rather than mcpServers and names the transport http, which is easy to get wrong by adapting another client's snippet.

What is the new behavior?

fx appears in the AI Agent CLI group, in both the docs page and the dashboard's Connect panel. It renders as:

fx

Add this configuration to ~/.fx/mcp.json:

{
  "mcp": {
    "supabase": {
      "type": "http",
      "url": "https://mcp.supabase.com/mcp"
    }
  }
}

fx reads MCP servers only from this profile, so a file inside a repository cannot add one. If a session is already open, apply the change with /mcp reload.

Then authenticate from the fx shell. This opens your browser to complete the OAuth flow:

/mcp auth supabase --open

Confirm the server is connected with /mcp list.

For more details, see MCP configuration in fx.

fx is configured by file only, so it gets an alternate instruction block and no install command, matching Cursor, VS Code, Warp and Antigravity.

Additional context

The config above was verified end to end against the hosted server: the OAuth flow completes and /mcp list reports the server connected.

Two notes on the diff:

  • types.ts gains an FxMcpConfig interface, a type guard and a branch in getMcpUrl. fx's shape is not covered by any existing interface (OpenCodeMcpConfig is the other mcp-rooted one, but carries $schema and type: 'remote'). Since getMcpUrl throws on an unrecognized shape and runs for every client with instructions, the guard is required rather than cosmetic. Antigravity (docs(mcp): add Antigravity client #43597) and OpenCode (feat: add OpenCode support to MCP clients #41825) added their shapes the same way.
  • Tests. utils/getMcpIconSrc.test.ts gains a case for the new dark icon variant, alongside the existing cursor and perplexity cases. types.test.ts is new and checks that every client's transformConfig output round-trips back through getMcpUrl, which is what guards the throw above. Happy to drop either if you'd rather keep the diff to the usual shape for a client addition.

Prettier passes with the repo config, tsc --noEmit is clean, and both test files pass.

Summary by CodeRabbit

  • New Features
    • Added fx as a supported MCP client in the MCP URL builder.
    • Added profile-based setup guidance, OAuth authentication instructions, connection verification, and documentation links.
    • Added light and dark fx icons for improved visual support.
  • Bug Fixes
    • Improved MCP URL detection for fx configurations.
  • Tests
    • Added coverage for MCP URL extraction and dark-mode icon selection.

@suarezesteban
suarezesteban requested a review from a team as a code owner August 23, 2026 21:11
@vercel

vercel Bot commented Aug 23, 2026

Copy link
Copy Markdown

@suarezesteban is attempting to deploy a commit to the Supabase Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions

Copy link
Copy Markdown
Contributor

Thanks for contributing to Supabase! ❤️ Our team will review your PR.

A few tips for a smoother review process:

  • If you have a local version of the repo, run pnpm run format to make sure formatting checks pass.
  • Once we've reviewed your PR, please don't trivially merge master (don't click Update branch if there are no merge conflicts to be fixed). This invalidates any pre-merge checks we've run.

@vercel

vercel Bot commented Aug 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
design-system Ready Ready Preview Aug 24, 2026 2:13pm
docs Ready Ready Preview, v0 Aug 24, 2026 2:13pm
studio-self-hosted Ready Ready Preview Aug 24, 2026 2:13pm
studio-staging Ready Ready Preview Aug 24, 2026 2:13pm
ui-library Ready Ready Preview Aug 24, 2026 2:13pm
zone-www-dot-com Ready Ready Preview, v0 Aug 24, 2026 2:13pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
studio Ignored Ignored Aug 24, 2026 2:13pm

Request Review

@coderabbitai

coderabbitai Bot commented Aug 23, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 4f5158f2-0aa9-47d8-a576-03ca5da85aa9

📥 Commits

Reviewing files that changed from the base of the PR and between a18253f and a495731.

⛔ Files ignored due to path filters (2)
  • packages/ui-patterns/src/McpUrlBuilder/assets/fx-icon-dark.svg is excluded by !**/*.svg
  • packages/ui-patterns/src/McpUrlBuilder/assets/fx-icon.svg is excluded by !**/*.svg
📒 Files selected for processing (6)
  • packages/ui-patterns/src/McpUrlBuilder/clients.data.ts
  • packages/ui-patterns/src/McpUrlBuilder/clients.instructions.md.tsx
  • packages/ui-patterns/src/McpUrlBuilder/types.test.ts
  • packages/ui-patterns/src/McpUrlBuilder/types.ts
  • packages/ui-patterns/src/McpUrlBuilder/utils/getMcpIconSrc.test.ts
  • packages/ui-patterns/src/McpUrlBuilder/utils/mcpIconAssets.ts

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.


📝 Walkthrough

Walkthrough

The MCP URL builder adds Fx support with typed HTTP configuration, URL extraction, CLI instructions, authentication, and light and dark icon assets. Tests cover URL recovery and dark icon selection.

Changes

Fx MCP client support

Layer / File(s) Summary
Fx configuration and URL handling
packages/ui-patterns/src/McpUrlBuilder/types.ts, packages/ui-patterns/src/McpUrlBuilder/clients.data.ts, packages/ui-patterns/src/McpUrlBuilder/types.test.ts
Adds FxMcpConfig, registers it in McpClientConfig, transforms standard MCP settings into Fx’s HTTP configuration, and extracts the server URL with test coverage.
Fx CLI registration and instructions
packages/ui-patterns/src/McpUrlBuilder/clients.data.ts, packages/ui-patterns/src/McpUrlBuilder/clients.instructions.md.tsx
Adds Fx to the AI Agent CLI group and defines authentication, profile, reload, verification, and documentation instructions.
Fx icon assets
packages/ui-patterns/src/McpUrlBuilder/utils/mcpIconAssets.ts, packages/ui-patterns/src/McpUrlBuilder/utils/getMcpIconSrc.test.ts
Registers separate light and dark Fx icons and tests their resolution.

Estimated code review effort: 2 (Simple) | ~15 minutes

Merge Risk: ⚪ Minimal · up to a4957

This PR adds fx documentation and configuration support without introducing an actionable merge-blocking risk; it is merge-ready after normal checks and review.

Suggested reviewers: rodriguespn

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description check ✅ Passed The description includes all template sections and clearly explains the configuration, behavior, testing, and implementation context.
Title check ✅ Passed The title clearly identifies the primary change: adding fx as a supported MCP client.
Docstring Coverage ✅ Passed Docstring check was indeterminate for this PR — some files could not be analyzed in time. Not blocking.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@awaseem

awaseem commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Fx is sick, lets get this in

@kemaldotearth kemaldotearth left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved for design assets.

@awaseem
awaseem merged commit adffb26 into supabase:master Aug 24, 2026
33 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Braintrust eval report

Evals in progress... ⌛

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.

3 participants