# MCP

Agent Push Kit offers the same semantic tools through a hosted stateless Streamable HTTP server and an npm stdio server. Both require a named `apt_…` agent token.

## Hosted Streamable HTTP

- URL: `https://api.chatdna.co/agent-push-kit/v1/mcp`
- Header: `Authorization: Bearer apt_YOUR_TOKEN`

```json
{
  "mcpServers": {
    "agent-push-kit": {
      "url": "https://api.chatdna.co/agent-push-kit/v1/mcp",
      "headers": {"Authorization": "Bearer apt_YOUR_TOKEN"}
    }
  }
}
```

## npm stdio

```bash
AGENT_PUSH_KIT_TOKEN=apt_YOUR_TOKEN npx -y agent-push-kit-mcp
```

Set `AGENT_PUSH_KIT_API_BASE` only when targeting a development or self-hosted CAM API.

## Tools

The server exposes current-account retrieval/deletion; customer-account listing/creation and member listing/addition; agent-token listing/creation/revocation; ingestion-key rotation; event sending/listing/search/detail; service and type discovery; service/type preference management; and device registration/removal.

Destructive and key-rotation tools are marked in MCP metadata. Registration, login, provider login, and password reset remain public REST/SDK operations because an authenticated MCP connection cannot exist until credentials exist.

Registry metadata: [/mcp/server.json](/mcp/server.json)
