Search by

Native Model Context Protocol (MCP) JSON-RPC 2.0 server module for PhrameCMS.

Package info

github.com/PhrameCMS/mcp

pkg:composer/phramecms/mcp

Statistics

Installs: 18

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

v0.1.0 2026-12-04 21:15 UTC

This package is auto-updated.

Last update: 2026-12-04 21:35:07 UTC


README

Native Model Context Protocol (MCP) server module for PhrameCMS, enabling AI agents to reliably inspect schemas and manage content and configuration out of the box.

Responsibilities

  • JSON-RPC 2.0 MCP Protocol Implementation:
    • Stdio transport (invoked via phrame mcp:serve) for local IDE / CLI AI agents.
    • Streamable HTTP transport (/mcp route via phramecms/routing) for remote autonomous agents with Bearer Agent Token authentication.
  • Auto-Exposed MCP Resources:
    • phrame://schema/entities — live JSON Schemas of all entity types, bundles, and attached fields.
    • phrame://schema/config — registered configuration schemas.
    • phrame://content/{entity_type}/{bundle}/{id} — structured entity payload & metadata.
    • phrame://config/{name} — active configuration object.
    • phrame://audit/recent — recent immutable audit log entries (permission-gated).
  • Auto-Exposed MCP Tools:
    • Automatically publishes every Core OperationInterface registered by installed modules as a typed MCP Tool using its JSON Schema inputSchema.
    • Native support for dry_run: true, idempotency_key, structured diff previews, and snapshot rollback.
  • Security & RBAC: Every tool call and resource read executes through Core's OperationBus under the authenticated AI Agent Principal — never bypassing permission scopes, validation, or audit logging.

Dependencies

  • PHP ^8.5
  • phramecms/core
  • phramecms/user (recommended for scoped AI Agent Token enforcement)
  • phramecms/routing (optional — enables HTTP /mcp transport)

Ecosystem

Part of the PhrameCMS multi-repo suite. See PhrameCMS/cms for the starter distribution and architecture docs.