Skip to content
OvertCMS Docs

Agent API (AI & Automation) MCP

Streamable HTTP MCP JSON-RPC 2.0 endpoint

POST /mcp

Native 14-tool Streamable HTTP Model Context Protocol server (2025-03-26). Supports initialize, ping, notifications/initialized, tools/list, and tools/call across cms_get_context, cms_get_post_type_schema, cms_search_reference_options, cms_query_entries, cms_get_entry, cms_create_entry, cms_update_entry, cms_batch_entries, cms_transition_entry, cms_upload_media, cms_manage_schema, cms_manage_site, cms_manage_visibility, and cms_manage_redirects. Enforces identical API key scopes, post-type allowlists, rate limits, and kill switch.

Authentication

  • Bearer token BearerApiKey

    Scoped Agent API key (Authorization: Bearer ocms_...). Human JWTs and browser cookies are rejected on the Agent Plane.

Request body application/json required

  • id one of

    Example 1

    Show 3 options
    • Option 1 string
    • Option 2 number
    • Option 3 any nullable
  • jsonrpc string required

    Allowed: 2.0

    Example 2.0

  • method string required

    Allowed: initializepingnotifications/initializedtools/listtools/call

    Example tools/call

  • params object

Responses

  • 200 JSON-RPC 2.0 response envelope.

    application/json

    • error MCPError
      Show 3 fields
      • code integer required

        Example -32602

      • data any
      • message string required

        Example invalid tools/call params

    • id one of required

      Example 1

      Show 3 options
      • Option 1 string
      • Option 2 number
      • Option 3 any nullable
    • jsonrpc string required

      Allowed: 2.0

      Example 2.0

    • result object
  • 202 Accepted — JSON-RPC 2.0 notification (request omitted id).
  • 401 Missing, invalid, expired, or revoked Agent API key (cookies and human JWTs are rejected).

    application/json

    • error APIError required
      Canonical error payload returned across all OvertCMS planes.
      Show 6 fields
      • applied boolean required
        Always false on 4xx responses, guaranteeing the mutation was not applied.

        Example false

      • code string required

        Example validation_error

      • details object
      • issues array of ValidationIssue
        Show 7 fields
        • code string required

          Example max_length

        • constraint object
        • field string

          Example seoTitle

        • instruction string

          Example Keep SEO titles under 60 characters for search snippet display.

        • label string

          Example SEO Title

        • message string required

          Example field must be at most 60 graphemes

        • searchEndpoint string

          Example /agent/v1/collections/posts/fields/author/options

      • message string required

        Example entry validation failed

      • retryable boolean required

        Example false

  • 403 API key lacks required scope, post-type access, or IP allowlist match.

    application/json

    • error APIError required
      Canonical error payload returned across all OvertCMS planes.
      Show 6 fields
      • applied boolean required
        Always false on 4xx responses, guaranteeing the mutation was not applied.

        Example false

      • code string required

        Example validation_error

      • details object
      • issues array of ValidationIssue
        Show 7 fields
        • code string required

          Example max_length

        • constraint object
        • field string

          Example seoTitle

        • instruction string

          Example Keep SEO titles under 60 characters for search snippet display.

        • label string

          Example SEO Title

        • message string required

          Example field must be at most 60 graphemes

        • searchEndpoint string

          Example /agent/v1/collections/posts/fields/author/options

      • message string required

        Example entry validation failed

      • retryable boolean required

        Example false

  • 429 Per-key RPM rate limit, daily write cap, or daily media byte quota exceeded.

    application/json

    • error APIError required
      Canonical error payload returned across all OvertCMS planes.
      Show 6 fields
      • applied boolean required
        Always false on 4xx responses, guaranteeing the mutation was not applied.

        Example false

      • code string required

        Example validation_error

      • details object
      • issues array of ValidationIssue
        Show 7 fields
        • code string required

          Example max_length

        • constraint object
        • field string

          Example seoTitle

        • instruction string

          Example Keep SEO titles under 60 characters for search snippet display.

        • label string

          Example SEO Title

        • message string required

          Example field must be at most 60 graphemes

        • searchEndpoint string

          Example /agent/v1/collections/posts/fields/author/options

      • message string required

        Example entry validation failed

      • retryable boolean required

        Example false

Documentation

Start here