Docs

Connect AI agents to Conflux (MCP)

Conflux has an MCP server (Model Context Protocol). Once you connect it, your AI app can read and update your projects, boards and cards, and answer questions about your metrics. For example:

  • "Which cards are blocked on the Payments board?"
  • "Create a bug card in the ABC backlog with the error we just saw."
  • "Move ABC-42 to Review and comment with the PR link."
  • "When will the Release 2.3 list be done, with 85% confidence?"

The agent acts as you, with your permissions: it only sees and changes what you can already see and change in Conflux.

Before you start

All you need is the server URL:

What Value
Server URL https://confluxlab.co/mcp

There are two ways to sign in, depending on the app:

  • Sign in with Conflux (OAuth): ChatGPT and Claude Desktop. Paste the URL, sign in to Conflux and click Authorize. No token to copy. Skip to step 2.
  • API token: Claude Code, Cursor, VS Code, Codex, Devin and other apps that send a custom header. The app sends Authorization: Bearer cfx_... over Streamable HTTP. Create the token in step 1.

Step 1: Create an API token

  1. Sign in to Conflux and open API tokens from the menu under your avatar.
  2. Give the token a name that says where it will be used, like Claude Desktop on my laptop.
  3. Click Generate token and copy it right away. It's shown only once; if you lose it, create a new one.

Create one token per app or computer. That way you can revoke a single one without breaking the others.

Step 2: Connect your app

Pick your app below. In the token examples, replace cfx_YOUR_TOKEN with the token from step 1.

Claude Desktop

Claude Desktop signs in with your Conflux account. Connectors you add here also work on claude.ai and in the Claude mobile apps.

  1. In Claude, open Settings → Connectors and click Add custom connector.
  2. Name it Conflux and paste the server URL:
https://confluxlab.co/mcp
  1. Click Add, then Connect. A Conflux page opens: sign in if needed and click Authorize.
  2. In a chat, open the tools menu of the chat box and turn Conflux on.

On Team and Enterprise plans, an Owner may need to add the connector first under Organization settings → Connectors. Each person then clicks Connect and signs in with their own Conflux account.

ChatGPT

ChatGPT signs in with your Conflux account. In workspace plans, an admin may need to allow custom MCP servers first.

  1. On chatgpt.com, open Plugins and click Add custom MCP server.
  2. Fill in the form:
    • Name: Conflux
    • Connection → Server URL: https://confluxlab.co/mcp
    • Authentication: OAuth. Leave Advanced OAuth settings as they are; ChatGPT discovers them from Conflux.
  3. Check I understand and want to continue and click Create as a plugin.
  4. A Conflux page opens: sign in if needed and click Authorize.

Claude Code

Run this in your terminal:

claude mcp add --transport http --scope user conflux https://confluxlab.co/mcp \
  --header "Authorization: Bearer cfx_YOUR_TOKEN"

--scope user makes Conflux available in all your projects. Check it with claude mcp list, or /mcp inside Claude Code.

Cursor

  1. Open (or create) ~/.cursor/mcp.json. For a single project, use .cursor/mcp.json in the project instead.
  2. Add:
{
  "mcpServers": {
    "conflux": {
      "url": "https://confluxlab.co/mcp",
      "headers": {
        "Authorization": "Bearer ${env:CONFLUX_TOKEN}"
      }
    }
  }
}
  1. Set CONFLUX_TOKEN=cfx_YOUR_TOKEN in your shell profile (or write the token directly in place of ${env:CONFLUX_TOKEN}).
  2. In Cursor Settings → MCP, check that conflux has a green dot.

VS Code (GitHub Copilot)

  1. Open the Command Palette (Ctrl/Cmd + Shift + P) and run MCP: Open User Configuration. For a single project, create .vscode/mcp.json instead.
  2. Add the configuration below. VS Code asks for the token the first time and stores it securely, outside the file:
{
  "inputs": [
    {
      "type": "promptString",
      "id": "conflux-token",
      "description": "Conflux API token (cfx_...)",
      "password": true
    }
  ],
  "servers": {
    "conflux": {
      "type": "http",
      "url": "https://confluxlab.co/mcp",
      "headers": {
        "Authorization": "Bearer ${input:conflux-token}"
      }
    }
  }
}
  1. In Copilot Chat, switch to Agent mode and click the tools icon to see the Conflux tools.

Codex (OpenAI CLI)

  1. Add the token to your shell profile (~/.zshrc or ~/.bashrc):
export CONFLUX_TOKEN="cfx_YOUR_TOKEN"
  1. Add to ~/.codex/config.toml:
