Skip to main content

Integrations

Flock MCP Server

Give your coding agent the evidence it needs to help improve a product experience. Plan a review, inspect the result, and work on the fix in the same conversation.

Connect with OAuth, choose a workspace, and verify read access before your first review. Add test access when you want to run approved reviews.

From a code change to a useful review

Suppose you change signup. Your agent can inspect the code using its existing repository access, suggest a focused Flock review, and show the proposed scope and usage. After you approve, it can launch the review, read the evidence, and help make a scoped repair.

After connection, a request can be as simple as:

Help me review a new user creating a test account on this preview. Start signed out on the signup page with one relevant persona available to this workspace. The finish line is the welcome screen; stop before inviting anyone or entering payment details. Check the starting page if useful, then propose a bounded Goal → Follow the flow review. Show the setup and estimate and wait for approval before launch. Inspect the evidence and suggest a scoped repair and comparable retest; ask before making changes or launching another review unless I have already authorized that action.

You choose the task and approve the review. The agent handles tool inputs and result retrieval. See Personas for choosing perspectives and Getting started for the same workflow in the dashboard.

Connection

You need a Flock account with access to a workspace. If sign-in shows Invite required, accept a workspace invitation first. Use a reachable preview, staging, or public application URL for reviews; a server running only on your laptop is not reachable by Flock. Start with read-only access, then add test access for approved reviews.

Connection requirements

  • Use Streamable HTTP with OAuth and PKCE.
  • Production supports URL-only OAuth connections from Codex, Claude Code, ChatGPT, and Claude using their supported official client identities. Your client controls its available connector settings and sign-in flow.
  • The manual configurations below use preregistered client IDs and exact callbacks. Arbitrary dynamic client registration is not supported.
  • Flock does not issue an API key or client secret for this connection.

Hosted server settings

server URL: https://mcp.flocksynthetics.com/mcp
transport: Streamable HTTP
authorization: OAuth with PKCE
client: supported official OAuth client, or the manual setup below
read scope: https://mcp.flocksynthetics.com/mcp/read
test scope (opt-in): https://mcp.flocksynthetics.com/mcp/test

Local clients, hosted service, and review targets

Codex and Claude Code can run on your computer while Flock runs remotely. You do not need to run Flock locally. Keep these three addresses separate:

MCP endpoint
The hosted HTTPS address your client calls for tools. Production uses https://mcp.flocksynthetics.com/mcp.
OAuth callback
The address your browser returns to after consent. In normal URL-only setup, Codex and Claude Code choose a local callback port; ChatGPT and Claude use their supported hosted callbacks. Your client receives the authorization code and exchanges it for access.
Review target
The application Flock's hosted browser reviews. Use a reachable preview, staging, or public URL that meets your workspace's target policy. Successful MCP login does not make your laptop's localhost server reachable.

SSH, containers, WSL, and a browser on another machine

The browser's localhost must reach the client waiting for the callback. When your CLI runs remotely or inside a separate network environment, that may require a private port-forwarding arrangement specific to your setup. The simplest starting point is a client and browser on the same computer with the callback port available. These examples do not establish a tested setup for every remote environment.

For supported official Codex and Claude Code client identities, Flock accepts HTTP callbacks on localhost or 127.0.0.1, at the port chosen by the client, with the path /callback. The fixed manual configurations below have a different rule: their hostname, port, and path must exactly match the registration.

Other clients

Flock validates a bounded set of official OAuth client metadata documents and their permitted callbacks. A metadata document identifies a supported client; it does not allow arbitrary client IDs, dynamic registration, or arbitrary HTTPS callbacks. For another client, check the environment's hosted setup guide and advertised capabilities, then contact support@flocksynthetics.com if its sign-in flow is unsupported.

Production and DEV are separate environments

This guide's commands target production. If you have DEV access, its endpoint is https://mcp.dev.flocksynthetics.com/mcp. Read that origin's generated setup guide, use a separate server entry, and keep endpoint and scope origins together. Do not combine a DEV endpoint with production scopes or assume a production grant authorizes DEV.

Hosted review targets default to HTTPS and exclude local or private addresses and non-default ports. DNS and workspace policies also apply. A public tunnel is not a universal workaround; use a suitable deployed preview and check readiness. If the target requires login, configure saved sign-in separately.

Connect Codex

Add Flock by URL. Codex discovers the OAuth configuration and uses its official client identity without a manual client ID or callback port. If flock-prod already exists, update that entry instead of adding a duplicate. Leave oauth_resource unset so Codex discovers the resource.

codex mcp add flock-prod --url "https://mcp.flocksynthetics.com/mcp"

Check the URL and start a read-only login:

