Connect a client

Replace <your-host> with your deployment (for local dev use http://localhost:3000).

Cursor

.cursor/mcp.json or Settings → MCP:

{
  "mcpServers": {
    "tlc": {
      "url": "https://<your-host>/api/mcp",
      "headers": {
        "Authorization": "Bearer tlc_mcp_<paste-token>"
      }
    }
  }
}

Claude Desktop

Use HTTP transport with the same URL and bearer header. Scopes on the token control tools/list.

Claude Code

Add the server to your MCP config for the project:

{
  "mcpServers": {
    "tlc": {
      "type": "http",
      "url": "https://<your-host>/api/mcp",
      "headers": {
        "Authorization": "Bearer tlc_mcp_<paste-token>"
      }
    }
  }
}

Verify

curl -sS -X POST https://<your-host>/api/mcp \
  -H "Authorization: Bearer tlc_mcp_<placeholder>" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

Local dev: run migrations, seed, sign in as the seeded owner, mint a token in the UI, then call the endpoint.