[mcp_servers.conflux]
url = "https://confluxlab.co/mcp"
bearer_token_env_var = "CONFLUX_TOKEN"
  1. Open a new terminal, run codex and type /mcp to check the connection.

Devin

  1. In Devin, go to Customize → MCPs → Add MCP → Add custom MCP. You need the Manage MCP Servers permission.
  2. Fill in:
    • Server name: Conflux
    • Transport: HTTP
    • Server URL: https://confluxlab.co/mcp
    • Authentication: Auth Header, with key Authorization and value Bearer cfx_YOUR_TOKEN
  3. Click Save, then Test tools. The Conflux tools should be listed.

Devin uses this token in all your organization's sessions. Create it for a user with the access the team should have.

Other apps

Any MCP client that supports Streamable HTTP works with the server URL https://confluxlab.co/mcp:

  • If the app supports OAuth, it finds the Conflux sign-in page by itself. Sign in and click Authorize.
  • Otherwise, send the header Authorization: Bearer cfx_YOUR_TOKEN. If the app only runs local (stdio) servers, use the bridge mcp-remote:
{
  "mcpServers": {
    "conflux": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://confluxlab.co/mcp", "--header", "Authorization:${CONFLUX_AUTH}"],
      "env": { "CONFLUX_AUTH": "Bearer cfx_YOUR_TOKEN" }
    }
  }
}

Keep Authorization:${CONFLUX_AUTH} without a space. The space goes inside CONFLUX_AUTH, because some systems split arguments that contain spaces.

Step 3: Test the connection

Ask your agent:

"List my Conflux projects."

If your projects show up, you're done. The token's Last used at column on the API tokens page also updates.

To test without an AI app, run:

curl -s https://confluxlab.co/mcp \
  -H "Authorization: Bearer cfx_YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

The response is a JSON list of the available tools.

What the agent can do

Just ask in plain language; the agent picks the right tool. You can refer to cards by their code, like ABC-42.

Read

Tool What it does
list_accounts Accounts (organizations) you belong to
list_projects Your projects, with their lists (milestones and backlogs) and members
list_boards Boards you can access
get_board A board's stages, WIP limits and the cards in each stage
search_cards Cards by text and filters: project, list, board, stage, status, type, assigned to me
get_card A card's description, assignees, comments, impediments and stage history

Change

Tool What it does
create_card Creates a card in a list, optionally on a board stage
update_card Edits title, description, type or strategic value
move_card Moves a card to a stage or position, including from the backlog. The last stage completes it
remove_card_from_board Sends a card back to the backlog
archive_card Archives a completed card
add_comment Comments on a card as you
update_comment / delete_comment Edits or deletes one of your own comments
assign_user / unassign_user Adds or removes assignees (you, by default)
block_card / resolve_impediment Records or resolves an impediment

Metrics (per project or per list)

Tool What it does
get_lead_time_metrics Lead time in days: average, p50/p60/p80/p95, histogram and recent cards
get_weekly_digests Weekly throughput, scope, burnup, cumulative flow, queue and touch time
get_failure_demand_rate Value demand vs. failure demand (bugs)
get_monte_carlo_forecast Completion dates for the remaining scope at 50/70/85/95% confidence
get_week_cards_summary Cards completed in a week and the time they spent in each stage

Security

  • Treat the token like a password. Anyone who has it acts in Conflux as you. Keep it out of repositories, screenshots and chat messages.
  • Prefer environment variables or secure prompts over writing the token in config files.
  • Revoke tokens and disconnect apps you no longer use on the API tokens page. Access stops immediately.
  • Everything is recorded under your name. Cards, comments and moves made by the agent show up as yours, including in metrics and Slack notifications.
  • Review write actions. Most apps ask before running a tool; read the request before approving moves and archives.

Troubleshooting

Problem What to check
401 / "Invalid or missing token" The header must be exactly Authorization: Bearer cfx_..., with the word Bearer and a space. The token may also have been revoked: create a new one
No Conflux tools in the app Restart the app after editing its config, and check that the JSON or TOML is valid
The Conflux sign-in page shows an error Remove the app or connector and add it again. The app must use the URL https://confluxlab.co/mcp exactly
ChatGPT has no option to add a server Ask your workspace admin to allow custom MCP servers
mcp-remote doesn't connect Install Node.js and keep Authorization:${CONFLUX_AUTH} without a space
"Not found or not accessible with this token" You're not a member of that project or board, or the code is wrong
"More than one card matches" Two projects use the same abbreviation. Use the card id from search_cards
"Provide either project or list_id" Say which project or list the metrics are for, e.g. "for project ABC"
"Last used at" doesn't change The app is using a different token. Compare the prefix shown on the API tokens page

Questions or ideas for new tools? Talk to the Conflux team.