MCP Guide
Cinatra is built around the Model Context Protocol (MCP) in two ways at once:
-
As an external server. Every capability the platform offers — running agents, listing skills, reading objects, sending email — is exposed as an MCP primitive at
/api/mcp. Any MCP-compliant client (Claude Code, ChatGPT connectors, automation scripts) can connect, authenticate, and call those primitives. -
As an internal architecture. Inside the monorepo, packages talk to each other through the same MCP primitive contract instead of importing each other’s internals. This is the platform’s chosen alternative to a REST microservice mesh — same boundary discipline, no HTTP overhead.
This guide covers both. The external-server pages are how-to material for connecting from any MCP client; the internal-architecture pages document where Cinatra is today and where it is going.
External server
Section titled “External server”- The external MCP server — what
/api/mcpexposes, transport, primitive catalog overview - Authentication — Better Auth OAuth-provider flow, bearer JWTs, local vs production
- Connecting Claude Code —
mcp-remote, OAuth callback, local-dev flow - Connecting ChatGPT connectors — connector setup, supported behavior
- Testing assistants locally — running through built-in chat surfaces with the same MCP server
- Primitives — naming, validation, actor context, capability categories
- Agent runs over MCP — start/poll/resume an agent run from any MCP client
Internal architecture
Section titled “Internal architecture”- Internal architecture —
McpRuntimeToolServer, package primitive registration, deterministic in-process clients - Package boundaries — primitives as the package interface, why no direct cross-package imports
- Migration roadmap — current state, the microservices-via-MCP trajectory, what is not yet done
Where to go next
Section titled “Where to go next”- The runtime that hosts the primitives at the application layer: Architecture
- The open standards the MCP server speaks alongside MCP itself: Open standards in Cinatra
- The configuration surface for the MCP server: Configuration