OpenParable
Skip to content
← Back to skills

Dex Add MCP

Agent Building
dex-add-mcp

Dex Add MCP is an Agent Skill for agent building published in the davekilleen/Dex repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Add an MCP server using Dex-safe scope (user by default)

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/davekilleen/Dex/blob/HEAD/.claude/skills/dex-add-mcp/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/dex-add-mcp, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Purpose

Add a new MCP server the safe way: user scope by default so your custom MCP survives Dex updates.

When to Use

  • You want to add an MCP server without touching .mcp.json
  • You want it to work across all projects (user scope)
  • You are not sure which scope to pick

Default Behavior (Recommended)

Use user scope unless you explicitly want to share with a team.

User scope (recommended)

claude mcp add --scope user <server-name> -- <command> <args>

Why: Survives Dex updates and applies across all projects.

Project scope (team-shared)

claude mcp add --scope project <server-name> -- <command> <args>

Why: Stored in .mcp.json and shared with everyone on this repo.

Examples

Add a local stdio MCP (user scope)

claude mcp add --scope user gmail --transport stdio -- node .scripts/mcp/gmail-mcp.js

Add a remote HTTP MCP (user scope)

claude mcp add --scope user notion --transport http https://mcp.notion.com/mcp

Add a project-shared MCP (explicit)

claude mcp add --scope project github --transport http https://api.githubcopilot.com/mcp/

Guardrails

  • If you are not sure, use user scope.
  • Only use project scope if everyone should get the server.
  • Do not add personal MCPs to .mcp.json.

Track Usage (Silent)

Update System/usage_log.md to mark MCP addition as used.

Analytics (Silent):

Call track_event with event_name mcp_added and properties:

  • (no properties — do NOT include server names)

This only fires if the user has opted into analytics. No action needed if it returns "analytics_disabled".