Step 1: Create a Personal Access Token
Open Profile Settings
In Trilo, click your avatar in the bottom-left corner and select Profile Settings.
Create a new token
Click Create Token. Give it a descriptive name (e.g., “Claude Code - work laptop”) and select the scopes you need:
- mcp:read — read workspace data
- mcp:write — read and write workspace data
- mcp:admin — full administrative access
Step 2: Configure Your AI Client
Claude Code (OAuth — recommended)
Claude Code (OAuth — recommended)
Run this command in your terminal:Claude Code will open your browser to authorize access to your Trilo account. Click Authorize and the connection is set up automatically.
Claude Code (PAT — alternative)
Claude Code (PAT — alternative)
If you prefer using a Personal Access Token instead of OAuth:Replace
YOUR_TOKEN_HERE with the PAT you copied.Alternatively, add it to your MCP config file (~/.claude/mcp.json):Claude Desktop (OAuth — recommended)
Claude Desktop (OAuth — recommended)
Claude Desktop supports OAuth 2.1 for a seamless setup. No token needed.Add Trilo to your Claude Desktop config file:macOS: After saving, restart Claude Desktop. It will open your browser to authorize access to your Trilo account — click Authorize and you’re done.
~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.jsonClaude Desktop (PAT — alternative)
Claude Desktop (PAT — alternative)
If you prefer using a Personal Access Token instead of OAuth:Replace
YOUR_TOKEN_HERE with the PAT you copied. After saving, restart Claude Desktop for the changes to take effect.Cursor
Cursor
Option A — Settings UI:
- Open Cursor Settings > MCP
- Click Add MCP Server
- Set the URL to
https://api.trilo.chat/mcp - Add the Authorization header with your PAT
.cursor/mcp.json in your project root:Windsurf
Windsurf
Option A — Settings UI:
- Open Windsurf Settings > MCP
- Add a new server with the URL
https://api.trilo.chat/mcp - Add the Authorization header with your PAT
~/.windsurf/mcp.json:Google Antigravity
Google Antigravity
- Open an Agent session and click the ”…” menu at the top of the side panel
- Select MCP Servers to open the MCP Store
- Click Manage MCP Servers at the top, then View raw config
- Add Trilo to your
mcp_config.json:
- Save the file and click Refresh in the Manage MCP Servers view
Other MCP Clients
Other MCP Clients
Any MCP-compatible client can connect using the HTTP Streamable transport:
- Endpoint:
https://api.trilo.chat/mcp - Transport: HTTP (Streamable HTTP)
- Authentication:
Authorization: Bearer trilo_pat_...
Step 3: Verify the Connection
Ask your AI tool to list your workspaces:Optional: Restrict to a Workspace
To limit the MCP connection to a specific workspace, append theworkspace_id query parameter:
Optional: Read-Only Mode
To force read-only access regardless of token scopes, append:Managing Tokens
- View tokens: Profile Settings > API shows all your active tokens with last-used dates
- Revoke a token: Click the revoke button next to any token to immediately disable it
- Multiple tokens: Create separate tokens per client or machine for easy revocation
Troubleshooting
401 Unauthorized
401 Unauthorized
Token doesn't have MCP access
Token doesn't have MCP access
Your token was created without MCP scopes. Create a new token and select at least
mcp:read.Session expired (error -32002)
Session expired (error -32002)
MCP sessions expire after 30 minutes of inactivity. Most clients reconnect automatically. If not, restart the MCP connection in your client.
Rate limited (429)
Rate limited (429)
You’re making too many requests. Wait for the duration specified in the
Retry-After header. Rate limits are per-user, not per-token.Read-only mode — can't create or update
Read-only mode — can't create or update
Either your token only has
mcp:read scope, or the read_only=true query parameter is set. Create a new token with mcp:write scope or remove the query parameter.Tools not showing up in my client
Tools not showing up in my client
Some clients require a restart after adding MCP servers. Try restarting your AI tool. Also verify the URL is exactly
https://api.trilo.chat/mcp with no trailing slash.