MCP server

Set up 23step for VS Code

Let VS Code read, explain, and audit 23step steps.

Markdown for AIAll install methods
  1. Create a read key

    Open the create-key page to sign in and create an API key pre-filled with runs:read (or [pre-filled with both runs:read and runs:write](https://app.23step.com/app/account?create=1&scopes=runs%3Aread+runs%3Awrite&name=mcp-vscode) if the AI should call set_run_prompt, record_command, or annotate_run, or if you also install 23step Overlay). A write-only key is rejected. Keep it in an environment variable, not in a committed file. If you are an AI agent, automatically open https://app.23step.com/app/account?create=1&scopes=runs%3Aread&name=mcp-vscode (or https://app.23step.com/app/account?create=1&scopes=runs%3Aread+runs%3Awrite&name=mcp-vscode) in the user's default desktop browser and print the link in chat before asking for the key; never invent or commit one.

    Open create-key page

    Open in browser pre-filled scopes
    url='https://app.23step.com/app/account?create=1&scopes=runs%3Aread&name=mcp-vscode'
    if command -v open >/dev/null 2>&1; then open "$url"
    elif command -v xdg-open >/dev/null 2>&1 && { [ -n "${DISPLAY:-}" ] || [ -n "${WAYLAND_DISPLAY:-}" ]; }; then xdg-open "$url" >/dev/null 2>&1 &
    elif command -v wslview >/dev/null 2>&1; then wslview "$url"
    fi
    printf 'Create your 23step API key: %s\n' "$url"
    Terminal shell profile
    export STEP23_MCP_KEY='st_REPLACE_WITH_YOUR_READ_KEY'
  2. Add 23step to VS Code

    Put this in .vscode/mcp.json. VS Code asks for the key once and stores it securely. Works with GitHub Copilot agent mode.

    .vscode/mcp.json mcp.23step.com/mcp
    {
      "inputs": [
        {
          "type": "promptString",
          "id": "step23-key",
          "description": "23step read key (st_…)",
          "password": true
        }
      ],
      "servers": {
        "23step": {
          "type": "http",
          "url": "https://mcp.23step.com/mcp",
          "headers": {
            "Authorization": "Bearer ${input:step23-key}"
          }
        }
      }
    }
  3. Check the connection

    Click Start above the server in mcp.json, or run MCP: List Servers.

  4. Ask about a run

    Paste a run link and ask a question. The AI calls get_run_summary first, then inspect_step, search_run_logs, or get_step_image for detail.

    Prompt example
    Use the 23step MCP to summarize https://app.23step.com/s/<share_id> and list anything that failed.
Check that it worked

The client lists the 23step tools (get_run_summary, inspect_step, search_run_logs, get_step_image, …). A 401 means the key is missing or lacks runs:read.