# Other MCP clients and headless agents

Shoko is a standard remote MCP server. Any client that supports Streamable HTTP can connect.

| Setting              | Value                                      |
| -------------------- | ------------------------------------------ |
| Endpoint             | `https://mcp.stillshoko.com/mcp`                                  |
| Transport            | Streamable HTTP, JSON responses, stateless |
| Interactive auth     | OAuth 2.1 with PKCE                        |
| Headless auth        | API key in `Authorization: Bearer`         |
| Authorization server | `https://stillshoko.com`                                  |

## Interactive clients

Give the client the endpoint. It receives a 401 that points at Shoko's protected resource metadata, discovers the sign-in server, registers itself, and opens a browser for you to sign in and allow access. The client then acts as you: it can read the libraries you can read, and nothing else.

## Headless agents: API keys

An unattended agent cannot open a browser, so it uses an API key.

1. In the dashboard, open **Agents** and create an agent identity.
2. Create a key for it. The key starts with `shk_` and is shown once.
3. Put the agent in a group that has been granted the libraries it should read. See [Teams and access](/docs/teams-and-access).
4. Store the key where the agent reads secrets, for example an environment variable.

Send it on every request:

```
POST https://mcp.stillshoko.com/mcp
Authorization: Bearer shk_...
Content-Type: application/json
Accept: application/json, text/event-stream
```

An API key acts as its agent identity. Revoke the key in the dashboard to cut it off.

Never paste a key into a chat. Pass it through the environment or your client's secret store.

## Generic configuration

Most clients that use a JSON file accept a shape like this. Key names vary by client, so check yours:

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

Omit `headers` to use OAuth where the client supports it.

## Check

Call the `list_libraries` tool. An empty list means the principal has not been granted a library. A 401 means the token or key is missing, expired or revoked.
