Skip to main content
Connect an external AI client to Trellis so it can find workspace information and use the tools you allow. An administrator creates the connection in Settings > Developer, and the client then authenticates with a key for that workspace. An administrator of a workspace on a Trellis plan can also sign in from the client with their Trellis account.

Find your endpoint

Every workspace has its own MCP endpoint, whichever AI agent it runs: Settings > Developer prepares each client with this endpoint.
The Agent V3 endpoint, https://api.trellistech.com/v1/mcp-server, is deprecated. Its responses carry a Deprecation header. Connections already set up keep working for now. Trellis will announce the date it stops answering, and its responses will then also carry a Sunset header with that date. Move each connection to your workspace’s endpoint: in Settings > Developer, set the client up again. Scripts that call the Agent V3 tools need to switch to the describe, read, and write tools below.

Your workspace’s endpoint

Endpoint and workspace

Replace {workspaceId} with your workspace ID. Settings > Developer fills it in for you. It is also the first part of the path when you open the workspace in Trellis, as in app.trellistech.com/{workspaceId}/settings/developer. The URL sets the workspace. The tools take no workspace_id argument, and every call reads or changes only the workspace in the URL. When a client connects, the server’s instructions name the workspace and its ID, so an AI app with several Trellis connections can tell them apart. To work in more than one workspace, add one connection for each, with its own URL and its own key or sign-in. Give each connection a name you will recognize, such as trellis-haven and trellis-renjoy.

Sign in

Connect with a workspace API key or with OAuth. Workspace API key. Send the key in the Authorization header of every request:
The key must belong to the workspace in the URL. A key created for an MCP client acts as the member who created it, with their role and within the key’s scopes. A server integration key reaches only the operations open to integrations. Create and delete keys in Settings > Developer, as Authentication describes. OAuth. In an AI app that can sign in to MCP servers with OAuth, add the endpoint without an Authorization header. Only an administrator of a workspace on a Trellis plan can connect an app this way; other members use a key. The endpoint answers with 401 and a WWW-Authenticate header whose resource_metadata value tells the app where to sign in. The app then opens Trellis in your browser:
  1. Sign in to Trellis.
  2. Choose the workspace from the endpoint URL. Trellis lists only the workspaces you administer on a Trellis plan.
  3. Choose Everything you can do in this workspace, or choose Only these areas and set each area to Read or Read and change.
  4. Select Allow.
The app then acts as you in that workspace, within the access you allowed. If you choose a different workspace on that screen, Trellis refuses calls to the endpoint’s workspace. Connect the app again and choose the workspace in the URL.

Connect Claude Code

The installer uses TRELLIS_API_KEY when it is set and otherwise asks for the key. It saves the key with the URL in ~/.trellis/mcp.env and registers the endpoint with Claude Code. Always pass --url: without it, older versions of the installer connect Claude Code to the deprecated Agent V3 endpoint. To connect another workspace, run the installer again with that workspace’s ID and key, and add --name trellis-renjoy so each connection keeps its own name. Manual equivalent:

Connect Claude Desktop or a stdio client

Claude Desktop and other clients that start a local process use the stdio bridge. Set TRELLIS_MCP_URL to your endpoint:
To print this block with your key filled in, run:
The command uses TRELLIS_API_KEY or the key the installer saved, and asks for one when it finds neither. Claude Desktop reads ~/Library/Application Support/Claude/claude_desktop_config.json on macOS and %APPDATA%\Claude\claude_desktop_config.json on Windows. Set TRELLIS_MCP_URL in every bridge configuration. Without it, the bridge uses the URL the installer saved last, or else the deprecated Agent V3 endpoint. The bridge always sends an API key and can’t sign in with OAuth.

Connect Cursor or Codex

In Settings > Developer, choose Cursor or Codex. Trellis creates a key and prepares the setup with your endpoint. Cursor gets an Open in Cursor button, and Codex gets a block for its configuration file, ~/.codex/config.toml. Any other client that supports Streamable HTTP can use the endpoint with the Authorization header above, or sign in with OAuth.

