Connect Claude Code, Cursor and VS Code.
Create a key on the AI connections page and give it to Claude Code, Cursor or VS Code, or sign Claude Code in through the browser.
On this page
This page is for the platform owner or a business owner who works in Claude Code, Cursor or VS Code. Cursor and VS Code connect with a key. Claude Code connects with a key or with browser sign-in. You create the key on the AI connections page, and the tool sends it in an Authorization: Bearer header on every request.
Create the key
- Open your account menu, then choose AI connections.
- Choose Claude Code, Cursor or Other in the client picker.
- Under Access, choose Read everything or Read and make changes you approve.
- Turn on Include money records only if the client needs stored-value passes. With change access, it also lets a business key prepare money moves, and each one waits for your approval.
- Under Key lasts, choose 7, 30 or 90 days. 7 days is the default.
- Click Create key for Claude Code. The button reads Create key for Cursor or Create key for the other clients.
The page shows the command or configuration once, in a dialog titled Copy your key now. Copy it, then click Close. Reward Loyalty stores only a hash of the key. If you lose it, end the connection and create a new key.
A key allows 120 requests a minute, and it also appears under Integration API keys. The platform owner can hold 10 keys and a business as many as its plan allows, and the page says when you reach the limit.
Claude Code
Run the command the page shows in your terminal. It has this shape:
claude mcp add --transport http reward-loyalty https://your-domain.com/mcp \
--header "Authorization: Bearer YOUR_KEY"
Start Claude Code and run /mcp. The reward-loyalty server appears in the list. Ask a question that needs data, such as "List my clubs".
To sign in through the browser instead of using a key, add the address without a header:
claude mcp add --transport http reward-loyalty https://your-domain.com/mcp
Run /mcp in Claude Code and sign in when it asks. The consent page offers the choices in Choose how much access.
Cursor
Choose Cursor, create the key, and paste the configuration the page shows into your mcp.json file:
{
"mcpServers": {
"reward-loyalty": {
"url": "https://your-domain.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_KEY"
}
}
}
}
Save the file. Cursor connects with the key.
VS Code
Choose Other and create the key. Add the server to your MCP configuration with the address and the header. In VS Code the file is .vscode/mcp.json:
{
"servers": {
"reward-loyalty": {
"type": "http",
"url": "https://your-domain.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_KEY"
}
}
}
}
The AI connections page shows the address and the header but doesn't write this file for you. VS Code's setup screens and file locations can differ by version. If VS Code doesn't list the server, check VS Code's MCP documentation.
Keep the key safe
- Treat the key like a password. Anyone who holds it acts as you, with the access you chose.
- Don't commit it to a repository. Keep it in an environment variable or your client's secret store.
- Choose the shortest end date that fits the job. When a key ends, create a new one.
- End the connection on the AI connections page the moment a key leaks.
If it doesn't connect
See Troubleshooting for 401 and 403 answers and missing tools. If it still doesn't connect, contact support with the message you saw.
Related topics
- Connect other clients: MCP Inspector and plain HTTP.
- Access and security: presets, expiry and revocation.
- Managing keys: keys for scripts and integrations.