codex mcp get flock-prod --json
codex mcp login flock-prod --scopes "https://mcp.flocksynthetics.com/mcp/read"

To allow approved launches, retries, cancellations, and saved sign-in reconnection, request both scopes instead:

codex mcp login flock-prod --scopes "https://mcp.flocksynthetics.com/mcp/read,https://mcp.flocksynthetics.com/mcp/test"
Manual Codex setup with a fixed callback

Use this alternative only when configuring the registered manual client. Add it to ~/.codex/config.toml, then use the login command above. Keep flock-codex and http://localhost:8765/callback exact. The OAuth fields may not appear in mcp get output; inspect the configuration and callback emitted during login.

[mcp_servers.flock-prod]
url = "https://mcp.flocksynthetics.com/mcp"
startup_timeout_sec = 350
tool_timeout_sec = 350
required = false

[mcp_servers.flock-prod.oauth]
client_id = "flock-codex"
callback_url = "http://localhost:8765/callback"
callback_port = 8765

The optional 350-second settings are MCP initialization and tool-call wait limits for backend wake. They do not control OAuth browser login, token exchange, or refresh timeouts, and they do not guarantee a connection.

Connect Claude Code

Add the HTTP server by URL. Claude Code handles the official client identity and callback port:

claude mcp add --transport http flock-prod "https://mcp.flocksynthetics.com/mcp"

Start claude, enter /mcp, select the Flock server, and follow browser login. Use the shell login command only if your installed claude mcp --help lists it. Claude Code's own model-account sign-in is separate from Flock consent.

Optional read-only configuration

Use this instead of the normal add command, with a client that supports oauth.scopes. It keeps automatic client identity and callback selection:

claude mcp add-json flock-prod '{"type":"http","url":"https://mcp.flocksynthetics.com/mcp","oauth":{"scopes":"https://mcp.flocksynthetics.com/mcp/read"}}'
Manual Claude Code setup with a fixed callback

For a current client that supports oauth.clientId, oauth.callbackPort, and oauth.scopes, this alternative uses the registered flock-claude identity and exact http://localhost:8766/callback:

claude mcp add-json flock-prod '{"type":"http","url":"https://mcp.flocksynthetics.com/mcp","oauth":{"clientId":"flock-claude","callbackPort":8766,"scopes":"https://mcp.flocksynthetics.com/mcp/read"}}'

Choose one configuration. If the entry already exists, update it or remove and recreate it at the same configuration scope. Claude's scopes string is space-separated; approved review actions require both read and test scopes. Check the requested permissions before consent, especially with an older client. See the Claude Code authentication reference.

Connect ChatGPT or Claude

In your client's connector settings, enter https://mcp.flocksynthetics.com/mcp. Follow Flock sign-in, choose a workspace, and review the requested access. Your browser returns to the client's supported hosted callback. You do not need the localhost configuration shown in the manual CLI examples.

Production accepts the supported official OAuth identities for these clients. Connector availability and settings depend on your client, account, and workspace policies; a supported server connection does not enable a connector your account cannot use.

After connection

A coding agent that receives Flock's welcome instructions is asked to offer guided setup when it can respond. Whether the welcome appears immediately depends on the server's advertised capabilities and your client. You should not need to learn tool names or paste a setup procedure.

Welcome to Flock. Want help setting up this project and choosing a useful first review?

When you accept, the agent retrieves Flock's setup guidance, helps you choose a useful test, confirms your workspace and sign-in choice, and shows an estimate before launch. If you are already working on a Flock task, it continues that task. The agent uses its existing file access to inspect your project; Flock MCP does not read your repository itself.

Your client controls when the coding agent speaks. Connecting alone does not start a review.

If your client does not show a welcome

Use this optional fallback. Clients that expose MCP prompts can also select flock_onboarding; the agent can retrieve the same guidance through get_setup_guidance.

Set up Flock for this project. Help me choose one customer goal, an observable finish line, and one relevant initial persona available to this workspace. Check the starting page when useful, then propose Goal → Follow the flow for a known finish line or bounded Roam for discovery. Show the setup, limits, and estimate and wait for approval before launch. Afterward, inspect the evidence and suggest a scoped repair and a fresh comparable review of the updated target before broadening perspectives. Ask before making changes or launching another review unless I have already authorized that action.

Set up a flow that needs login

  1. Open Settings → Integrations (/settings/integrations) in the same workspace you authorized.
  2. Choose Add saved sign-in. Enter Sign-in name and App URL for the signed-in app, then continue.
  3. Choose Open sign-in and complete login and MFA yourself in the browser.
  4. Choose Check sign-in and require Connected. For an existing profile, choose Reconnect. Use Sign in directly only when the flow offers that fallback.

The agent checks your saved sign-in's current readiness and preserves your selected profile through recommendation, estimate, and launch. Reconnection requires test scope and integration-management permission, completes human login in the browser, and never starts a review. Never paste credentials or browser state into chat.

What your agent does next

01

Inspect the repository and changes

Your coding agent uses its repository access to identify an affected customer task, an observable finish line, and one relevant initial persona. It preserves a task or persona you have already chosen.

02

Check readiness and usage

Confirm the workspace and reachable target, select saved sign-in if needed, and review the configuration and estimate. Check the starting page when useful; use Goal → Follow the flow for a known finish line or bounded Roam for discovery.

03

Approve and run

Approve the proposed review before launch. Test access and workspace permission are required.

04

Inspect findings and evidence

Read the actions, task outcome, findings, and available images. A completed review does not prove the goal was achieved. Keep partial, unknown, and unavailable outcomes explicit and retrieve relevant repair guidance.

05

Make a scoped fix

Inspect the proposed repair, then let the coding agent edit the relevant code and run local checks within your existing authorization. A suggestion alone does not authorize an edit.

06

Review the same flow again

Confirm the updated build is reachable, refresh setup and sign-in readiness, and estimate a fresh comparable review. Launch within your authorization and inspect the new evidence before broadening personas or adding relevant specialists.

Follow Getting started for the complete goal-first review method. Skip the starting-page check when investigating a known later-step failure. Add personas or relevant design and technical specialists when their perspectives will help, keeping specialist coverage separate from behavioral task success.

Your agent handles tool inputs, recovery, and result retrieval within your authorization. You choose the task and access and review the configuration and usage. An estimate describes expected usage; it is not a price guarantee or a promise of a free test.

To keep useful checks running, use the dashboard to schedule an eligible completed review when Schedule is available, or configure the GitHub App to run Flock reviews on relevant PR previews with selected personas. Scheduling needs reusable inputs and current sign-in readiness. MCP does not create schedules, install or activate the app, or create personas; a manual review's full setup and baseline are not automatically imported into GitHub.

Tool reference and example calls

Your coding agent normally handles these details. Use this reference when inspecting a tool call or building a client integration. Discover the tools exposed by the MCP server you connected to; optional features and documentation search can differ by environment.

Example tool calls

Replace placeholder IDs with values returned by Flock. Before starting a test, call estimate_run with the proposed configuration and review readiness and usage. Launch within the applicable authorization using launch_run with a fresh idempotency key. Use get_run_status with its batch_id before requesting final results. For a finding prompt, use the retrieval selector returned by get_review; follow content_next_cursor until the prompt is complete.

After a product fix, confirm the updated build is available at the intended target, refresh configuration, saved sign-in, and usage readiness, and estimate the comparable setup before a fresh launch_run with a new idempotency key. retry_run recovers an eligible failed batch with frozen settings; it does not verify a changed setup or repair stale saved sign-in. Reuse a launch key only to recover delivery of the identical already-requested launch.

1. Recommend a test

tool: recommend_test_configuration
arguments:
  workspace_id: WORKSPACE_ID
  url: https://preview.example.com/signup
  goal: Create a shared workspace and invite a teammate

2. Retrieve run results

tool: get_run_results
arguments:
  workspace_id: WORKSPACE_ID
  run_id: RUN_ID

3. Retrieve a finding prompt

tool: get_review
arguments:
  workspace_id: WORKSPACE_ID
  review_id: REVIEW_ID
  prompt_target: finding
  finding_id: FINDING_ID

Protocol

Recommend, test, and review through tools.

Your client can recommend a test, estimate its usage, launch it after approval, and read the results. Evidence images and repair prompts are retrieved through tools. Servers with documentation resources can expose flock://docs/scores, flock://docs/mcp, and flock://docs/github. Where available, flock_onboarding guides repository setup. When app extensions are enabled in DEV, compatible hosts can open the sidebar through open_flock and ui://flock/app.

Tools for the review workflow

Discover and prepare

get_setup_guidance, search_product_docs, get_product_docs, account, workspaces, list_auth_profiles, recommend_test_configuration, estimate_run. Search published docs and public product information, read the matching guide, confirm the workspace, check saved sign-in, and estimate a proposed test. Recommendations use your goal and the available catalog; they do not inspect the application.

Run and inspect

launch_run, get_run_status, get_run_results, get_run_image, retry_run, cancel_run. Launch only after approval, follow the lifecycle, and retrieve available evidence images. Launch, retry, and cancel require the test scope and workspace permission.

Read reviews and repair prompts

