Overview
Connect an AI agent to your Retidal project over the Model Context Protocol.
Retidal runs an official remote MCP server — a standalone Cloudflare Worker that lets an MCP-capable AI client (Codex, Claude Code, Claude Desktop, or another compatible MCP client) call a fixed set of project-scoped tools directly, instead of you hand-rolling API calls for it.
Connect
Section titled “Connect”Get the endpoint
The server speaks Streamable HTTP MCP at a single URL:
https://mcp.retidal.com/mcpThere’s also an unauthenticated liveness check at
/healthz.Authenticate
Every request to
/mcpcarries a Bearer token — see Authentication below for the two accepted forms.Authorization: Bearer <token>Point your client at it
Any MCP client configured for a remote Streamable HTTP server works. For example, in a client that reads an MCP server list from JSON:
json {"mcpServers": {"retidal": {"url": "https://mcp.retidal.com/mcp","headers": { "Authorization": "Bearer YOUR_API_KEY" }}}}
Authentication
Section titled “Authentication”The Authorization header accepts either credential form Retidal already issues, and the server tells them
apart by whether a colon is present:
| Form | Header value | Resolves to |
|---|---|---|
| Project key pair | Bearer <apiKey>:<apiSecret> |
ADMIN. The original tools remain available. Scoped support tool access uses a dedicated project key. |
| Scoped API key | Bearer <apiKey> (no colon) |
Only the tools whose requiredScope is in that key’s scopes (see Tools). Create one under Projects → Scoped API keys. |
A malformed credential is a 401, a resolution failure is a 503
A syntactically bad Authorization header, or a key confirmed not-found/revoked, returns an authentication
error. If the credential-resolution dependency itself is unavailable (not the key being wrong), the MCP
server returns a service-unavailable error instead — it never reports a platform outage as if it were your
invalid credential.
Each /mcp request revalidates its credential with the Foundation service. Revoked credentials and scope changes are rechecked on the next request; a credential-resolution outage returns 503.
Codex and Claude Code
Section titled “Codex and Claude Code”Set RETIDAL_MCP_TOKEN in the client’s environment using your secret manager before starting either client. Add the server to Codex:
codex mcp add retidal --url https://mcp.retidal.com/mcp --bearer-token-env-var RETIDAL_MCP_TOKENFor Claude Code, a project .mcp.json can refer to the variable without saving its value:
{ "mcpServers": { "retidal": { "type": "http", "url": "https://mcp.retidal.com/mcp", "headers": { "Authorization": "Bearer ${RETIDAL_MCP_TOKEN}" } } }}Ensure the variable is present in the environment that starts the client. Do not put real credentials in a repository, shell history, or shared configuration. Authentication is currently Bearer-only; OAuth is not yet supported. Scoped keys currently have no automatic expiry; review and revoke them explicitly.
What the server can access
Section titled “What the server can access”The MCP Worker holds no direct database connection — every tool call is forwarded to the same management-API routes documented elsewhere in these docs, over an internal service binding. That means:
- Tool behavior matches the Management API it forwards to, including the same validation and error responses.
- A tool call is recorded to an internal analytics dataset (tool name, project, auth type, success/failure, duration) purely for the platform’s own observability — this does not change what the tool returns to you.
Tool visibility
Section titled “Tool visibility”tools/list only advertises the tools your credential’s scope allows — a scoped key with just
mcp:events_read, for example, sees get_integration_guide and list_recent_events and nothing else. All
nineteen tools are registered on the server regardless, so a client that calls an unauthorized tool by name
directly (bypassing tools/list) still gets a proper scope-denied tool error, not an “unknown tool” error.
Next steps
Section titled “Next steps”The full list of tools, their arguments, required scopes, and what each one actually does.