ワンクリックで
trellis-connect-mcp
Connect Claude Code, Codex, Cursor, or OpenCode to a local or deployed Trellis Cloudflare app over MCP.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Connect Claude Code, Codex, Cursor, or OpenCode to a local or deployed Trellis Cloudflare app over MCP.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Build or modify a Trellis agent by editing the agent blueprint, skills, knowledge, state map, MCP surfaces, and verification commands.
Connect Trellis providers as Cloudflare Worker secrets one provider at a time.
Scaffold a new Cloudflare-first Trellis app and hand the user to readiness or deploy.
Take a first-time Trellis user from local proof to the simplest credible Cloudflare production deployment.
Route a new Trellis user through the Cloudflare-first path without making them understand the whole stack first.
Diagnose what is missing before a Trellis Cloudflare app can boot, deploy, or verify live.
| name | trellis-connect-mcp |
| description | Connect Claude Code, Codex, Cursor, or OpenCode to a local or deployed Trellis Cloudflare app over MCP. |
Use this skill when the user wants their coding host connected to Trellis over MCP.
Remote MCP comes after app health, not before.
Local:
http://localhost:3000/mcp/trellis
Remote role-facing surface:
${APP_URL}/mcp/trellis
Remote operator surface:
${APP_URL}/mcp/operator
Protected remote routes use:
Authorization: Bearer <TRELLIS_API_KEY>
The Trellis CLI currently writes Claude Code MCP config directly:
npm run trellis -- mcp claude-code --local --write --json --url http://localhost:3000/mcp/trellis --token "$TRELLIS_API_KEY"
npm run trellis -- mcp claude-code --remote --write --json --url "${APP_URL}/mcp/trellis" --token "$TRELLIS_API_KEY"
For the current role-shaped Trellis pattern, add two MCP entries when the host supports HTTP MCP:
claude mcp add --scope user --transport http trellis-sdr \
"${APP_URL}/mcp/trellis" \
--header "Authorization: Bearer $TRELLIS_API_KEY"
claude mcp add --scope user --transport http trellis-operator \
"${APP_URL}/mcp/operator" \
--header "Authorization: Bearer $TRELLIS_API_KEY"
TRELLIS_API_KEY is preferred for deployed Worker routes. TRELLIS_SANDBOX_TOKEN may appear in older local flows, but do not make it the remote default.
For non-Claude hosts, write the host-native MCP config manually using the same flat HTTP shape:
{
"mcpServers": {
"trellis-sdr": {
"type": "http",
"url": "https://<worker>.workers.dev/mcp/trellis",
"headers": {
"Authorization": "Bearer <TRELLIS_API_KEY>"
}
},
"trellis-operator": {
"type": "http",
"url": "https://<worker>.workers.dev/mcp/operator",
"headers": {
"Authorization": "Bearer <TRELLIS_API_KEY>"
}
}
}
}
Do not write:
transport block/healthz is healthyFor a hosted app, only connect remote MCP after:
npm run deploy -- --json succeedsnpm run verify -- --json passes local Cloudflare checksGET ${APP_URL}/healthz is healthyGET ${APP_URL}/mcp/trellis is reachable with authGET ${APP_URL}/mcp/operator is reachable with authnpm run verify -- --live --url "$APP_URL" --api-key "$TRELLIS_API_KEY" passesIf those checks are not green, route the user back to readiness or deploy instead of debugging through MCP first.
After writing MCP config, say:
trellis-sdr, trellis-operator, or bothTRELLIS_API_KEY