# Security review MCP server and HTTP API

## How do I add a security review MCP server to my coding agent?

pokayoke runs a security review MCP server at https://pokayoke.sh/mcp. Create an API key on the dashboard, add the server to Cursor, VS Code or any MCP client with that key as a bearer token, and your coding agent can submit a repository, a pasted file or a diff for review and read each finding back as validated JSON.

## Quick start

Every call sends the key as `Authorization: Bearer <key>`. A key is shown once, when you create it on the dashboard's Agents and API page.

For Cursor and `.mcp.json`:

```json
{
  "mcpServers": {
    "pokayoke": {
      "type": "http",
      "url": "https://pokayoke.sh/mcp",
      "headers": { "Authorization": "Bearer pk_your_api_key" }
    }
  }
}
```

For Claude Code:

```sh
claude mcp add --transport http pokayoke https://pokayoke.sh/mcp \
  --header "Authorization: Bearer pk_your_api_key"
```

For VS Code, the same server goes under `servers` in `.vscode/mcp.json`.

## What an agent can do

- Submit a repository URL or pasted source for a security review, or review a unified diff without cloning anything.
- Read a finished review as one validated envelope, list its findings, and fetch a plain-text fix prompt to hand to a coding agent.
- List the account's repositories and turn monitoring on or off, read the fixes pokayoke delivered, list or revoke API keys, and set notifications.

Every tool result and every API answer is a validated JSON object, never prose: an agent parses it or fails loudly. The MCP endpoint takes one JSON-RPC object per POST, with no session and no event stream.

## HTTP API

The same operations are an HTTP API under `/api/v1`, with the same bearer key. The full reference is [openapi.json](/openapi.json), OpenAPI 3.1 with the envelope schemas.

## Agent reference

The [agent reference](/docs/agents.md) is the plain-text guide for a model to read first: what the service is, every tool and endpoint, the error codes and the plan limits.

## Plans

Each review an agent submits spends one review of the account's monthly quota, the same quota the website spends. The limits per plan are on the [pricing page](/pricing). To see what the review proves before it reports, read [how pokayoke proves exploits](/proven-exploits).