list_reviews, get_latest_review, get_review, get_review_evidence. Find workspace reviews, read findings and technical evidence, and retrieve available repair prompts through tools.

Reconnect saved sign-in

start_auth_profile_reconnect, get_auth_profile_reconnect_status, cancel_auth_profile_reconnect. Open a first-party browser handoff for human login and MFA. Starting or cancelling requires test scope and current integration-management permission. Reconnection never launches a review.

Optional client features

When app extensions are enabled in DEV, compatible hosts can use open_flock for the Flock sidebar and search_flock_reviews for review mentions. Resource-capable clients can read available public documentation resources. Clients with prompt support can select flock_onboarding; tools-only clients use get_setup_guidance.

Your agent can search the documentation

Ask a normal question about Flock. When your connected server exposes search_product_docs and get_product_docs, the agent can search the published docs and public site, including concepts, integration guides, pricing, security, policies, and articles. Results include source links; the agent reads a selected document using its returned id.

Publishing a guide does not add tools to an older MCP server. If your connection does not expose documentation search, use these public pages and the environment's generated /docs.md guide. The agent can still retrieve setup guidance through get_setup_guidance when that tool is available.

The search index is generated from published pages when the site is built. If the published index cannot be refreshed, the tool identifies whether it is using an older cached index or a smaller set of bundled guides. The agent should disclose that limit rather than claim it searched everything.

The bundled get_product_docs topics are scores, findings, concepts, mcp, and github. Omit both topic and id for that index, or read a matching flock://docs/ resource. Use either an indexed document id or a bundled topic, not both. Public documentation contains no private workspace results; the agent retrieves your review separately with your connection's permissions.

When setup gets stuck

Claude reports unknown command 'login'
Use a current client with the documented OAuth configuration support. Authenticate inside a Claude session with /mcp instead of shell login. Do not assume an older client honors oauth.scopes; check requested permissions before consent.
Invite required or no eligible workspace
Accept a workspace invitation or use an account with access, then start a new connection. If the wrong workspace is granted, disconnect and consent to the intended one.
Connection request expired
Start a fresh login from your client.
Browser cannot reach localhost after consent
Check that the client is still waiting and that the browser can reach its callback listener. For SSH, containers, WSL, or a browser on another computer, review the local and hosted setup. Start a fresh login after correcting the route.
Redirect URI is not registered
For the manual configurations, use the exact callback registered for that client ID, including hostname, port, and path. For normal URL-only setup, use a supported official client and its permitted callback. Do not combine a hosted client's callback with a local client's identity.
Callback port in use
For normal URL-only setup, start a fresh login so the client can select an available callback port. For the manual configurations, finish the existing login on port 8765 for Codex or 8766 for Claude, or stop that process only when safe. Those fixed registrations do not accept a substituted port.
Invalid request after setting oauth_resource
Remove that override and start login again. Duplicate resource parameters are rejected.
insufficient_scope
Request both scopes, disconnect the old grant in Connected tools, and consent again. Workspace permissions and spending controls still apply.
Saved sign-in expired, not confirmed, or unavailable
Reopen sign-in or reconnect, complete login and MFA, and check until Connected. Refresh readiness and the estimate. Do not silently switch to anonymous access.
Connection slow or unavailable
Allow for backend wake, then inspect client and grant state before repeating login. The /mcp/healthz endpoint proves gateway liveness only; it does not establish backend readiness or working authorization.
Results or images not ready or unavailable
Read the status and reason. Missing evidence does not establish that there are no issues.

Boundaries

Keep permissions and evidence status explicit.

  • Read access includes setup, product docs, recommendations, estimates, status, results, review reads, and available run images. Test access adds launch, retry, cancel, and starting or cancelling saved sign-in reconnection, subject to workspace policy and permissions.
  • For a target that requires login, complete a saved sign-in in Flock and select that profile. Never paste passwords, tokens, cookies, or browser storage into chat.
  • Results can be partial, not ready, or unavailable. Respect each result’s status and reason; a missing image is not evidence that no issue exists.
  • Read images only through get_run_image using an artifact_id returned by get_run_results. Do not construct image IDs or fetch arbitrary URLs.
  • Repair prompt availability and text are separate. Follow the supplied retrieval selector and ordered chunks, preserving their byte counts and hashes. An unavailable full-review prompt does not invalidate an available finding prompt.

Protocol references

Connection and protocol references.

Use the hosted Flock guide for current client setup, scopes, tool inputs, paging, and prompt retrieval. The MCP specification explains the underlying protocol.

Want MCP access in the private beta?

Tell us which client and workflow you want to connect. We can confirm private beta access and the setup requirements for your client.

Request private beta access