Skip to content

MCP Integration

Status

This is on our Stage 3 roadmap. No SyncupSuite-specific MCP server exists yet. This page documents what you can do today and what's coming.

What You Can Do Today

The marketplace plugin includes mcp subcommands in both command frames that scaffold an MCP server on Cloudflare Workers:

/webplatform4sync:frame mcp    # Construction frame
/webplatform4sync:ha mcp       # Shu-Ha-Ri frame

These route to Cloudflare's built-in cloudflare:building-mcp-server-on-cloudflare skill, which scaffolds a remote MCP server with OAuth on Workers. You get a working MCP server for your own project -- it just does not have SyncupSuite-specific operations yet.

What's Planned

A remote MCP server on Cloudflare Workers with OAuth that exposes theme operations, tenant context, and token governance queries.

Planned Operations

OperationDescriptionExample
themes.listList all available themes with metadataReturns 12 theme objects with slugs, names, cultural context
themes.getTokensRetrieve token values for a specific themethemes.getTokens("swiss-international", "semantic.light")
themes.getMetaGet cultural metadata for a themeReturns foundation story, philosophy, seed colors
themes.validateOverrideCheck if a token override is allowed at a given tierthemes.validateOverride("status.error", "T1") returns { allowed: false, reason: "protected" }
tenants.resolveResolve a domain to its tenant contexttenants.resolve("brand.example.com") returns tenant ID, tier, status
tenants.getConfigGet tenant configuration including active themeReturns theme slug, allowed overrides, tier settings
governance.checkPermissionCheck override permissions for a tier/path combinationgovernance.checkPermission("T2", "interactive.primary") returns { allowed: true }

Architecture

Claude Code / LLM client
       |
       v
MCP Server (Cloudflare Worker)
  ├── OAuth authentication
  ├── Theme operations (reads from @syncupsuite/themes)
  ├── Tenant queries (reads from Neon via Hyperdrive)
  └── Governance checks (reads PROTECTED_TOKEN_PATHS)

The server will be a standard Cloudflare Worker with the MCP protocol handler. OAuth scopes will control which operations a client can perform -- read-only theme operations will be available without tenant credentials.

Scaffolding Your Own MCP Server Now

If you need an MCP server for your project today:

/webplatform4sync:ha mcp

This gives you:

  • A Cloudflare Worker with the MCP protocol handler
  • OAuth setup (client registration, token exchange)
  • A starter set of tools you can extend
  • Deployment to your Cloudflare account

From there, you can add your own tools that query your Neon database, read your theme configuration, or expose any operation your project needs.

For the full MCP-on-Workers guide, see the Cloudflare MCP documentation.

Next Steps

Released under the MIT License.