Connect Claude Cowork

Claude Cowork signs in with OAuth, so it needs no key.
  1. In Trellis, open Settings > Developer and choose Claude Cowork to copy your workspace’s endpoint.
  2. In Claude, open Customize > Connectors and choose Add custom connector. Give it a name you will recognize, such as Trellis.
  3. Paste the endpoint as the server URL. Leave the OAuth client ID and secret empty.
  4. When Claude asks, sign in to Trellis and allow access as Sign in describes.
Add a custom connector in Claude
Review the tool permissions in Claude before you start. Set it to ask before it runs write. A Cowork connector added earlier with the Agent V3 endpoint and an OAuth client secret still works for now. Remove it and add the connector again with your workspace’s endpoint.

Tools

Start with describe and no arguments. The domains and operations it lists depend on the connection: the key’s scopes, the access you allowed an OAuth app, or the operations open to a server integration key. A read call looks like this:
Each result is JSON. A successful call returns ok: true with the operation’s answer, and an etag when the answer has one. A refused call returns ok: false with an error code such as HTTP_422, a message, and the details in problem. Your client sees it as a tool error. A list returns one page per call, with data and page. When page.hasMore is true, call read again with the same arguments and query.cursor set to page.nextCursor. Most lists take query.pageSize, from 1 to 200. Trellis refuses allPages over MCP, so page with query.cursor instead.

Arguments and validation

  • Trellis ignores a top-level argument the tool doesn’t take, and the call still runs. The result lists the ignored names in ignoredArguments, with a warning. Check for it. A filter sent as input instead of query returns an unfiltered page.
  • Trellis refuses an argument of the wrong type before anything runs, with HTTP_422 and the issues it found.
  • Trellis checks query against the operation’s contract. It refuses an unknown parameter with HTTP_422, and the error names the closest parameter or lists the ones the operation takes.
  • read refuses an operation that changes data, and write refuses an operation that only reads.

Writes and confirmation

Trellis carries out a write or send as soon as it receives it. It doesn’t ask you to confirm. Your AI app decides whether to ask you first, so set it to ask before it runs write, especially for messages to guests or providers.
  • write is annotated as destructive, not idempotent, and open-world. It can change or delete records, a repeated call repeats the change, and it can reach people outside Trellis.
  • Each call can do only what the key or account may do in this workspace. Trellis refuses a write the connection isn’t allowed to make.
  • When an operation needs ifMatch, send the etag from your latest read or write of that record. A 412 means the record changed since then. Read it again and redo the change.
A repeated write makes the change again. To retry safely, add a retry key to _meta when you call write. The key has 8 to 128 letters, digits, ., _, :, or -. These are the params of the tools/call request:
A retry with the same key returns the first answer with replayed: true and changes nothing. Use a new key for each new change, because Trellis refuses a key reused for a different request.

Fix connection problems

Deprecated Agent V3 endpoint

The rest of this page describes the deprecated Agent V3 endpoint, for connections that haven’t moved yet. Don’t set up new connections with it. Use the hosted Streamable HTTP endpoint when your client supports it, or the stdio bridge below for clients that require a local process.

Hosted endpoint

Quick install

Claude Code

The installer prompts once for TRELLIS_API_KEY, stores it in ~/.trellis/mcp.env, and registers the hosted Streamable HTTP endpoint with Claude Code. Manual equivalent:

Claude Desktop

Print the config snippet:
Add the output to mcp.json and set TRELLIS_API_KEY in your shell or launcher environment.

Generic MCP clients

Prefer Streamable HTTP:
For stdio-only clients:
Provide TRELLIS_API_KEY in the client environment before starting the stdio bridge.

Workspace selection

Trellis API keys are workspace-scoped. Every MCP tool includes an optional workspace_id argument. Leave it empty to use the workspace this API key was issued for. If you provide it, it must match the key’s scope; cross-workspace calls are rejected.
To operate on multiple workspaces, issue one API key per workspace and connect each as a separate MCP server (e.g. trellis-haven, trellis-renjoy). Revoking a key in one workspace stops access there without affecting the others.

