Add fx integration guide, document headless MCP auth - #528
Open
dprevoznik wants to merge 1 commit into
Open
Conversation
Verified end-to-end: fx connects to Kernel's MCP server, creates a browser session, runs execute_playwright_code, and cleans up. OAuth (the CLI-installed default) only works in an interactive session, so document the bearer_token_env path for fx ask/fx acp/CI.
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
There was a problem hiding this comment.
Risk assessment: Very Low
Decision: Approve.
Inspected the actual diff (+80 / -1 across 5 files). This is documentation-only on a Mintlify docs site:
- New
integrations/vercel/fx.mdxintegration page - One nav entry in
docs.json - Link additions in
integrations/overview.mdxandintegrations/vercel/overview.mdx - New “Headless and scripted use” section on the existing
reference/mcp-server/clients/fx.mdxclient page (placeholdersk_..., env-var auth viabearer_token_env)
No application code, auth/billing/permissions logic, infrastructure, schema, or shared runtime paths changed. No CODEOWNERS file exists, so codeowner review is not required. No prior approval to preserve or revoke.
Safe to approve under the Very Low criteria (documentation-only, small scoped diff, no production logic or infra impact).
Sent by Cursor Automation: Assign PR reviewers
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.


Summary
integrations/vercel/fx.mdx, an integration guide for connecting fx (Vercel Labs' native CLI coding agent) to Kernel's MCP server, and links it fromintegrations/overview.mdx,integrations/vercel/overview.mdx, and the nav.reference/mcp-server/clients/fx.mdxpage: the OAuth flowkernel mcp install --target fxsets up only works in an interactive fx session. Non-interactive runs (fx ask,fx acp, CI) need a Kernel API key via fx'sbearer_token_envfield instead — fx rejects a literalAuthorizationheader, so the generic API-key pattern used on other client pages doesn't apply here.Test plan
Verified end-to-end in a scratch environment before writing anything down:
~/.fx/mcp.jsonwithbearer_token_envpointing at a Kernel API keyfx askwith a prompt to create a browser session, runexecute_playwright_codeagainsthttps://example.com, and delete the session — got back the correct page title and confirmed viakernel browser listthat the session was cleaned upkernel mcp install --target fxfails in non-interactivefx askwith the exact error now documented on the client pagedocs.jsonvalidated as JSONNot run:
mintlify broken-links(exits non-zero in this sandbox with no other output, likely a network/environment issue unrelated to this change).Note
Low Risk
Documentation-only changes with no product code, auth, or data-path modifications.
Overview
Adds documentation for connecting Vercel fx to Kernel’s MCP server so fx can spin up cloud browsers, run Playwright via MCP tools, and tear sessions down.
A new
integrations/vercel/fx.mdxpage covers overview, setup (interactive OAuth vs headless), and anfx askexample. It’s wired intodocs.jsonnav,integrations/overview.mdx, andintegrations/vercel/overview.mdx.The existing
reference/mcp-server/clients/fx.mdxpage gains a Headless and scripted use section: non-interactive runs (fx ask,fx acp, CI) can’t use/mcp auth, so users must use a Kernel API key via fx’sbearer_token_env(not a staticAuthorizationheader).Reviewed by Cursor Bugbot for commit 46e4c55. Bugbot is set up for automated code reviews on this repo. Configure here.