# Cursor

Endpoint:

```
https://mcp.stillshoko.com/mcp
```

Cursor reads MCP servers from `mcp.json`. Use `.cursor/mcp.json` in a project for that project, or `~/.cursor/mcp.json` in your home directory for every project.

## OAuth

```json
{
  "mcpServers": {
    "shoko": {
      "url": "https://mcp.stillshoko.com/mcp"
    }
  }
}
```

Save the file, open **Customize** in the sidebar, find Shoko, and sign in. Cursor uses the authorization code flow with PKCE and discovers Shoko's sign-in server from its published metadata.

## API key

Set the key in your shell environment first, and start Cursor from that shell:

```
export SHOKO_API_KEY=shk_...
```

```json
{
  "mcpServers": {
    "shoko": {
      "url": "https://mcp.stillshoko.com/mcp",
      "headers": {
        "Authorization": "Bearer ${env:SHOKO_API_KEY}"
      }
    }
  }
}
```

Cursor expands `${env:NAME}` in `url` and `headers`.

## Check

Shoko should show as connected under **Customize**. Ask the agent to list your Shoko libraries.