Tool catalog

Use your MCP client’s tool list or run:
The exposed catalog mirrors Trellis operational read tools and gated write tools across tasks, properties, reservations, conversations, workforce, knowledge base, and automations.

Read filters and financial data

  • The input schema published by each tool is authoritative. Unsupported filter names are rejected instead of being accepted and silently ignored.
  • Reservation reads expose payment status and provider/source freshness only through the financial preset and only when the API-key user has revenue access. Those fields report PMS evidence; they do not authorize charging a guest, sending a payment link, issuing a refund, or blocking access.
  • When a tool does not publish a filter or field needed by your integration, treat it as unavailable and contact support rather than filtering a broader response locally and assuming the server enforced the scope.

Reading paginated and partial results

Check answer_status, data_partial, and pagination metadata before treating a result as exhaustive. A response can contain every row in its page while some large fields are shortened or omitted; content_truncation identifies those changes. Request the named record and the fields you need before relying on missing detail. Workflow definition reads (workflow_read) never shorten step content. When a definition is too large for one response, step_outline in the returned version lists every step with its routing, steps holds the complete steps that fit, and suggested_next_call names the remaining step ids in stepIds. Follow it until data_partial is false before editing, or pass stepIds to read specific steps. These reads also leave out each schema that saving would derive identically: an input_schema built from the step’s inputs, and an ACTION output_schema equal to its action contract. The version’s schema_projection.omitted lists them by step, with the action as {"$ref": "action:<selector>"}. Send those steps back without the omitted schemas. Pass includeSchemas: true to get every stored schema. TrellisQL may return fewer rows than the requested limit to preserve whole records. Its continuation starts after the last returned row. Keep the same filters and follow pagination.next_cursor until there are no more pages. Treat cursors as opaque values and pass them back unchanged. read_sessions with action="history" returns full stored message text and pagination metadata. Use message_limit to control the page size and follow the returned cursor to read the rest of the session.

Reading complete conversation messages

read_inbox and the messages view in trellisql_query return stored message text, including links. Each message reports content_source, content_complete, and content_original_length. A preview or stripped reply cannot establish completeness: its original length is null. When a response reaches its size limit, it returns fewer whole messages first. Follow suggested_next_call for inbox history or pagination.next_cursor for TrellisQL to retrieve the next page. Conversation pagination and message text completeness are separate: check both before summarizing a full conversation. For a batch of conversations, follow each unfinished conversation’s message_recovery independently. A single message that exceeds the response limit includes content_recovery with the exact next read_inbox call. Its filters contain the conversation id, message_id, content_offset, content_limit, and content_version. Follow that call until content_has_more is false, appending each returned content block in order. Offsets count Unicode characters. Keep the version unchanged; if the message changes during retrieval, restart from offset zero without the old version. These reads use the same workspace and inbox permissions.

Resources

The hosted endpoint also exposes read-only MCP resources: Resources are scoped to the workspace API key. Use them when a client needs instructions, skills, or agent knowledge as context without calling a Trellis operation tool.

Safety model

  • Read tools remain limited to the workspace and permissions available to the key.
  • Write tools keep the same permission and confirmation behavior as Trellis.
  • Messaging tools must show the payload and wait for explicit confirmation before sending.
  • Clients receive a clear error when a call cannot be completed.
  • The hosted endpoint limits how many requests each client IP address can make per minute.

Example: Slack triage bot

  1. Add the Trellis MCP server to the AI client that powers your Slack bot.
  2. Store TRELLIS_API_KEY in the bot runtime environment.
  3. In your bot instructions, tell it to use Trellis tools for task lookup, task summaries, and task updates.
  4. Require explicit confirmation before calling any tool that creates tasks, updates tasks, or sends messages.
  5. If the bot serves several workspaces, configure a separate key and connection for each one. Route each request to the matching connection; workspace_id alone cannot change access.

Troubleshooting