Skip to content

Concepts · mcp

MCP Servers ​

devkit connects agents to MCP servers without storing OAuth credentials.

Scopes ​

ScopeVisibility
local (default)private to you and this project
projectshared through the repository's .mcp.json
userprivate, available in every project

Same-name precedence is local → project → user. Use project only for team-safe config without embedded secrets.

bash
bash
claude mcp add <name> --scope <local|project|user> -- <command>
claude mcp list
claude mcp remove <name>

Default checks ​

devkit sync registers missing required user-scope connections and preserves customized entries. Claude Code uses native tool search for codegraph, e2e, context7 and optional Claude-only pencil.

ServerTransportPrerequisite
codegraphstdio (env CODEGRAPH_TELEMETRY=0 codegraph serve --mcp)codegraph installed
e2e (Claude, Codex, Pi)stdio (devkit e2e-mcp); run_code has test-file authoritydevkit sync installs the pinned runtime and Chromium
context7HTTP with OAuth, opt-in, not on Sparkdevkit config context7 on, then claude mcp login context7 or /mcp
pencil (optional, Claude only)stdio (devkit pen-mcp --app desktop --agent claudeCodeCLI)pen installed

Pi: sync configures built-in MCP in ~/.pi/agent/mcp.json with codemode exposure; pi-web-access remains separate. OAuth login: pi mcp login <server>.

A project context7 with its own URL, key or pin is yours: sync never rewrites project MCP files; devkit init stops instead.

pencil is checked at user scope when pen is installed; devkit init and /index never seed it in projects. Existing entries remain personal.

Browser sessions without project setup ​

devkit sync installs e2e and Chromium centrally for Claude, Codex and Pi. Preparation, output and cache stay outside the project; no app starts, telemetry is off. Node: ^22.22.3 || >=24.8.0; missing/disabled setup: exit 2 (sync required), write failure: exit 1.

devkit e2e-prep --url https://example.com prints absolute CONFIG for open_session on the global server. Use tools, call, then close_session. Locator assertions need no model. Choose desktop (default 1280×720) or phone (390×844); check both for layouts, specifying target for two.

--agent claude or --agent codex uses the coding-agent login for ACP act/assert; --explore-model openai uses the subscription explorer. They are mutually exclusive; prep never starts login. Replay of act uses no model, but agent.assert calls the agent; use locators for zero tokens.

--login <name> declares empty credentials; supply username and password as runtime environment variables to prep and server. Use type_secret with the password handle. Each new session needs sign-in: no saved session or Orca login bridge. --basic-auth <name> separately handles staging HTTP 401. Never put secrets in config, traces, evidence or model-shared commands; production stays read-only.

Saved flows are central, trusted code with environment access: review drafts and use secret handles. Replay first: an empty store reports zero and REPORT=none; exit 1 means test failure, 2 setup/runtime/report failure. Replay requires modelTokens: 0; explore new or failing flows interactively.

Prep prunes runs after 14 days, never saved flows; cleanup failures only warn. Visual baselines and changes need owner approval. Replay compares read-only; missing or changed screenshots fail (REPORT).

Self-test: replay, filters, credentials, proof, cleanup and baseline commands. Bug bash: isolated repros and CLI execution.

Project servers in Codex and OpenCode ​

Claude reads .mcp.json directly; Pi reads .pi/mcp.json after native project trust. Trusted interactive sessions connect project servers without another MCP approval prompt. Untrusted projects remain blocked by Pi's trust decision.

Delegates use exclusive native Codegraph, never saved servers. Personal adapters remain and replace built-in MCP until disabled. Old settings/credentials stay; native OAuth requires separate sign-in. See Pi's MCP documentation.

devkit init adds missing servers to .codex/config.toml ([mcp_servers.*]) and opencode.json (mcp), preserving hand-written entries. Servers already in Codex's user config are not duplicated locally; identical devkit copies are pruned, while customized copies remain with a notice.

A header or env value written as ${VAR} (or Bearer ${VAR}) becomes that runtime's env-var reference. A literal credential is never copied: the server is skipped for that runtime and reported as PROJECT_MCP_SKIPPED <name> <runtime> literal-credential.

devkit doctor lists each server per runtime with the env vars it needs, and the Codex session notice names servers still missing. Servers removed from .mcp.json are not removed from the mirrors.

Disable ​

  • Per project: /mcp writes disabledMcpServers in ~/.claude.json; claude mcp remove does not clear that entry, so re-enable it in /mcp.
  • Session notice: OD_SKIP_MCP_AWARENESS=1 hides the SessionStart notice about project-local servers; devkit switches lists every toggle.
  • Whole session: claude --bare.

Manage claude.ai OAuth connectors through Settings → Connectors or /mcp, not project servers. Keep only current connections: schemas cost context.

Writes through MCP ​

MCP writes have no diff: enumerate and count targets, mutate idempotently, read every value back from its source, and repeat until zero remain or report each stuck item by name.

Internal docs — onedot-devkit · devkit

devkitdevkit syncdevkit statusdevkit doctordevkit helpInternal docs · ONEDOT digital crew