Manage MCP (Model Context Protocol) servers for openclacky: add, list, probe, remove, reconfigure. Edits ~/.clacky/mcp.json so the user never writes JSON by hand. Trigger on: add mcp, install mcp, setup mcp, configure mcp, mcp list, mcp remove, mcp probe, mcp reconfigure.
76
94%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
High
Do not use without reviewing
Manage MCP servers for openclacky. The user's MCP configuration lives at
~/.clacky/mcp.json (the same format Claude Desktop and Cursor use). You never
ask the user to edit it by hand — you do it for them through the local clacky
HTTP API.
| User says | Subcommand |
|---|---|
add mcp, install mcp, connect <something>, "I want clacky to read my files / access github / query my db / search the web" | add |
mcp list, mcp status, "what mcps do I have" | list |
mcp probe <name>, "what tools does have" | probe |
mcp remove <name>, mcp delete <name> | remove |
mcp reconfigure <name>, mcp fix <name> | reconfigure |
If the intent is unclear, default to add — it's the most common ask.
All API calls go to the local clacky server. The host and port are exposed via environment variables:
HOST="${CLACKY_SERVER_HOST:-127.0.0.1}"
PORT="${CLACKY_SERVER_PORT:-7070}"
BASE="http://${HOST}:${PORT}"All write operations require requests to come from 127.0.0.1 or ::1. They
will, because we're running locally.
| Action | Call |
|---|---|
| List configured servers | curl -s ${BASE}/api/mcp |
| Add a server | curl -s -X POST ${BASE}/api/mcp -H 'Content-Type: application/json' -d '{...}' |
| Update a server | curl -s -X PUT ${BASE}/api/mcp/<name> -H 'Content-Type: application/json' -d '{...}' |
| Remove a server | curl -s -X DELETE ${BASE}/api/mcp/<name> |
| Probe tools | curl -s -X POST ${BASE}/api/mcp/<name>/probe |
Request body for create/update — stdio (local process, default):
{
"name": "filesystem",
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/Users/me/Documents"],
"env": { "API_KEY": "xxx" },
"description": "Read/write files in ~/Documents"
}Request body for create/update — http (remote server, streamable-http):
{
"name": "linear",
"type": "http",
"url": "https://mcp.linear.app/sse",
"headers": { "Authorization": "Bearer lin_api_xxx" },
"description": "Linear issues and projects"
}If type is omitted but url is present, the server treats it as http.
When the user describes what they want, match it to one of these and propose it.
Each entry: package, what it does, required params, recommended description.
filesystem — read/write local filesnpx["-y", "@modelcontextprotocol/server-filesystem", "<ABSOLUTE_PATH>"]~/Documents)github — GitHub repos, issues, PRsnpx["-y", "@modelcontextprotocol/server-github"]{ "GITHUB_PERSONAL_ACCESS_TOKEN": "<TOKEN>" }repo scope)fetch — fetch HTTP URLs as markdownuvx["mcp-server-fetch"]uv installed (brew install uv)memory — persistent knowledge graphnpx["-y", "@modelcontextprotocol/server-memory"]postgres — query a Postgres databasenpx["-y", "@modelcontextprotocol/server-postgres", "<DATABASE_URL>"]postgresql://user:pass@host:5432/dbnameslack — Slack messagesnpx["-y", "@modelcontextprotocol/server-slack"]{ "SLACK_BOT_TOKEN": "xoxb-...", "SLACK_TEAM_ID": "T..." }brave-search — web search via Brave APInpx["-y", "@modelcontextprotocol/server-brave-search"]{ "BRAVE_API_KEY": "<KEY>" }puppeteer — browser automationnpx["-y", "@modelcontextprotocol/server-puppeteer"]If the user names a package or path you don't recognize, take the spec from them
verbatim and pass it through. Always confirm command, args, and env back
in plain language before saving.
Some MCP servers are hosted services and don't ship as a CLI — you connect over
HTTPS instead. Trigger when the user gives you a URL ending in /mcp,
/sse, or hosted on *.mcp.* / mcp.*.app, or says "the server is at
https://...".
httpurl (the streamable-http endpoint)headers — typically { "Authorization": "Bearer <token>" }Examples of remote MCP servers in the wild:
https://mcp.linear.app/sse (Bearer API key)https://<workers-subdomain>.workers.dev/mcp (Bearer token)https://api.githubcopilot.com/mcp/ (OAuth, advanced)When the user pastes a URL, ask:
name and description)Save with type: "http". The local clacky never spawns a process for these —
it just POSTs JSON-RPC over HTTPS.
⚠️ Wrapping a regular CLI tool: if the user gives you a CLI command that is not a stdio MCP server (e.g.
mcp-cli,some-api-cli login), do NOT save it as a stdio MCP entry — it won't speak JSON-RPC over stdin. Tell them: "This looks like a regular CLI, not an MCP server. Does the service offer an HTTPS endpoint instead?"
add — the primary flowGoal: the user describes what they want, you produce a working MCP entry + confirm it works. Keep questions minimal.
Before asking for parameters, check the runtime is installed:
# For npx-based servers
which npx >/dev/null 2>&1 || echo "MISSING_NPX"
# For uvx-based servers
which uvx >/dev/null 2>&1 || echo "MISSING_UVX"If missing, tell the user how to install (brew install node for npx,
brew install uv for uvx) and stop. Do not proceed.
Ask only for the business-meaningful params from the catalog entry:
filesystem: which directory? Default offer: ~/Documents. Resolve ~
to an absolute path before saving.github/brave-search/slack: tell them where to get the token, then
ask them to paste it.postgres: ask for the connection URL.Never invent values. If you don't have a sensible default, ask.
Show the user the spec you're about to save, in plain language:
I'll add a server called filesystem that runs
npx -y @modelcontextprotocol/server-filesystem /Users/me/Documents. It'll let me read and write files in your Documents folder. OK?
For secrets (tokens, passwords), echo only the last 4 characters: ***...abcd.
For stdio:
curl -s -X POST ${BASE}/api/mcp \
-H 'Content-Type: application/json' \
-d '{
"name": "filesystem",
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/Users/me/Documents"],
"description": "Read/write files in ~/Documents"
}'For http:
curl -s -X POST ${BASE}/api/mcp \
-H 'Content-Type: application/json' \
-d '{
"name": "linear",
"type": "http",
"url": "https://mcp.linear.app/sse",
"headers": { "Authorization": "Bearer lin_api_xxx" },
"description": "Linear issues and projects"
}'If the response has "ok": false, show the error and ask the user how to
proceed (retry, edit, abort).
Immediately verify the server starts and exposes tools:
curl -s -X POST ${BASE}/api/mcp/filesystem/probeok: true: extract tools[], summarize for the user. Example:
Done. filesystem is working — Clacky now has 11 new tools (read_file, write_file, list_directory, ...). Try asking me to list files in your Documents folder.
ok: false: show the error verbatim and offer common fixes:
reconfigureEnd with a one-line nudge: how the user can use the new MCP next. Examples:
listcurl -s ${BASE}/api/mcpRender as a short table. If configured: false, say so and offer to run add.
| Name | Command | Args summary | Has env |
|--------------|---------|------------------------|---------|
| filesystem | npx | @modelcontextprotocol… | no |
| github | npx | @modelcontextprotocol… | yes |Don't show full args if they contain absolute paths — collapse them with ….
probe <name>curl -s -X POST ${BASE}/api/mcp/<name>/probeIf ok: true, list every tool with a one-line description. If ok: false, run
the same error-fixing flow as in add step 6.
remove <name>curl -s -X DELETE ${BASE}/api/mcp/<name>reconfigure <name>/api/mcp and show it back.PUT /api/mcp/<name>.add step 6.~/.clacky/mcp.json. Always go through the API.8a66b10
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.