Connection and OAuth 2.1
Transport is stateless streamable HTTP: one JSON-RPC POST /mcp per call, no long-lived session. Every call is checked against your organization and visibility rules and written to an audit log.
Authenticate with MCP OAuth 2.1 (default for modern MCP clients) or a static API key (Authorization: Bearer st_...). Unauthenticated requests to /mcp or /mcp/plugins return 401 with an RFC 9728 WWW-Authenticate challenge pointing to https://mcp.23step.com/.well-known/oauth-protected-resource, which advertises authorization_servers: ["https://app.23step.com"] and supported scopes (runs:read, runs:write, plugins:read, plugins:comment, plugins:tasks, plugins:write). Insufficient scopes return 403 with error="insufficient_scope" for step-up authorization.
The authorization server on https://app.23step.com publishes GET /.well-known/oauth-authorization-server and GET /.well-known/openid-configuration, supports PKCE (S256), Client ID Metadata Documents (CIMD), constrained RFC 7591 Dynamic Client Registration (POST /oauth/register), RFC 8707 resource indicators, short-lived sto_ access tokens (1 hour) with rotating str_ refresh tokens (30 days) at POST /oauth/token, and RFC 7009 revocation at POST /oauth/revoke.
For static API keys, runs:read unlocks the read tools, runs:write unlocks the write tools (a write-only key cannot connect to /mcp), and plugins:* scopes unlock Plugin MCP.
curl -sS https://mcp.23step.com/mcp \
-H "Authorization: Bearer $STEP23_MCP_KEY" \
-H "Content-Type: application/json" -H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call",
"params":{"name":"get_run_summary","arguments":{"run_id":"https://app.23step.com/s/<share_id>"}}}'