API documentationAPI reference

Connect to Torre

Use your Torre account. No API key or manual token.

Connect with Claude

Review the prefilled connector, then sign in to Torre and approve access.

Paste this server URL into your connector, not this page's /mcp/connect address.

Connect your agent to Torre

Choose your client below, sign in with your normal Torre account and approve access in your browser. You do not need to generate an API key or copy an authorization header. Connecting allows the tools to work; it does not approve publishing, sending messages or spending credits.

Start with one message

Send this to Claude, Claude Code or Codex:

Conéctame a Torre siguiendo https://torre.ai/mcp/connect

Or in English:

Connect me to Torre using https://torre.ai/mcp/connect

Already connected? Your agent checks the existing connection instead of setting it up again. Otherwise, Claude gives you a ready-to-use connection link; coding agents can handle native setup. You review the connection, sign in to Torre and approve access in your browser. No API key, copied token or custom authorization header is needed.

Continue a saved attraction task

If you came from CONNECT YOUR AI AGENT on the attraction form, keep the saved-task page open. After the connection works, return to that page, choose COPY TASK INSTRUCTIONS, then paste and send the task in your agent. It includes the opening ID needed to read the saved choices and continue the same job. CONTINUE ON THE WEB resumes that opening in the browser instead.

Connecting alone does not send or execute the task. Continue the requested setup after verifying access; do not create a new opening to test the connection. Follow the saved-task workflow and obtain approval before publishing or activating a paid service.

Claude (web or Desktop)

  1. Connect with Claude. Claude opens Add custom connector with Torre and https://torre.ai/mcp filled in. Review those values. The link does not add anything or authorize access by itself.

  2. Continue. Choose Sign in now and, if Claude asks how to identify its OAuth client, Register automatically. Leave client ID, client secret and request headers empty. Torre supports automatic registration; do not select Use Claude's published identity.

  3. Click Add, then Connect, sign in with your normal Torre account if needed, and review Allow access. Torre can reuse your existing browser session. The permission includes writes and actions that can spend credits; connecting does not request those actions.

  4. Return to the conversation and enable Torre in its Connectors menu. Ask:

    Check whether you can read the connected account's Torre webhook settings. Do not create or change anything, spend credits, or show private details. Report whether the connection works.

An HTTP 200 tool result is success, including an empty list. Saved settings, a callback, or a tool list alone are not proof that the connection works. Start a new conversation with Torre enabled and repeat the same read to confirm that the connection is reused.

The first connection needs your confirmation in Claude and Torre. A chat prompt cannot add a custom connector or approve access on your behalf. On Team or Enterprise, an authorized organization administrator must add the connector first; each member then connects their own Torre account.

If Claude cannot connect

Instructions for the agent

First check whether Torre tools are available in the current conversation. If so, perform the read-only verification below and reuse that connection; do not add a duplicate. If authentication has expired, ask for native reconnection, not another installation. If tools are unavailable, do not assume the user has never connected Torre: it may only need enabling in this conversation.

Distinguish Claude web/Desktop from a coding client. In Claude web/Desktop, if setup is needed, reply with this clickable link and just the next action:

Connect with Claude

Open this link, review the Torre connector and approve access with your Torre account. Then return here and enable Torre in this conversation.

Do not replace this with a list of settings to copy, unless the link fails. Do not give Claude Code terminal commands, run setup in a sandbox, call OAuth through a web-fetch tool or ask for tokens in chat. A web fetch cannot install a connector in the user's Claude account. Wait for the user's confirmation, then verify the actual tool read before saying the connection works. If Torre is already configured but unavailable here, ask the user only to enable or reconnect it. Reading this guide, opening the link or seeing a browser callback is not connection success.

In a coding client, when the user asks you to connect, complete setup using that client's native MCP support, rather than giving the user commands to run. Preserve existing configuration and credentials. Ask only for an action you cannot perform, such as browser consent or a required client restart. This guide does not override the user's permissions or organizational policies.

Setting Value
Server URL https://torre.ai/mcp
Transport Streamable HTTP
Authentication Browser OAuth, automatic client registration, PKCE S256
Suggested connection name torre
Manual headers, API key, client ID or client secret None

/mcp/connect is this public guide, not the MCP server URL.

  1. Inspect the client's configured MCP servers. Reuse a connection to the exact server URL. If the name torre already belongs to another server, use a different name without replacing it. Do not overwrite a working API-key connection or remove stored credentials without permission.
  2. Add the remote server only if it is missing, using the client-specific instructions below. Do not install Inspector, a custom bridge or a separate token manager for normal setup.
  3. Start the client's native OAuth login if authorization is required. Let it discover the endpoints, register its callback, generate PKCE, exchange credentials and store them itself. Do not hand-roll OAuth, copy browser cookies, ask for a password in chat or expose tokens.
  4. Open the authorization in the user's normal browser profile when possible. Torre reuses an existing session; otherwise the user signs in normally. The user must review and accept Allow access themselves. The permission includes writes and actions that can spend credits; connecting alone does not authorize you to perform those actions.
  5. Confirm the server is connected, list its tools, and call listWebhookEndpoints without arguments. An HTTP 200 tool result with an empty list is valid. Do not create a webhook, opening or other data, activate a paid service, or display private webhook details just to validate setup. A callback, saved configuration or tool list alone is not proof the read works.
  6. Leave the connection configured. Reply briefly, for example: Connected to Torre. Report an actual failure or required restart instead of claiming success before tools are usable.

Codex

Use native MCP settings when available. If the Codex CLI is available on the same host as the current client, inspect codex mcp list first, then run the following only for a missing connection:

codex mcp add torre --url https://torre.ai/mcp

If login is still needed:

codex mcp login torre

Replace torre with the reused or newly selected name when appropriate. Codex handles OAuth credentials; do not configure bearer_token_env_var or an Authorization header for this flow. If this client needs to reload its server configuration, request the smallest required reload or restart, then verify the actual MCP read in that client.

Claude Code

Inspect claude mcp list first. For a missing connection, use:

claude mcp add --transport http torre https://torre.ai/mcp

Then start native authentication:

claude mcp login torre

Use the selected name consistently. On versions without mcp login, use the interactive /mcp panel and authenticate the Torre server. If that action is unavailable to you, ask the user to perform just that step. Do not write a project-wide MCP configuration unless requested.

Cursor

Add Torre to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project). Keep any servers already there:

{
  "mcpServers": {
    "torre": { "url": "https://torre.ai/mcp" }
  }
}

Cursor shows Torre as needing sign-in. Choose Connect (or Login) in Cursor's MCP settings, sign in to Torre and approve access.

VS Code (GitHub Copilot agent mode)

Add Torre to .vscode/mcp.json in your workspace, or run MCP: Add Server and choose HTTP:

{
  "servers": {
    "torre": { "type": "http", "url": "https://torre.ai/mcp" }
  }
}

Start the server from the file or the MCP view. VS Code opens Torre's sign-in in your browser.

Windsurf

Add Torre to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "torre": { "serverUrl": "https://torre.ai/mcp" }
  }
}

Refresh the MCP servers in Windsurf's Cascade panel and sign in when asked.

Gemini CLI

Add Torre to ~/.gemini/settings.json:

{
  "mcpServers": {
    "torre": { "httpUrl": "https://torre.ai/mcp" }
  }
}

Then run /mcp auth torre in Gemini CLI to sign in.

ChatGPT

In ChatGPT, turn on developer mode under Settings → Apps & Connectors → Advanced settings. Create a connector with the MCP server URL https://torre.ai/mcp and OAuth authentication, then sign in to Torre and approve access. Enable Torre in the conversation before asking. Availability of developer mode depends on your ChatGPT plan.

From your own code

Apps that call a model API can connect to Torre with a Torre API key instead of browser sign-in, because there is no user at a browser:

Keep the key in your server's secret store. Never paste it into a chat.

Other clients or restricted environments

Add a remote Streamable HTTP server with the URL above, leave manual credential fields empty and use the client's OAuth flow. If the client cannot add servers or authenticate, explain that specific limitation and the smallest supported user action. Do not silently switch to API keys, run downloaded installers, change unrelated settings or bypass security controls.

Reconnect or remove access

Use the client's native authentication flow again after authorization expires or is revoked. Signing out of Torre, disconnecting a client, or removing local configuration is not a guarantee that server-side access has been revoked. Revoke the connection explicitly when requested; do not revoke it automatically after a successful setup.

The signed-in account can list its connections at GET /mcp/oauth/connections and revoke only the selected connection with DELETE /mcp/oauth/connections/{id} from the same Torre origin. See MCP authorization and revocation for the protocol details.

References