Documentation Index
Fetch the complete documentation index at: https://developer.affinity.co/llms.txt
Use this file to discover all available pages before exploring further.
Viewing server logs
If the server isn’t working as expected, check the logs first.- Claude Code (macOS/Linux)
- Claude Code (Windows)
- Claude Desktop (macOS)
- Claude Desktop (Windows)
- ChatGPT
Logs are written per session to
~/.claude/debug/. The latest symlink always points to the most recent session:Common issues
"Authentication failed" or 401 errors
"Authentication failed" or 401 errors
Cause: The
AFFINITY_API_KEY is missing, invalid, or has extra spaces or quotes around it.Fix: Double-check the environment variable value in your client config. The key should be a plain string with no surrounding quotes or whitespace.API key shown as 'invalid' or returning 401 errors
API key shown as 'invalid' or returning 401 errors
- Confirm you copied the full key, including any trailing characters.
- Confirm the
Authorizationheader uses the exact formatBearer <your-key>(one space, no quotes around the value). - In Affinity → Settings → Manage Apps, verify the key hasn’t been rotated or revoked.
"Connection refused" or timeout errors
"Connection refused" or timeout errors
Cause: The server cannot reach
api.affinity.co.Fix:- Check your internet connection.
- If you’re on a corporate VPN, ensure it allows traffic to Affinity’s API.
"Tool not found" errors
"Tool not found" errors
Cause: The MCP server may have crashed or failed to start.Fix: Check the logs for startup errors.
My AI client doesn't see the Affinity tool
My AI client doesn't see the Affinity tool
- Refresh / restart the AI client (some clients only refresh the tool list on startup).
- In the client, verify the MCP server status is “connected” or “healthy”.
- For Copilot CLI, run
/mcp show. For Claude Code, run/mcp.
OAuth flow returned 'unauthorized' or 'access denied'
OAuth flow returned 'unauthorized' or 'access denied'
OAuth works but tool calls return permission errors
OAuth works but tool calls return permission errors
MCP tool calls run with your Affinity user’s permissions. If you can’t read a list or create a note in Affinity directly, MCP can’t either. Ask your admin to grant the needed list / role access.
`get_meetings` returns an access error
`get_meetings` returns an access error
Cause: Your organization hasn’t been onboarded to Affinity’s unified events feature, which is required for the meetings API.Fix: Contact your Affinity CSM to request access.
Debugging with MCP Inspector
You can use the MCP Inspector to test tools and debug the server interactively in your browser. The inspector lets you list available tools, call them with custom arguments, and inspect responses. Useful for verifying the server is working before connecting a full AI client.- Local server
- Hosted server
AFFINITY_API_KEY environment variable before running, or pass it inline: