Skip to content

plandesk connect

Copy page

plandesk connect is the recommended way to wire MCP credentials and teach agent repo conventions — without committing secrets.

With plandesk serve running, from a codebase you want bound to a Plan Desk project:

Terminal window
plandesk connect --project "Checkout Revamp"

connect is idempotent — safe to re-run:

PathCommitted?Purpose
.plandesk/config.jsonyesPins repo → project (projectId, server URL)
.plandesk/skill.mdyesAgent conventions (The Skill)
.plandesk/tokenno (gitignored)Raw MCP bearer token
.claude/skills/plandesk/SKILL.md / .agents/skills/plandesk/SKILL.mdyesSymlinks → .plandesk/skill.md (skill discovery)
.mcp.jsonyesMCP server entry with a headersHelper that reads the token
CLAUDE.md / AGENTS.mdyesSentinel block @.plandesk/skill.md
.codex/commands/plandesk.mdyesCodex command → skill file
  1. Resolves the project (by id or name).

  2. Creates or reuses an MCP token in .plandesk/token (gitignored).

  3. Writes .plandesk/config.json (committed project binding).

  4. Merges the plandesk entry into .mcp.json. The entry uses a headersHelper that reads .plandesk/token at connection time, so the token works with zero manual setup — no export needed. Set PLANDESK_MCP_TOKEN only if you want to override the file.

  5. Symlinks the skill into .claude/skills/plandesk/ and .agents/skills/plandesk/ (created if missing) so agents discover it as a skill.

  6. Inserts an idempotent sentinel block in CLAUDE.md (and AGENTS.md if present):

    <!-- plandesk:start -->
    @.plandesk/skill.md
    <!-- plandesk:end -->
  7. Writes .codex/commands/plandesk.md for Codex.

After connecting, start a new agent session so MCP tools reload. No token export is required.

plandesk connect [--repo <dir>] [--project <id|name>] [--url <url>] [--token <token>] [--agent claude|codex|both] [--print]
  • --print — dry-run without writing files
  • --agent — target Claude, Codex, or both (default: detect)

Remove binding: plandesk disconnect (does not revoke the token).

If you prefer not to use connect, see MCP Setup for manual token creation and claude mcp add / codex mcp add registration.