MCP server
Connect your agent to Torre so it can use the API tools while you keep control of publishing, messages and paid actions. The MCP server is https://torre.ai/mcp; the setup guide is https://torre.ai/mcp/connect.
In a supported coding agent, send:
Connect to Torre using https://torre.ai/mcp/connect
Sign in with your normal Torre account and review access in your browser. For Claude web or Desktop, add Torre in Connectors settings first, as explained in the guide. No manually copied key is needed for this flow.
For automatic setup from a coding agent, use the public Connect to Torre guide.
Sign in with your Torre account
Configure an OAuth-capable MCP client with the Streamable HTTP URL https://torre.ai/mcp, without
custom headers. The client discovers the authorization flow automatically, opens Torre, and lets
you sign in with your usual account. Review the requested capabilities and callback destination,
then choose Allow access. Cancelling grants no access. Application names are self-reported,
not verified by Torre; authorize only the client you intended to connect.
The client stores and renews the authorization itself. Access tokens last 15 minutes; rotating refresh tokens last until the connection expires after 30 days. Sign in again after expiry or revocation. OAuth tokens are for MCP only, not credentials for direct REST calls.
Discovery is available at /.well-known/oauth-protected-resource/mcp and
/.well-known/oauth-authorization-server. Public clients register at /mcp/oauth/register
using token_endpoint_auth_method: none, authorization-code PKCE S256, and exact HTTPS callbacks
(HTTP is allowed only on loopback). Requests to authorize and exchange tokens must include
resource=https://torre.ai/mcp and may request the mcp scope. Token and revocation requests use
application/x-www-form-urlencoded; registration uses JSON. Token responses never pass through
the Recruiting error envelope.
To revoke a connection, clients can POST their token and client_id to /mcp/oauth/revoke.
The signed-in owner can also list connections at GET /mcp/oauth/connections and revoke one
with DELETE /mcp/oauth/connections/{id} from the same Torre origin. Revocation invalidates
the entire connection immediately, including issued access and refresh tokens. Refresh/code
reuse also revokes the connection. Logging out of Torre does not revoke independently authorized
clients; revoke the connection explicitly when needed.
Claude callback registration
Claude web and Desktop can register https://claude.ai/api/mcp/auth_callback. Claude Code can
register http://localhost/callback or http://127.0.0.1/callback, with its actual local port
(for example, http://127.0.0.1:54321/callback). HTTP callbacks are accepted only on loopback.
The authorization and token requests must use the exact URI that the client registered,
including its port and path. There are no wildcard callbacks. DCR means that a client can
register the local port it is using without sharing a client secret.
If refreshing returns invalid_grant, reconnect and authorize again. Do not keep retrying an
expired, revoked or already-used refresh token: refresh tokens are single-use and replay
invalidates the entire connection.
Existing API-key clients
The existing API-key flow continues to work:
POST /mcp
Authorization: Bearer <api-key>
Content-Type: application/json
Accept: application/json, text/event-stream
The server supports tools/list and tools/call. MCP tools use the same authentication, permissions, validation, rate limits, and billing rules as the equivalent REST operation. A tool result includes the HTTP status and response body; an unsuccessful API response is reported as a tool error.
JSON-compatible REST operations are exposed as tools; multipart resume upload remains REST-only. Tool inputs use named path/query parameters and a body object for JSON request bodies. Structured results include the REST HTTP status, body and headers, for example { "status": 200, "body": ..., "headers": {} }. Successful operations can also return 201 or 204; body is the REST result, or null for an empty response such as a successful deletion. Each tool's output schema describes that envelope and the documented successful body shapes. Read isError and status before using a result as success. Tool errors can instead contain text without structured content.
For candidate discovery use Find jobs. For publication and imports, use Publish a job: skipAlignment does not bypass job completeness, and a failed create-and-post can retain a draft whose ID is returned in the error. Connecting an agent is not consent to publish a job or spend credits.
Treat writes as writes: an MCP client should not automatically retry a state-changing tool after an ambiguous timeout.
Each tool has a title and explicit safety annotations. Reads, including read-only searches
that use POST, have readOnlyHint: true and destructiveHint: false. Creates, updates,
messages, paid actions and deletions have readOnlyHint: false and destructiveHint: true.
That flag means the operation can change data, not that every call deletes something.
Each tool performs one named API operation; it cannot be switched to an arbitrary HTTP method
or destination.
If a tool fails
- Invalid input: inspect the tool's input schema and the returned field names; correct the request before trying again. Resume a returned draft ID instead of creating a duplicate.
- Expired access: reconnect to Torre. A forbidden result can instead mean that the signed-in account lacks permission; signing in again does not grant new permissions.
- Rate limit: wait for
retry-afterwhen supplied. - Timeout or temporary failure: the change may already have happened. Read the saved record, conversation or campaign status before repeating a write, message or paid action.
Errors retain the REST status, body and request ID when provided, and include recovery guidance. See Errors for examples.
Use the live API Reference for the current tools and request shapes.
Privacy and support
Read MCP data handling and Torre's Privacy Policy before connecting. For connection or API help, contact help@torre.ai. Include the client, tool name, UTC time and request ID when available. Never send passwords, API keys, OAuth tokens or real candidate records in a support message.
Resume attraction setup
If you started on Attract candidates, follow the saved-task steps: connect or enable Torre, then return to the saved-task page and choose COPY TASK INSTRUCTIONS. Paste and send the instructions in your agent. OAuth alone does not send or execute the task. CONTINUE ON THE WEB resumes the same opening in the browser.
For a direct MCP start, use listAttractionOptions to offer the same three available choices: free Job Network distribution, sponsorship on Torre and distribution beyond Torre. Quietly initialize only when no opening exists. Once an opening is saved, use its openingId with getOpeningAttractionPreferences and getOpening, then complete it with updateOpening; do not create another after connecting. See Attract candidates for minimal pending responses, current revisions and conflict recovery, and Sponsor a job for quotes and approval before paid activation.