norboten · cheat sheet

The Model Context Protocol — servers, clients, and the boundaries between them — cheat sheet

mcp
claude mcp add --transport http NAME URL        # a remote server; --scope local|project|user
claude mcp list / get NAME / remove NAME -s S   # in effect, where from, and removing one scope's
printf '%s\n' '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{}}' \
  '{"jsonrpc":"2.0","id":2,"method":"tools/list"}' | <stdio server command> 2>/dev/null
curl -i URL -H 'Accept: application/json, text/event-stream' -H 'Content-Type: application/json' -d …
GET /.well-known/oauth-protected-resource/<path>    # which authorization server
GET /.well-known/oauth-authorization-server         # endpoints, PKCE, CIMD, iss
--permission-mode dontAsk --allowedTools "mcp__server__tool,…"   # a headless job's tools, named