agent-add-mcp
- Repo stars 59,731
- Author updated Live
- Author repo warp
- Domain
- AI
- Compatible agents
-
- Claude Code
- Cursor
- Cline
- Codex
- Windsurf
- Gemini CLI
- +20
- Trust score
- 88 / 100 · community maintained
- Author / version / license
- @warpdotdev · no license declared
- Token usage
- Lean
- Setup complexity
- Guided setup
- External API key
- Required · Vendor-specific
- Operating systems
- macOS · Linux · Windows
- Runtime requirements
- Node.js
- Permissions
-
- Read-only
- Write / modify
- Shell exec
- Env read
- Network behavior
- External requests
- Install commands
- 26 variants
Profile is derived at build time from SKILL.md and install vectors. Subject to drift from author intent.
Heads up: 未限定 allowed-tools,默认拥有全部工具权限。
---
name: agent-add-mcp
description: Use this skill when helping users add MCP servers to their Warp configuration. Warp supports MCP…
category: ai
runtime: Node.js
---
# agent-add-mcp output preview
## PART A: Task fit
- Use case: Use this skill when helping users add MCP servers to their Warp configuration. Warp supports MCP servers via native config files. Follow these steps when helping a user add an MCP server. requires Vendor-specific API key; runs on Node.js. Works with Claude Code, Cursor, Cline and 23 more..
- Inputs: target material, constraints, expected output, and acceptance criteria.
- Evidence boundary: follow “Step 1: Determine Scope / Step 2: Gather Server Details / Step 3: Check and Prepare the Config File” and do not present inference as author intent.
## PART B: Execution result
- **01** The card summarizes the use case; runtime output centers on “Use this skill when helping users add MCP servers to their Warp configuration. Warp supports MCP servers via native config files. Follow these steps when helping a user add an MCP server. requires Vendor-specific API key; runs on Node.js. Works with Claude Code, Cursor, Cline and 23 more.”.
- **02** When the source has headings, the agent prioritizes “Step 1: Determine Scope / Step 2: Gather Server Details / Step 3: Check and Prepare the Config File” so the result follows the author’s structure.
- **03** Typical output includes task judgment, concrete steps, required commands or file edits, validation, and follow-up options.
- **04** Risk context follows the fingerprint: read files, write/modify files, run shell commands, read environment variables; may access external network resources; requires Vendor-specific API keys.
## Running Rules
- read files, write/modify files, run shell commands, read environment variables; may access external network resources; requires Vendor-specific API keys.
- Validate with a small sample before expanding scope.
- Return the result, validation criteria, and next iteration options. The source does not require a stable slash command. After installation, invoke the skill by name and describe the task.
Name target files or source material, expected output, forbidden changes, and whether network or shell access is allowed. Permission fingerprint: read files, write/modify files, run shell commands, read environment variables.
Start with a small task and check whether the result follows “Step 1: Determine Scope / Step 2: Gather Server Details / Step 3: Check and Prepare the Config File”. Inspect diffs, logs, previews, or tests before expanding scope.
Confirm the final output includes a concrete result, evidence, and next action. If it stays generic, tighten inputs, boundaries, and acceptance criteria.
---
name: agent-add-mcp
description: Use this skill when helping users add MCP servers to their Warp configuration. Warp supports MCP…
category: ai
source: warpdotdev/warp
---
# agent-add-mcp
## When to use
- Use this skill when helping users add MCP servers to their Warp configuration. Warp supports MCP servers via native co…
- Use it when the task has clear inputs, repeatable steps, and validation criteria.
## What to provide
- Target material, scope, expected result, and forbidden changes.
- Whether network, commands, file writes, or external services are allowed.
## Execution rules
- Organize steps around “Step 1: Determine Scope / Step 2: Gather Server Details / Step 3: Check and Prepare the Config File” and keep inference separate from source facts.
- read files, write/modify files, run shell commands, read environment variables; may access external network resources; requires Vendor-specific API keys.
- Validate with a small sample before expanding the task.
## Output requirements
- Return the deliverable, key evidence, validation method, and next action.
- Mark missing information as unknown; do not invent commands, platforms, or dependencies. The author source anchors workflow facts; repository files anchor sources and commands; Fluxly only adds fit, limitations, and quality judgment.
skill "agent-add-mcp" {
input -> user goal + target files + boundaries + acceptance criteria
context -> Step 1: Determine Scope / Step 2: Gather Server Details / Step 3: Check and Prepare the Config File
rules -> SKILL.md triggers / order / output contract
runtime -> Node.js | read files, write/modify files, run shell commands, read environment variables | may access external network resources
guardrails -> requires Vendor-specific API keys + small-sample validation + diff/log review
output -> copyable result + checklist + next iteration
} Adding MCP Servers to Warp
Warp supports MCP servers via native config files. Follow these steps when helping a user add an MCP server.
Step 1: Determine Scope
If the user hasn't specified, ask whether they want to configure the server globally (for all projects) or project-scoped (for a specific repository only).
Config file paths:
- Global (user-scoped):
~/.warp/.mcp.json - Project-scoped:
{repo_root}/.warp/.mcp.json
Step 2: Gather Server Details
If the user hasn't provided the server's connection details, use WebSearch to find the correct configuration for the named server.
If it's unclear whether the server should be run as a local CLI process (stdio transport) or connected to via URL (HTTP/SSE streaming transport), ask the user which they prefer.
Step 3: Check and Prepare the Config File
Check whether the target config file exists.
If it does not exist, create it with
mkdir -pfor the directory and initialize it with an emptymcpServerswrapper key:{ "mcpServers": {} }If it exists, read it to determine which top-level wrapper key is already in use. Recognized wrapper keys (in order of preference):
mcpServers(preferred)mcp_serversserversmcp.servers(nested under amcpkey)- Flat map (each top-level key is a server name)
Preserve the existing wrapper key when writing. If the existing key is unrecognized or incompatible, switch to
mcpServers.Never remove existing server entries — only add or update the new server.
Step 4: Write the Server Configuration
Command-based server (stdio transport)
{
"mcpServers": {
"server-name": {
"command": "npx",
"args": ["-y", "@scope/package-name"],
"env": {
"API_KEY": "${API_KEY}"
}
}
}
}
By default, Warp spawns stdio servers from the directory the config was discovered in:
- Project-scoped configs (
{repo_root}/.warp/.mcp.json) run from the repo root. - Global configs (
~/.warp/.mcp.json,~/.claude.json, etc.) run from the home directory.
If the server's command or args are relative paths (e.g. ./tooling/mcp/server.js) or the server expects a specific cwd, set working_directory to override the default:
{
"mcpServers": {
"server-name": {
"command": "node",
"args": ["./tooling/mcp/server.js"],
"working_directory": "/absolute/path/to/repo"
}
}
}
URL-based server (HTTP/SSE streaming transport)
{
"mcpServers": {
"server-name": {
"url": "https://example.com/mcp",
"env": {
"API_KEY": "${API_KEY}"
}
}
}
}
For environment variables containing secrets, use ${VAR_NAME} syntax — Warp will substitute the value from the user's environment at runtime.
Notes
- Warp auto-detects changes to
.mcp.jsonfiles on save — no restart required. - Configured servers appear in Warp's Settings under MCP, labeled "Detected from Warp".
- Global config applies across all sessions; project config only applies when working inside that repository.
Decide Fit First
Design Intent
How To Use It
Boundaries And Review