{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/newruntime-com/json-schema/newruntime-com-mcp-read-only-manifest-schema.json",
  "title": "McpReadOnlyManifest",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/newruntime-com-openapi.json#/components/schemas/McpReadOnlyManifest",
  "type": "object",
  "required": [
    "schema_version",
    "type",
    "status",
    "read_policy",
    "denied_capabilities",
    "gateway_status",
    "resources"
  ],
  "properties": {
    "schema_version": {
      "type": "string",
      "const": "newruntime-agent-readable-v0.2"
    },
    "type": {
      "type": "string",
      "const": "newruntime_mcp_readonly_manifest"
    },
    "status": {
      "type": "string",
      "const": "public_readonly_resource_catalog"
    },
    "read_policy": {
      "type": "object",
      "required": [
        "allowed_methods",
        "external_systems_can_modify_site",
        "mutation_endpoints_exposed"
      ],
      "properties": {
        "allowed_methods": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "GET",
              "POST"
            ]
          }
        },
        "external_systems_can_modify_site": {
          "type": "boolean",
          "const": false
        },
        "mutation_endpoints_exposed": {
          "type": "boolean",
          "const": false
        }
      }
    },
    "denied_capabilities": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "gateway_status": {
      "type": "object",
      "required": [
        "transport",
        "resources_only",
        "tools_exposed",
        "public_http_mcp_endpoint_exposed"
      ],
      "properties": {
        "transport": {
          "type": "string",
          "const": "stdio_and_streamable_http"
        },
        "resources_only": {
          "type": "boolean"
        },
        "tools_exposed": {
          "type": "boolean"
        },
        "write_tools_exposed": {
          "type": "boolean",
          "const": false
        },
        "public_http_mcp_endpoint_exposed": {
          "type": "boolean",
          "const": true
        }
      }
    },
    "resources": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "uri",
          "index_route",
          "record_types",
          "stable_keys",
          "provenance_keys"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "uri": {
            "type": "string"
          },
          "index_route": {
            "type": "string",
            "format": "uri"
          },
          "record_types": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "stable_keys": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "provenance_keys": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}