{
  "description": "MCPServerEntry is the Schema for the mcpserverentries API.\nIt declares a remote MCP server endpoint for vMCP discovery and routing\nwithout deploying any infrastructure.",
  "properties": {
    "apiVersion": {
      "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
      "type": [
        "string",
        "null"
      ]
    },
    "kind": {
      "description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
      "type": [
        "string",
        "null"
      ]
    },
    "metadata": {
      "type": [
        "object",
        "null"
      ]
    },
    "spec": {
      "additionalProperties": false,
      "description": "MCPServerEntrySpec defines the desired state of MCPServerEntry.\nMCPServerEntry is a zero-infrastructure catalog entry that declares a remote MCP\nserver endpoint. Unlike MCPRemoteProxy, it creates no pods, services, or deployments.",
      "properties": {
        "caBundleRef": {
          "additionalProperties": false,
          "description": "CABundleRef references a ConfigMap containing CA certificates for TLS verification\nwhen connecting to the remote MCP server.",
          "properties": {
            "configMapRef": {
              "additionalProperties": false,
              "description": "ConfigMapRef references a ConfigMap containing the CA certificate bundle.\nIf Key is not specified, it defaults to \"ca.crt\".",
              "properties": {
                "key": {
                  "description": "The key to select.",
                  "type": "string"
                },
                "name": {
                  "default": "",
                  "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "optional": {
                  "description": "Specify whether the ConfigMap or its key must be defined",
                  "type": [
                    "boolean",
                    "null"
                  ]
                }
              },
              "required": [
                "key"
              ],
              "type": [
                "object",
                "null"
              ],
              "x-kubernetes-map-type": "atomic"
            }
          },
          "type": [
            "object",
            "null"
          ]
        },
        "externalAuthConfigRef": {
          "additionalProperties": false,
          "description": "ExternalAuthConfigRef references a MCPExternalAuthConfig resource for token exchange\nwhen connecting to the remote MCP server. The referenced MCPExternalAuthConfig must\nexist in the same namespace as this MCPServerEntry.",
          "properties": {
            "name": {
              "description": "Name is the name of the MCPExternalAuthConfig resource",
              "type": "string"
            }
          },
          "required": [
            "name"
          ],
          "type": [
            "object",
            "null"
          ]
        },
        "groupRef": {
          "additionalProperties": false,
          "description": "GroupRef references the MCPGroup this entry belongs to.\nRequired — every MCPServerEntry must be part of a group for vMCP discovery.",
          "properties": {
            "name": {
              "description": "Name is the name of the MCPGroup resource in the same namespace",
              "minLength": 1,
              "type": "string"
            }
          },
          "required": [
            "name"
          ],
          "type": "object"
        },
        "headerForward": {
          "additionalProperties": false,
          "description": "HeaderForward configures headers to inject into requests to the remote MCP server.\nUse this to add custom headers like API keys or correlation IDs.",
          "properties": {
            "addHeadersFromSecret": {
              "description": "AddHeadersFromSecret references Kubernetes Secrets for sensitive header values.",
              "items": {
                "additionalProperties": false,
                "description": "HeaderFromSecret defines a header whose value comes from a Kubernetes Secret.",
                "properties": {
                  "headerName": {
                    "description": "HeaderName is the HTTP header name (e.g., \"X-API-Key\")",
                    "maxLength": 255,
                    "minLength": 1,
                    "type": "string"
                  },
                  "valueSecretRef": {
                    "additionalProperties": false,
                    "description": "ValueSecretRef references the Secret and key containing the header value",
                    "properties": {
                      "key": {
                        "description": "Key is the key within the secret",
                        "type": "string"
                      },
                      "name": {
                        "description": "Name is the name of the secret",
                        "type": "string"
                      }
                    },
                    "required": [
                      "key",
                      "name"
                    ],
                    "type": "object"
                  }
                },
                "required": [
                  "headerName",
                  "valueSecretRef"
                ],
                "type": "object"
              },
              "type": [
                "array",
                "null"
              ],
              "x-kubernetes-list-map-keys": [
                "headerName"
              ],
              "x-kubernetes-list-type": "map"
            },
            "addPlaintextHeaders": {
              "additionalProperties": {
                "type": "string"
              },
              "description": "AddPlaintextHeaders is a map of header names to literal values to inject into requests.\nWARNING: Values are stored in plaintext and visible via kubectl commands.\nUse addHeadersFromSecret for sensitive data like API keys or tokens.",
              "type": [
                "object",
                "null"
              ]
            }
          },
          "type": [
            "object",
            "null"
          ]
        },
        "remoteUrl": {
          "description": "RemoteURL is the URL of the remote MCP server.\nBoth HTTP and HTTPS schemes are accepted at admission time.",
          "pattern": "^https?://",
          "type": "string"
        },
        "transport": {
          "description": "Transport is the transport method for the remote server (sse or streamable-http).\nNo default is set (unlike MCPRemoteProxy) because MCPServerEntry points at external\nservers the user doesn't control — requiring explicit transport avoids silent mismatches.",
          "enum": [
            "sse",
            "streamable-http"
          ],
          "type": "string"
        }
      },
      "required": [
        "groupRef",
        "remoteUrl",
        "transport"
      ],
      "type": [
        "object",
        "null"
      ]
    },
    "status": {
      "additionalProperties": false,
      "description": "MCPServerEntryStatus defines the observed state of MCPServerEntry.",
      "properties": {
        "conditions": {
          "description": "Conditions represent the latest available observations of the MCPServerEntry's state.",
          "items": {
            "additionalProperties": false,
            "description": "Condition contains details for one aspect of the current state of this API Resource.",
            "properties": {
              "lastTransitionTime": {
                "description": "lastTransitionTime is the last time the condition transitioned from one status to another.\nThis should be when the underlying condition changed.  If that is not known, then using the time when the API field changed is acceptable.",
                "format": "date-time",
                "type": "string"
              },
              "message": {
                "description": "message is a human readable message indicating details about the transition.\nThis may be an empty string.",
                "maxLength": 32768,
                "type": "string"
              },
              "observedGeneration": {
                "description": "observedGeneration represents the .metadata.generation that the condition was set based upon.\nFor instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date\nwith respect to the current state of the instance.",
                "format": "int64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "reason": {
                "description": "reason contains a programmatic identifier indicating the reason for the condition's last transition.\nProducers of specific condition types may define expected values and meanings for this field,\nand whether the values are considered a guaranteed API.\nThe value should be a CamelCase string.\nThis field may not be empty.",
                "maxLength": 1024,
                "minLength": 1,
                "pattern": "^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$",
                "type": "string"
              },
              "status": {
                "description": "status of the condition, one of True, False, Unknown.",
                "enum": [
                  "True",
                  "False",
                  "Unknown"
                ],
                "type": "string"
              },
              "type": {
                "description": "type of condition in CamelCase or in foo.example.com/CamelCase.",
                "maxLength": 316,
                "pattern": "^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$",
                "type": "string"
              }
            },
            "required": [
              "lastTransitionTime",
              "message",
              "reason",
              "status",
              "type"
            ],
            "type": "object"
          },
          "type": [
            "array",
            "null"
          ],
          "x-kubernetes-list-map-keys": [
            "type"
          ],
          "x-kubernetes-list-type": "map"
        },
        "observedGeneration": {
          "description": "ObservedGeneration reflects the generation most recently observed by the controller.",
          "format": "int64",
          "type": [
            "integer",
            "null"
          ]
        },
        "phase": {
          "default": "Pending",
          "description": "Phase indicates the current lifecycle phase of the MCPServerEntry.",
          "enum": [
            "Valid",
            "Pending",
            "Failed"
          ],
          "type": [
            "string",
            "null"
          ]
        }
      },
      "type": [
        "object",
        "null"
      ]
    }
  },
  "type": "object"
}