Connect an assistant
Setup for Claude Code, Cursor, and anything else that speaks MCP.
First, a token. On the API page, create a client with the scopes you want the assistant to have, then exchange its credentials:
curl -s -u "$PXB_CLIENT_ID:$PXB_CLIENT_SECRET" \
-d grant_type=client_credentials \
https://www.pxb.app/api/public/v1/oauth/token
That returns an access_token valid for an hour. If you have the CLI,
pxb auth handles the exchange for you.
Claude Code
claude mcp add --transport http pixelbase https://www.pxb.app/api/mcp \
--header "Authorization: Bearer $PXB_TOKEN"
Cursor, VS Code, Claude Desktop
Add the server to the client's MCP configuration:
{
"mcpServers": {
"pixelbase": {
"type": "http",
"url": "https://www.pxb.app/api/mcp",
"headers": { "Authorization": "Bearer $PXB_TOKEN" }
}
}
}
Claude.ai and ChatGPT connectors
Not yet. Both directories only accept servers that sign users in with OAuth, which is the next thing we're building here. Until then the server works in any client that lets you set a header — which is every developer-facing one.
Check it worked
Ask the assistant to call whoami. It answers with the company it is reading,
the employee it acts as, and the tools the token unlocked. If that list is
shorter than you expected, the token is missing a scope.