Skip to content

Streamable HTTP

Streamable HTTP exposes the MCP endpoint at /mcp, plus process checks at GET /healthz and GET /readyz. For a same-machine source build, the recipe below uses Docker Compose. Direct Node and Compose both default to same-machine access.

macOS/Linux — source-built HTTP on Docker loopback
git clone https://github.com/enthouan/trello-mcp.git
cd trello-mcp
cp .env.example .env
# Set TRELLO_API_KEY, TRELLO_TOKEN and a separate random MCP_AUTH_TOKEN in .env
${EDITOR:-vi} .env
grep -Eq '^TRELLO_API_KEY=.+$' .env && ! grep -Eq '^TRELLO_API_KEY=replace-me$' .env || { echo 'Set TRELLO_API_KEY to a non-placeholder value in .env before starting.' >&2; exit 1; }
grep -Eq '^TRELLO_TOKEN=.+$' .env && ! grep -Eq '^TRELLO_TOKEN=replace-me$' .env || { echo 'Set TRELLO_TOKEN to a non-placeholder value in .env before starting.' >&2; exit 1; }
docker compose -f docker-compose.local.yml up --build -d --wait --wait-timeout 120
curl -fsS http://127.0.0.1:3000/healthz
curl -fsS http://127.0.0.1:3000/readyz

Connect to http://127.0.0.1:3000/mcp. The local Compose file builds the checkout and publishes to host loopback by default. Configure your HTTP client with the same bearer token as the server's MCP_AUTH_TOKEN.

  1. Start with a loopback publication. Keep Compose’s default TRELLO_MCP_HOST_BIND_IP=127.0.0.1 for same-machine access.

  2. Verify the process. Request http://127.0.0.1:3000/healthz and http://127.0.0.1:3000/readyz.

  3. Register the MCP endpoint. Point a Streamable HTTP client at http://127.0.0.1:3000/mcp.

  4. Configure the client bearer token. Set the client to send Authorization: Bearer <token> with the same MCP_AUTH_TOKEN set on the Compose service.

Windows PowerShell
git clone https://github.com/enthouan/trello-mcp.git
Set-Location trello-mcp
Copy-Item .env.example .env
# Set TRELLO_API_KEY, TRELLO_TOKEN and a separate random MCP_AUTH_TOKEN in .env
notepad .env
if (-not (Select-String -Path .env -Pattern '^TRELLO_API_KEY=(?!replace-me$).+$' -Quiet)) {
throw 'Set TRELLO_API_KEY to a non-placeholder value in .env before starting.'
}
if (-not (Select-String -Path .env -Pattern '^TRELLO_TOKEN=(?!replace-me$).+$' -Quiet)) {
throw 'Set TRELLO_TOKEN to a non-placeholder value in .env before starting.'
}
docker compose -f docker-compose.local.yml up --build -d --wait --wait-timeout 120
Invoke-RestMethod http://127.0.0.1:3000/healthz
Invoke-RestMethod http://127.0.0.1:3000/readyz

After building the server, run node --env-file=.env dist/index.js with TRANSPORT=http. The default listener is 127.0.0.1:3000. Set HOST=::1 for IPv6 loopback. For a LAN interface, configure both HOST and MCP_AUTH_TOKEN and terminate TLS at a reverse proxy.

Native clients can omit Origin. Browsers on loopback are allowed. For other browser clients, add their exact origins to MCP_ALLOWED_ORIGINS, for example https://client.example.com. A disallowed origin returns HTTP 403 on any /mcp method.

For a web app, serve the app and /mcp through a same-origin reverse proxy, or configure the proxy to handle CORS preflights and return CORS headers for the trusted web origin.

Endpoint Purpose Contacts Trello
/healthz Confirms that the HTTP process is running. No
/readyz Confirms that the server is still accepting requests. No
/mcp Initializes MCP sessions, discovers tools, and runs approved tools. Only when a selected tool calls Trello

MCP_AUTH_TOKEN is a shared-secret guardrail for /mcp; it does not replace HTTPS, prevent every network client from reaching health checks, or change the Trello credentials stored on the server.

Health and readiness do not exercise MCP discovery or Trello. After registering /mcp in a client, verify the complete read-only path.

Verify it works

After the client discovers the server, review and approve only this named read-only call:

Read-only verification prompt
Which Trello account is connected? Use auth_whoami and do not change anything.