Find your endpoint
Every workspace has its own MCP endpoint, whichever AI agent it runs:
Settings > Developer prepares each client with this endpoint.
Your workspace’s endpoint
Endpoint and workspace
{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 theAuthorization header of every request:
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:
- Sign in to Trellis.
- Choose the workspace from the endpoint URL. Trellis lists only the workspaces you administer on a Trellis plan.
- Choose Everything you can do in this workspace, or choose Only these areas and set each area to Read or Read and change.
- Select Allow.
Connect Claude Code
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. SetTRELLIS_MCP_URL to your endpoint:
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.- In Trellis, open Settings > Developer and choose Claude Cowork to copy your workspace’s endpoint.
- In Claude, open Customize > Connectors and choose Add custom connector. Give it a name you will recognize, such as Trellis.
- Paste the endpoint as the server URL. Leave the OAuth client ID and secret empty.
- When Claude asks, sign in to Trellis and allow access as Sign in describes.

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:
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 awarning. Check for it. A filter sent asinputinstead ofqueryreturns an unfiltered page. - Trellis refuses an argument of the wrong type before anything runs, with
HTTP_422and the issues it found. - Trellis checks
queryagainst the operation’s contract. It refuses an unknown parameter withHTTP_422, and the error names the closest parameter or lists the ones the operation takes. readrefuses an operation that changes data, andwriterefuses 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 runswrite, especially for messages to guests or providers.
writeis 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 theetagfrom your latest read or write of that record. A412means the record changed since then. Read it again and redo the change.
_meta when you call write. The key has 8 to 128 letters, digits, ., _, :, or -. These are the params of the tools/call request:
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
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:mcp.json and set TRELLIS_API_KEY in your shell or launcher environment.
Generic MCP clients
Prefer Streamable HTTP: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 optionalworkspace_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.
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: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
Checkanswer_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
- Add the Trellis MCP server to the AI client that powers your Slack bot.
- Store
TRELLIS_API_KEYin the bot runtime environment. - In your bot instructions, tell it to use Trellis tools for task lookup, task summaries, and task updates.
- Require explicit confirmation before calling any tool that creates tasks, updates tasks, or sends messages.
- If the bot serves several workspaces, configure a separate key and connection for each one. Route each request to the matching connection;
workspace_idalone cannot change access.