> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superlog.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP server

> Let Claude, Cursor, Codex, and other MCP clients manage your Superlog workspace.

The Superlog MCP server gives an AI assistant the [management API](https://docs.superlog.sh/api-reference/introduction.md) as tools. Ask it to create an automation, change tag mode, start a run, or check why a run failed.

## Server details

| | |
| - | - |
| URL | `https://superlog.sh/api/mcp` |
| Transport | Streamable HTTP |
| Authentication | OAuth sign-in, or `Authorization: Bearer <API key>` |

Clients that support MCP OAuth sign you in through Superlog. You choose a workspace and approve access, and the assistant acts as you in that workspace.

For clients without OAuth, create an API key under **Settings → API keys** and send it as a bearer token. See [API keys](https://docs.superlog.sh/settings/api-keys.md). The assistant acts as the member who created the key.

## Connect a client

> [tab] Claude Code
>
> Install the Superlog plugin, then run `/mcp` and sign in:
>
> ```bash theme={null}
> claude plugin marketplace add superloglabs/claude-plugin
> claude plugin install superlog@superlog
> ```
>
> See [Claude](https://docs.superlog.sh/assistants/claude.md) for the Claude apps and other options.

> [tab] Cursor
>
> Add the server to `~/.cursor/mcp.json`, or to `.cursor/mcp.json` in a project:
>
> ```json theme={null}
> {
>   "mcpServers": {
>     "superlog": {
>       "url": "https://superlog.sh/api/mcp",
>       "headers": { "Authorization": "Bearer slk_..." }
>     }
>   }
> }
> ```

> [tab] Codex
>
> Add the server to `~/.codex/config.toml` and set `SUPERLOG_API_KEY` in your environment:
>
> ```toml theme={null}
> [mcp_servers.superlog]
> url = "https://superlog.sh/api/mcp"
> bearer_token_env_var = "SUPERLOG_API_KEY"
> ```

> [tab] VS Code
>
> Add the server to `.vscode/mcp.json`. VS Code asks for the key the first time it starts the server:
>
> ```json theme={null}
> {
>   "inputs": [
>     { "type": "promptString", "id": "superlog-key", "description": "Superlog API key", "password": true }
>   ],
>   "servers": {
>     "superlog": {
>       "type": "http",
>       "url": "https://superlog.sh/api/mcp",
>       "headers": { "Authorization": "Bearer ${input:superlog-key}" }
>     }
>   }
> }
> ```

## Tools

| Area | Tools |
| - | - |
| Workspace | `get_workspace`, `list_members` |
| Integrations | `list_available_integrations`, `start_integration_connection`, `list_integrations`, `refresh_integrations`, `list_sentry_environments` |
| Automations | `list_automations`, `get_automation`, `create_automation`, `update_automation` |
| Runs | `list_automation_runs`, `start_automation_run`, `get_automation_run`, `cancel_automation_run`, `send_automation_run_message` |
| Tag mode | `get_tag_mode`, `update_tag_mode` |
| Models | `list_included_models`, `list_model_credentials`, `list_model_credential_models`, `test_model_credential`, `delete_model_credential` |
| Secrets | `list_secrets` |
| API keys | `list_api_keys`, `revoke_api_key` |
| Telemetry | `list_services`, `query_logs`, `query_traces`, `query_metrics`, `get_trace`, `list_ingest_keys`, `create_ingest_key` |
| Errors | `list_error_issues`, `get_error_issue`, `update_error_issue`, `get_error_notifications`, `update_error_notifications` |
| Dashboards | `list_dashboards`, `get_dashboard`, `create_dashboard`, `update_dashboard`, `delete_dashboard`, `add_dashboard_widget`, `update_dashboard_widget`, `delete_dashboard_widget`, `update_dashboard_layout` |
| Alerts | `list_alerts`, `get_alert`, `preview_alert`, `create_alert`, `update_alert`, `delete_alert`, `list_slack_channels` |
| Synthetics | `list_synthetic_checks`, `get_synthetic_check`, `create_synthetic_check`, `update_synthetic_check`, `delete_synthetic_check` |
| Terraform | `export_terraform` |

Each tool takes the same fields as its API endpoint. Read-only tools are marked as read-only. `update_automation`, `cancel_automation_run`, `update_tag_mode`, `revoke_api_key`, and `delete_model_credential` are marked as destructive, so clients can ask before running them.

`start_integration_connection` returns a consent link for the person to open in their browser. Integrations that need a credential return a secure setup link instead, so the credential is entered in Superlog and not in the conversation.

The telemetry, error, dashboard, alert, synthetic, and Terraform tools need telemetry, which is in early access. `create_ingest_key` returns the new key once, with the OpenTelemetry settings for it. `get_error_notifications` and `update_error_notifications` are for workspace owners and admins.

Adding a workspace secret or a model API key is not available as a tool, so those values never pass through a model. Use the app or the [API](https://docs.superlog.sh/api-reference/introduction.md) for them.

## Example requests

* "Create an automation that reviews new Sentry regressions in the `api` project and opens a pull request in `acme/api`."
* "Turn off the weekly dependency review."
* "Why did the last run of the triage automation fail?"
* "Let tag mode read the `acme/web` repository."


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.