headcode

Docs · Using Headcode

Connect your AI

Every Headcode site exposes its own single-tenant Streamable HTTP MCP server at /mcp. Add the URL once, sign in via OAuth 2.1, and your agent inherits your exact permissions.

Using Headcode/Connect your AI

One clean endpoint per site

Because every Headcode backend is single-tenant, there is no /p/<project>/mcp prefix. Your MCP endpoint is simply https://cms.mywebsite.com/mcp (or https://v4-api.headcodecms.com/mcp for the public read-only demo).

The server advertises OAuth 2.1 Protected Resource Metadata, so modern MCP clients discover your Better Auth login page and register themselves automatically — no static API keys to copy.

Connect from the terminal

claude mcp add --transport http headcode https://v4-api.headcodecms.com/mcp

Your browser opens the Better Auth sign-in and consent screen. Confirm once, and your client receives a short-lived access token scoped to this backend.

Claude, ChatGPT, and Grok apps

Add your /mcp URL as a custom MCP connector with OAuth authentication, sign in with your account, and start working directly from chat.

23 MCP tools + built-in MCP Skills

Built on rmcp 3.11 with skills-fs, the backend serves both typed tools and SHA-256-verified editorial, publish, and admin skills right from the server:

  • Schema: schema_get, schema_push
  • Entries & drafts: entries_list, entry_get, entry_update, entry_delete, changes_list, draft_reset
  • Publishing & rollback: publish, snapshots_list, rollback
  • Preview & media: preview_link, preview_rotate, media_list, media_add, media_delete
  • Zero-PII team management (admins): members_list, invite_create, invite_redeem, member_revoke

What to ask

  • “Read the site schema and list all current pages.”
  • “Draft a new article about single-tenant Rust MCP backends and save it to draft.”
  • “Show me the preview link and list every entry that differs from live.”
  • “Fix the typo in the hero title on live, then ask me before touching draft.”