Skip to content

Add configure-mcp command for coding agents - #184

Merged
sergei1152 merged 24 commits into
mainfrom
devin/1796115317-configure-mcp
Dec 2, 2026
Merged

sergei1152 merged 24 commits into
mainfrom
devin/1796115317-configure-mcp

Conversation

@sergei1152

@sergei1152 sergei1152 commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds parallel-cli configure-mcp to set up the Parallel MCP in Codex, Claude Code, Antigravity, Pi and OpenCode.

parallel-cli configure-mcp --all            # detect installed agents
parallel-cli configure-mcp codex claude     # explicit targets
parallel-cli configure-mcp --all --force    # replace existing `parallel` entries
  • OAuth login active: writes https://mcp.parallel.ai/mcp?login with no auth header. It creates one user-owned API key (POST /service/v1/apps/{app_id}/keys on the parallel-cli Users app) and merges a parallel entry with that key into each agent's own MCP credential store:
    • Codex $CODEX_HOME/.credentials.json (file mode only)
    • Claude Code macOS Keychain or ~/.claude/.credentials.json on other platforms
    • Antigravity mcp_oauth_tokens.json
    • Pi ~/.pi/agent/mcp-auth.json, using the format for the installed Pi version
    • OpenCode mcp-auth.json
  • Desktop apps: codex-desktop (shares ~/.codex/config.toml, written once with the CLI) and antigravity-desktop (~/.gemini/config/mcp_config.json) get a ?login entry plus the app's Authenticate steps. claude-desktop only takes stdio in its JSON config, so the command prints the Customize → Connectors steps. Desktop-only runs never create a key.
  • On macOS, Claude Code setup reads the current Keychain entry again before saving the Parallel sign-in. It sends the update through stdin. If the update is too large or the store is unavailable, the CLI prints claude mcp login parallel. Codex in auto or keyring mode prints its own sign-in command.
  • A valid key on ?login authenticates without an OAuth challenge. When a store is unreadable or unsupported, no key is written and the agent's sign-in command is printed. No key is created if no selected agent can take one.
  • API-key auth or logged out: writes bare /mcp (free MCP) without copying the key, and prints a warning to run parallel-cli login and rerun with --force.
  • File writes are atomic and preserve unrelated entries. Credential files are 0600. Use --force to replace an existing parallel entry. OpenCode updates keep existing comments and substitutions. If several files define parallel, the CLI lists them so you can keep the entry in one place before retrying. If a config key uses a substitution, setup asks you to edit it in OpenCode or use a literal key. When OPENCODE_CONFIG_CONTENT is set, setup leaves OpenCode files alone and prints how to proceed.
  • Docs: docs/configure-mcp.md, linked from the README.

Verification

Live on Linux: real parallel-cli login on the test account, then configure-mcp --all in a temp HOME with all five agent CLIs installed. Each agent connected through its credential store with authenticated tools (web_research present). The test key was deleted afterwards. Free mode was verified earlier with all five agents. That Linux run predates the latest credential and OpenCode changes. Pi 0.99.0 and 1.7.0 connected in both modes against a local test server. OpenCode 1.19.6 resolved the updated layered config in both modes. The macOS sign-in paths were checked with synthetic credentials. Desktop steps were checked against vendor docs.

Check output
Platform device approval: OK
parallel-cli login --json --no-browser: OK
Create user-owned MCP API key: OK
parallel-cli configure-mcp --all: OK; 5 agents, 1 key
All five on-disk configs: ?login, no key; all five credential stores: same key, mode 0600
Live direct using the shared minted key: initialize HTTP 200; tools/list HTTP 200, 7 tools: find_verticals, image_search, search_vertical, web_decisions, web_fetch, web_research, web_search
codex: native MCP status: oAuth; 7 tools including web_research
claude: native MCP list: ✔ Connected (CLI does not print tools)
antigravity: native MCP schema cache: 7 tools including web_research; Google account login prompt=False
pi: native MCP list: connected, 7 tools including web_research
opencode: native MCP list: ✓ parallel connected (CLI does not print tools)
Temporary MCP API key deleted: OK

@sergei1152
sergei1152 requested a review from a team December 1, 2026 09:02
@devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access that start with 'Devin'.

  • Disable automatic comment, CI, and merge conflict monitoring

@devin-ai-integration devin-ai-integration Bot added the devx-engineer Opened by DevX Engineer label Dec 1, 2026
@sergei1152
sergei1152 merged commit d5accf4 into main Dec 2, 2026
7 checks passed
@sergei1152
sergei1152 deleted the devin/1796115317-configure-mcp branch December 2, 2026 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

devx-engineer Opened by DevX Engineer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants