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.
Claude Cowork
Use the hosted endpoint as a Claude custom connector:Cursor and Codex
Workspace admins can also connect from Settings > Developer in Trellis. The Developer / API section can create a workspace key and prepare setup instructions for Claude Code, Claude Desktop, Claude Cowork, Cursor, and Codex.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:Resources
The hosted endpoint also exposes read-only MCP resources:| Resource URI | Description |
|---|---|
trellis://agents/{agent_id}/profile | Agent profile and configuration |
trellis://agents/{agent_id}/memory | Recent agent memory |
trellis://knowledge/documents/{document_id} | Workspace knowledge documents |
trellis://knowledge/skills/{document_id} | Agent-facing skills |
Safety model
- Read tools work immediately after authentication.
- Write tools keep the same permission and confirmation behavior as Trellis.
- Messaging tools must show the payload and wait for explicit confirmation before sending.
- The server logs every tool call with
workspace_id,user_id, andtool_name. - Failures are logged and returned to clients as typed JSON errors.
- The hosted endpoint applies basic per-key rate limiting.
Example: Slack triage bot in 5 minutes
- 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.
- Include
workspace_idin tool calls when the bot serves more than one workspace.
Troubleshooting
| Symptom | Fix |
|---|---|
Missing TRELLIS_API_KEY | Run the installer again or export the key. |
Unauthorized | Recreate the API key from Settings > Developer. |
Rate limit exceeded | Retry after a minute or reduce concurrent calls. |
| Tools appear but calls fail | Check that the user behind the key belongs to the selected workspace. |
| No tools listed | Confirm the API key belongs to a Trellis user with workspace access. |