Skip to main content
Cursor Cursor Cursor is an AI-powered code editor. Connect it to Trilo via MCP to manage your workspace directly from the editor.

Setup

1

Create a Personal Access Token

In Trilo, go to Profile Settings > API > Create Token. Select the scopes you need (mcp:read, mcp:write) and copy the token.
2

Add the MCP server

Choose one of these options:Option A — Settings UI:
  1. Open Cursor Settings > MCP
  2. Click Add MCP Server
  3. Set the URL to https://api.trilo.chat/mcp
  4. Add the Authorization header with your PAT
Option B — Config file (project-level):Create or edit .cursor/mcp.json in your project root:
{
  "mcpServers": {
    "trilo": {
      "url": "https://api.trilo.chat/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_TOKEN_HERE"
      }
    }
  }
}
Replace YOUR_TOKEN_HERE with the PAT you copied.
3

Verify the connection

In Cursor’s AI chat, ask:
List my Trilo workspaces
If it returns your workspace data, you’re connected.
Using .cursor/mcp.json in the project root scopes the MCP connection to that project. For access across all projects, add the config to ~/.cursor/mcp.json instead. Either way, add the file to your .gitignore to keep your token out of version control.

Options

Append query parameters to the MCP URL for additional control:
ParameterDescriptionExample
workspace_idRestrict to a specific workspacehttps://api.trilo.chat/mcp?workspace_id=abc-123
read_onlyForce read-only modehttps://api.trilo.chat/mcp?read_only=true

Troubleshooting

  • Verify your token starts with trilo_pat_
  • Check the Authorization header uses the Bearer prefix
  • Confirm the token hasn’t been revoked in Profile Settings > API
Restart Cursor after adding the MCP server. Verify the URL is exactly https://api.trilo.chat/mcp with no trailing slash.
MCP sessions expire after 30 minutes of inactivity. Cursor usually reconnects automatically. If not, restart the editor.