This page applies to Apigee and Apigee hybrid.
View
Apigee Edge documentation.
This page describes how to enable Model Context Protocol (MCP) in an existing
Apigee hybrid cluster running version 1.17.0 or later. After you complete
this procedure, your cluster runs a new in-cluster MCP data plane and your Message
Processor is ready to route MCP tool calls to it. You can then deploy your first MCP
Discovery Proxy by following the shared
MCP quickstart.
For MCP concepts, architecture, and feature details shared between Apigee and Apigee hybrid, see the MCP in Apigee overview.
What this procedure does
Enabling MCP on a Apigee hybrid cluster makes the following changes:
- Grants the
apigee-watcheridentity access to MCP configuration on the Apigee control plane. You add theapigee-watcherservice account to thewatcher_identitieslist on your Apigee organization'scontrolPlaneAccessresource so the MCP sidecar can pull MCP configuration bundles from the Apigee control plane. This is a control-plane change, scoped to the Apigee organization, and is a one-time step per organization regardless of how many clusters serve that organization. - Adds a new in-cluster MCP data plane. A new set of MCP pods is created in
the same Kubernetes namespace where Apigee hybrid is installed (default
apigee), along with the supporting Kubernetes resources (Service, Horizontal Pod Autoscaler, and RBAC) needed to run them. MCP tool calls are handled by these pods. - Configures your Message Processor to reach the MCP data plane. The Apigee
operator updates your Message Processor pod spec so that MP routes MCP tool calls to
the new in-cluster MCP data plane. Applying this change triggers a staged canary
release of Message Processor (managed by the
ApigeeDeploymentcontroller); the previous pod continues to serve traffic until the new pod isReady. The release fires only on the enable and disable transitions, not on ongoing MCP activity or steady-state MCP traffic. Run this procedure in an approved maintenance window and wait for the release to complete before proceeding.
Step 1: Edit overrides.yaml
Open the overrides.yaml file you use for your Apigee hybrid Helm charts. At
the top level of the file, add:
enableMcpServer: true
This is the minimum configuration required to enable MCP. It uses the built-in defaults from
the apigee-org chart: two MCP data plane replicas that auto-scale to ten at
70% CPU utilization, with resource requests of 500m CPU and 512Mi memory and limits of
2000m CPU and 1Gi memory on the MCP data plane container. To customize replica counts,
resource requests, or the MCP service account, see
Reference: MCP fields in overrides.yaml later on this page.
Complete examples of a merged overrides.yaml follow, one for each
authentication style. Use the example that matches how your existing base installation is
configured; the MCP-specific lines are highlighted with comments and are the same in all
three variants.
Pick the tab that matches how your base installation authenticates Apigee components to Google Cloud. The selection applies to every variant-scoped code block on this page.
Workload Identity (GKE)
Use this variant if your base installation authenticates Apigee components to Google Cloud through GKE Workload Identity (no service account key files on disk).
instanceID: "my-hybrid-instance" namespace: APIGEE_NAMESPACE gcp: region: us-central1 projectID: my-hybrid-project workloadIdentity: enabled: true gsa: apigee-non-prod@my-hybrid-project. k8sCluster: name: my-cluster region: us-central1 org: my-org envs: - name: my-env # ---- MCP: minimum required ------------------------------------------------- enableMcpServer: true # ---- MCP: optional customization (all fields default when omitted) --------- # mcpServer: # replicaCountMin: 2 # replicaCountMax: 10 # targetCPUUtilizationPercentage: 70 # resources: # requests: { cpu: 500m, memory: 512Mi } # limits: { cpu: 2000m, memory: 1Gi } # sidecar: # resources: # requests: { cpu: 200m, memory: 128Mi } # limits: { cpu: 500m, memory: 512Mi } # annotations: {} # ----------------------------------------------------------------------------
File-based service account keys
Use this variant if your base installation authenticates Apigee components to Google Cloud through service account key files that you distribute to each cluster.
instanceID: "my-hybrid-instance" namespace: APIGEE_NAMESPACE gcp: region: us-central1 projectID: my-hybrid-project k8sCluster: name: my-cluster region: us-central1 org: my-org guardrails: serviceAccountPath: ./service-accounts/apigee-non-prod.json mart: serviceAccountPath: ./service-accounts/apigee-non-prod.json connectAgent: serviceAccountPath: ./service-accounts/apigee-non-prod.json watcher: serviceAccountPath: ./service-accounts/apigee-non-prod.json # MCP also uses this key file envs: - name: my-env serviceAccountPaths: synchronizer: ./service-accounts/apigee-non-prod.json runtime: ./service-accounts/apigee-non-prod.json # ---- MCP: minimum required ------------------------------------------------- enableMcpServer: true # ---- MCP: optional customization (all fields default when omitted) --------- # mcpServer: # replicaCountMin: 2 # replicaCountMax: 10 # targetCPUUtilizationPercentage: 70 # resources: # requests: { cpu: 500m, memory: 512Mi } # limits: { cpu: 2000m, memory: 1Gi } # sidecar: # resources: # requests: { cpu: 200m, memory: 128Mi } # limits: { cpu: 500m, memory: 512Mi } # annotations: {} # ----------------------------------------------------------------------------
Workload Identity Federation (AKS/EKS)
Use this variant if your base installation is on AKS or EKS and authenticates to Google Cloud
through Workload
Identity Federation. MCP uses the credential configuration file that
apigee-watcher already uses, from watcher.serviceAccountPath,
so you do not add any MCP-specific identity configuration. If you store the credential
configuration in a Kubernetes secret instead, see
Other identity mechanisms.
Add the MCP top-level key to your existing WIF overrides.yaml:
# ---- MCP: minimum required ------------------------------------------------- enableMcpServer: true # ---- MCP: optional customization (all fields default when omitted) --------- # mcpServer: # replicaCountMin: 2 # replicaCountMax: 10 # targetCPUUtilizationPercentage: 70 # resources: # requests: { cpu: 500m, memory: 512Mi } # limits: { cpu: 2000m, memory: 1Gi } # sidecar: # resources: # requests: { cpu: 200m, memory: 128Mi } # limits: { cpu: 500m, memory: 512Mi } # annotations: {} # ----------------------------------------------------------------------------
Leave mcpServer.gsa and mcpServer.serviceAccountPath unset. The
MCP sidecar uses the same credential configuration file as apigee-watcher, from
watcher.serviceAccountPath.
Step 2: Grant the watcher identity access to the MCP configuration on the control plane
The MCP sidecar fetches its configuration bundle from the Apigee control plane using
the apigee-watcher component's Google Cloud service account (the identity
you selected in Step 1). Before the MCP pods start, add that
service account to the watcher_identities list on your Apigee
organization's controlPlaneAccess resource. Without this grant, the MCP
sidecar's calls to apigee.googleapis.com to retrieve the MCP configuration
reference return 404 Not Found and the MCP data plane never becomes ready
to serve tool traffic.
This is a one-time-per-organization step (it is not per-cluster). Skip this step if you have already granted access for a previous cluster in the same Apigee organization.
- Set the shell variables you use for the API call. Reuse the values from your
installation:
export ORG_NAME=YOUR_ORG_NAME export PROJECT_ID=YOUR_GCP_PROJECT_ID export WATCHER_SA=apigee-watcher@${PROJECT_ID}. export TOKEN=$(gcloud auth print-access-token)
Where:
YOUR_ORG_NAMEis the name of your Apigee hybrid organization.YOUR_GCP_PROJECT_IDis the Google Cloud project that hosts your Apigee hybrid organization.WATCHER_SAis the email address of theapigee-watcherservice account. If you overrodewatcher.gsainoverrides.yaml, use that value instead of the defaultapigee-watcher@${PROJECT_ID}..
- Call the
updateControlPlaneAccess
API to add the watcher service account to the
watcher_identitieslist:No data residency
curl -X PATCH -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ "https://apigee.googleapis.com/v1/organizations/${ORG_NAME}/controlPlaneAccess?update_mask=watcher_identities" \ -d "{\"watcher_identities\": [\"serviceAccount:${WATCHER_SA}\"]}"Data residency
curl -X PATCH -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ "https://${CONTROL_PLANE_LOCATION}-apigee.googleapis.com/v1/organizations/${ORG_NAME}/controlPlaneAccess?update_mask=watcher_identities" \ -d "{\"watcher_identities\": [\"serviceAccount:${WATCHER_SA}\"]}"Where
CONTROL_PLANE_LOCATIONis the location for your control plane data if your Apigee hybrid installation uses data residency. For the list of available locations, see Available Apigee API control plane regions.The call returns a long-running operation. Wait for it to complete before running the verification step below.
- Verify the grant landed. Call
getControlPlaneAccess
and confirm the watcher service account appears in the
watcherIdentitiesfield of the response:No data residency
curl -X GET -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ "https://apigee.googleapis.com/v1/organizations/${ORG_NAME}/controlPlaneAccess"Data residency
curl -X GET -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ "https://${CONTROL_PLANE_LOCATION}-apigee.googleapis.com/v1/organizations/${ORG_NAME}/controlPlaneAccess"The response should include a
watcherIdentitiesarray containing your watcher service account. For example:{ "synchronizerIdentities": [ ... ], "analyticsPublisherIdentities": [ ... ], "watcherIdentities": [ "serviceAccount:apigee-watcher@YOUR_GCP_PROJECT_ID." ] }
If
watcherIdentitiesis absent from the response or does not contain your watcher service account, re-run the PATCH command and check the operation status for errors before proceeding.
Step 3: Upgrade the apigee-operator chart
Upgrade the operator chart first. The operator chart owns the schema for the new
MCP resources; the organization chart references them. Upgrading in the wrong order results
in a successful helm upgrade that creates no MCP pods.
helm upgrade APIGEE_OPERATOR_RELEASE_NAME apigee-operator/ \ --namespace APIGEE_NAMESPACE \ --atomic \ -f overrides.yaml
The command completes in under a minute. Confirm that the operator Deployment is fully
rolled out with the new image (the apigee-controller-manager
Deployment is a vanilla Kubernetes resource, not an
ApigeeDeployment, so kubectl rollout status deploy is the
correct command here):
kubectl rollout status deploy -n APIGEE_NAMESPACE apigee-controller-manager --timeout=2m
Expected output:
deployment "apigee-controller-manager" successfully rolled out
Step 4: Upgrade the apigee-org chart
helm upgrade APIGEE_ORG_RELEASE_NAME apigee-org/ \ --namespace APIGEE_NAMESPACE \ --atomic \ -f overrides.yaml
Two reconciliation loops now run in parallel:
- The Apigee operator creates the MCP Deployment, Service, HPA, ServiceAccount, Role, and RoleBinding. MCP pods come up two at a time (subject to Kubernetes scheduling); the sidecar container in each pod performs its first configuration fetch from the Apigee control plane shortly after startup.
- The Apigee operator injects the
hostAliasesentry into the Message Processor pod spec, which triggers a release of theapigee-runtimeApigeeDeployment.
Step 5: Verify the installation
Verify the MCP data plane is running
Inspect the four MCP-related resources the operator created. Resource names include an
organization-derived suffix; the samples that follow use ORG_CR_SUFFIX
as the placeholder for that suffix, and pod suffixes and the Service ClusterIP will
differ in your environment.
MCP pods (two by default; auto-scale to ten under load):
kubectl get pod -n APIGEE_NAMESPACE -l app=apigee-mcp-server
NAME READY STATUS RESTARTS AGE apigee-mcp-server-default-ORG_CR_SUFFIX-6d4c8-abc12 2/2 Running 0 2m apigee-mcp-server-default-ORG_CR_SUFFIX-6d4c8-def34 2/2 Running 0 2m
Every pod must show 2/2 in the READY column. The two containers
in each pod are:
apigee-mcp-server— the MCP data plane container that MP pods connect to.apigee-mcp-server-config— the configuration sidecar (a mode of theapigee-watcherbinary) that fetches configuration bundles from the Apigee control plane and writes them to a shared volume that the MCP data plane container reads.
MCP ApigeeDeployment (a Kubernetes custom resource, not a vanilla
Deployment):
kubectl get apigeedeployment -n APIGEE_NAMESPACE -l app=apigee-mcp-server
NAME STATE NESTEDSTATE AGE apigee-mcp-server-default-ORG_CR_SUFFIX running 2m
Expected state is running. Also verify the underlying pod is 2/2
Running:
kubectl get pod -n APIGEE_NAMESPACE -l app=apigee-mcp-server
NAME READY STATUS RESTARTS AGE apigee-mcp-server-default-ORG_CR_SUFFIX-REV-POD_HASH 2/2 Running 0 2m
MCP Service:
kubectl get svc -n APIGEE_NAMESPACE -l app=apigee-mcp-server
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE apigee-mcp-server-default-ORG_CR_SUFFIX ClusterIP 10.96.42.17 <none> 80/TCP,443/TCP,15021/TCP,15000/TCP 2m
MCP HorizontalPodAutoscaler:
kubectl get hpa -n APIGEE_NAMESPACE | grep apigee-mcp-server
Confirm that MINPODS matches mcpServer.replicaCountMin
from your overrides.yaml (default 2) and MAXPODS
matches mcpServer.replicaCountMax (default 10). The
TARGETS, REPLICAS, and AGE columns depend on
live metrics and cluster state.
Verify Message Processor pods received the hostAliases entry
Every MP pod must show the injected entry — if even one pod is missing it, that pod
cannot route MCP tool calls. List all MP pods and their hostAliases:
kubectl get pods -n APIGEE_NAMESPACE -l app=apigee-runtime \ -o jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.spec.hostAliases}{"\n"}{end}'
Expected output: every MP pod lists a hostAliases array containing one entry
with two hostnames pointing at the MCP Service ClusterIP from the previous step
(the second hostname uses your lowercased org name). Message Processor pod names
follow the template
apigee-runtime-TRUNCATED_ORG-ENV_GROUP_HASH-REV-POD_HASH,
where TRUNCATED_ORG is your organization name (truncated to fit the
Kubernetes 63-character name limit if your org name is long),
ENV_GROUP_HASH is a per-environment deployment-group hash, REV
is the current release revision number (four digits, for example 1170),
and POD_HASH is a per-pod random suffix. For example:
apigee-runtime-myorg-env1-abc12-1170-def34 [map[hostnames:[mcp.apigee.internal myorg.mcp.apigee.internal] ip:10.96.42.17]] apigee-runtime-myorg-env1-abc12-1170-ghi56 [map[hostnames:[mcp.apigee.internal myorg.mcp.apigee.internal] ip:10.96.42.17]]
If any pod shows an empty hostAliases value, the Message Processor
ApigeeDeployment did not fully pick up the updated pod spec. Force a
fresh staged canary release by deleting the current Message Processor pods; the
ApigeeDeployment controller will re-render them from the current spec
(which now includes the hostAliases entry):
kubectl delete pod -n APIGEE_NAMESPACE -l app=apigee-runtime
The ApigeeDeployment controller will recreate the pods within a
minute. Note that kubectl rollout restart deploy (the vanilla
Kubernetes command) does not work on Message Processor because Message Processor
is deployed as an ApigeeDeployment custom resource, not a
Deployment.
Install complete
Together, the previous three checks confirm your MCP data plane is running and MP-addressable:
- Every MCP pod is
2/2 Running. The MCP data plane container fails its Kubernetes readiness probe on port15021if the operator-issued TLS certificate is not loaded and the sidecar has not yet loaded its initial MCP configuration, soReadypods have both those preconditions in place. - Every MP pod's spec contains the
hostAliasesentry pinningmcp.apigee.internalandORG_NAME.mcp.apigee.internalto the MCP Service ClusterIP. MP pods can therefore resolve MCP proxy target endpoints to your in-cluster MCP data plane. - An MP pod resolves
mcp.apigee.internalto the MCP Service ClusterIP through the injectedhostAliasesentry.
You verify end-to-end MCP tool traffic (an actual MCP initialize or
tools/list call through your Apigee ingress) as part of the shared
MCP quickstart,
after you deploy your first MCP Discovery Proxy.
If any of the previous three checks fails, consult Troubleshoot MCP deployments before proceeding to the quickstart.
Step 6: Enable MCP on remaining clusters
MCP requests for a given hostname can route to any cluster serving the corresponding
Apigee environment group. If MCP is enabled on some clusters and not others in the same
environment group, MCP requests that route to a cluster without MCP enabled fail
(typically returned to the client as 503 Service Unavailable).
Enable MCP uniformly on every cluster that serves the same environment group. For each additional cluster, repeat Steps 1, 3, 4, and 5. You do not need to repeat Step 2 (grant watcher identity access): that grant is scoped to the Apigee organization and applies to all clusters in the same organization.
Verify the stateless MCP protocol (version 1.17.4 and later)
Apigee hybrid versions 1.17.4 and later serve the stateless MCP protocol
(version 2026-07-28) by default. To confirm that your installation serves it, call
the server/discover method, which exists only in the stateless protocol. This check
needs a deployed MCP Discovery Proxy, so run it after you complete the
MCP quickstart.
On versions 1.17.0 through 1.17.3, which serve only the stateful MCP
protocol versions, skip this check.
The request goes to a hostname on your Apigee environment group, so any cluster that serves the environment group can answer it. The check therefore verifies the environment group, not a specific cluster, and you need to run it only once per environment group. To confirm that each cluster is healthy, use the per-cluster checks in Step 5: Verify the installation.
curl -X POST "https://MCP_ENDPOINT_URL/mcp" \ -H "Content-Type: application/json" \ -H "Accept: application/json, text/event-stream" \ -H "MCP-Protocol-Version: 2026-07-28" \ -H "Mcp-Method: server/discover" \ -H "Authorization: Bearer TOKEN" \ -d '{ "jsonrpc": "2.0", "id": 1, "method": "server/discover", "params": { "_meta": { "io.modelcontextprotocol/protocolVersion": "2026-07-28", "io.modelcontextprotocol/clientCapabilities": {} } } }'
Replace the following:
MCP_ENDPOINT_URL: the hostname of your MCP endpoint, which is a hostname registered on your Apigee environment group and served by your Apigee ingress gateway. For example,api.example.com.TOKEN: an OAuth 2.0 access token, required if your MCP proxy verifies tokens with an OAuthV2 policy. If the proxy uses a VerifyAPIKey policy instead, replace the-H "Authorization: Bearer TOKEN"line with the API key in the header or query parameter that the policy reads. If the proxy accepts unauthenticated requests, remove the line.
The environment group serves the stateless MCP protocol if the response is HTTP
200 and the result.supportedVersions array contains
2026-07-28. A successful response looks similar to the following:
{ "id": 1, "jsonrpc": "2.0", "result": { "_meta": { "io.modelcontextprotocol/serverInfo": { "name": "SERVICE_NAME", "version": "1.0.0" } }, "cacheScope": "public", "capabilities": { "tools": { "listChanged": false } }, "resultType": "complete", "supportedVersions": [ "2026-07-28", "2025-11-25", "2025-06-18", "2025-03-26", "2024-11-05" ], "ttlMs": 0 } }
In the response, SERVICE_NAME is the name of the MCP service that
answered. The cacheScope and ttlMs fields are cache hints;
"ttlMs": 0 is the default and does not indicate an error.
If the response is an error, use it to find the cause:
- HTTP
400witherror.code-32602anderror.messageUnsupported protocol version: the clusters run Apigee hybrid versions1.17.0through1.17.3, which do not serve the stateless protocol. Upgrade to version1.17.4or later. - Any other error, such as HTTP
401or403(authentication), HTTP404(no MCP proxy deployed at/mcpon this environment group), HTTP503(unhealthy MCP data plane), or anothererror.codevalue from a malformed request: the cause is not the Apigee hybrid version. See Troubleshoot MCP deployments.
For the full set of stateless request requirements and errors, see Supported MCP protocol versions.
Rollback
To disable MCP on a cluster, set enableMcpServer: false (or remove the field
entirely) in overrides.yaml, then upgrade the apigee-org
chart:
helm upgrade APIGEE_ORG_RELEASE_NAME apigee-org/ \ --namespace APIGEE_NAMESPACE --atomic -f overrides.yaml
The enableMcpServer field is consumed by the apigee-org chart
only, so the operator chart does not need to be upgraded during a disable. The Apigee
operator (unchanged) picks up the config change from the ApigeeOrganization
custom resource, deletes the MCP resources, and removes the hostAliases
entry from the Message Processor pod spec, which triggers a release of the
apigee-runtime ApigeeDeployment. Roll back in an approved
maintenance window.
After rollback, the MCP Discovery Proxies you deployed to the Apigee environment are still present in the Apigee control plane, but no cluster in that environment group serves MCP traffic. Undeploy the MCP Discovery Proxies to fully unwind the feature, or leave them deployed and re-enable MCP on the clusters later.
Configure mTLS between the MCP data plane and the ingress gateway
MCP tool calls leave the MCP data plane and re-enter your cluster through
the Apigee ingress gateway, using the same host aliases and the same
virtualhosts[] entry as any other API call to that environment group. By
default, the MCP data plane
connects to the ingress gateway over one-way TLS: the connection is encrypted, but the MCP
data plane presents no client certificate and does not verify the ingress gateway's
certificate.
Starting in Apigee hybrid 1.17.4, you can enable mutual TLS (mTLS) on this
connection, per environment group, with the
virtualhosts[].mcpMtls
block. With mTLS enabled:
- The MCP data plane presents a client certificate that you issue, so the ingress gateway authenticates the MCP data plane the same way it authenticates any other mTLS client of that environment group.
- The MCP data plane verifies that the ingress gateway's certificate chains to a CA you name, and that it covers the host alias being called. Both checks are on by default and can be turned off per environment group.
You configure mTLS one environment group at a time. Environment groups without
mcpMtls keep using one-way TLS, including environment groups served by the
same ingress gateway, so you can migrate incrementally. The client certificate and the
trust CA are also per environment group: there is no cluster-wide MCP client certificate,
and two environment groups on the same ingress gateway can present different client
certificates issued by different CAs.
The mcpMtls fields deliberately reuse the names of the ingress TLS fields one
level up, but the roles are reversed, because on this connection the MCP data plane is the
client and the ingress gateway is the server:
| Field | Under virtualhosts[].mcpMtls |
Directly under virtualhosts[] |
|---|---|---|
sslCertPath, sslKeyPath |
The client certificate and key the MCP data plane presents to the ingress gateway.
Must carry the clientAuth extended key usage. |
The ingress gateway's own server certificate and key. |
sslSecret |
Secret holding that client certificate and key (keys cert,
key). |
Secret holding the ingress gateway's server certificate and key. |
caCertPath, or the sslSecret name with -cacert
appended |
The CA the MCP data plane trusts for the ingress gateway's server certificate. | The CA the ingress gateway trusts for incoming client certificates, including the MCP data plane's. |
Before you begin
- The cluster runs Apigee hybrid
1.17.4or later, with theapigee-operator,apigee-org, andapigee-virtualhostcharts all upgraded to that version, and MCP enabled by completing the steps that begin with Step 1: Editoverrides.yaml. Make sure the upgrade included the Install the updated Apigee CRDs step (kubectl apply -k apigee-operator/etc/crds/default/ ...); upgrading the operator chart alone does not update the CRDs. On CRDs older than1.17.4, the API server silently drops themcpMtlsblock from theApigeeRouteConfigresource, so the block has no effect and the cluster cannot report the certificate issues described in Verify. - A client certificate and private key for the MCP data plane, issued by a CA that
the ingress gateway trusts for this environment group: the CA in
virtualhosts[].caCertPathor theINGRESS_SECRET_NAME-cacertSecret of the samevirtualhosts[]entry. If the certificate has an extended key usage extension, it must includeclientAuth; the MCP data plane refuses a certificate whose extended key usage omits it (a certificate with no extended key usage extension is accepted). Use a private CA: public CAs generally do not issue certificates with theclientAuthextended key usage. - The CA certificate that signed the ingress gateway's own TLS certificate for this
environment group (the certificate in
virtualhosts[].sslCertPathorINGRESS_SECRET_NAME). The MCP data plane validates the ingress gateway against this CA. Omit it only if you setdisableChainValidation: true. - Unless you set
disableSanValidation: true, the ingress gateway's certificate must list the environment group's host aliases in its Subject Alternative Names. It normally does, because external clients perform the same check.
Choose one of the two ways to supply the certificates. They mirror the two options for the ingress gateway's own mTLS configuration.
Option 1: Certificate files
Add mcpMtls with file paths to the environment group's
virtualhosts[] entry. Helm can only read files inside the chart directory, so
the files must be under $APIGEE_HELM_CHARTS_HOME/apigee-virtualhost/ (for
example in its certs/ directory, next to your ingress certificates), and the
paths are relative to that directory, exactly like the existing sslCertPath,
sslKeyPath, and caCertPath fields. See
Create TLS
certificates.
virtualhosts: - name: ENV_GROUP_NAME tlsMode: MUTUAL caCertPath: certs/INGRESS_CA_FILE # CA the ingress gateway trusts for client certificates sslCertPath: certs/INGRESS_CERT_FILE sslKeyPath: certs/INGRESS_KEY_FILE mcpMtls: sslCertPath: certs/MCP_CLIENT_CERT_FILE # client certificate the MCP data plane presents sslKeyPath: certs/MCP_CLIENT_KEY_FILE caCertPath: certs/MCP_TRUST_CA_FILE # CA that signed INGRESS_CERT_FILE
Option 2: Kubernetes Secrets
- Create a Secret holding the client certificate and key. The data keys must be
certandkey:kubectl create secret generic MCP_CLIENT_SECRET_NAME -n APIGEE_NAMESPACE \ --from-file=cert=MCP_CLIENT_CERT_FILE \ --from-file=key=MCP_CLIENT_KEY_FILE
- Create a second Secret holding the CA that signed the ingress gateway's certificate.
Its name must be the first Secret's name with
-cacertappended, and the data key must becacert. Skip this step only if you setdisableChainValidation: true:kubectl create secret generic MCP_CLIENT_SECRET_NAME-cacert -n APIGEE_NAMESPACE \ --from-file=cacert=MCP_TRUST_CA_FILE
- Reference the first Secret from the environment group's
virtualhosts[]entry:virtualhosts: - name: ENV_GROUP_NAME tlsMode: MUTUAL sslSecret: INGRESS_SECRET_NAME mcpMtls: sslSecret: MCP_CLIENT_SECRET_NAME
Do not mix the two options in one mcpMtls block. helm upgrade
fails fast with a diagnostic naming the entry for common misconfigurations, including:
sslSecret combined with a path field; sslCertPath without
sslKeyPath, or sslKeyPath without sslCertPath;
neither form provided; or a referenced Secret that is missing or lacks the expected data
keys. Other inconsistencies (for example, caCertPath set together with
disableChainValidation: true) are described in the
virtualhosts[].mcpMtls
property reference.
Apply the change
Upgrade the apigee-virtualhost release for the environment group:
helm upgrade ENV_GROUP_NAME apigee-virtualhost/ \ --namespace APIGEE_NAMESPACE \ --set envgroup=ENV_GROUP_NAME \ -f overrides.yaml
No MCP pods restart and no other environment group is affected. The MCP data plane
picks up the new configuration on its next periodic refresh, typically within a few minutes.
If you are switching the entry from tlsMode: SIMPLE to MUTUAL
in the same upgrade, MCP tool calls to this environment group can fail during that window,
because the ingress gateway starts requiring a client certificate before the MCP data plane
starts presenting one. Make the change in a maintenance window for that environment
group.
Verify
- Confirm the configuration reached the MCP data plane's routing resource for the
environment group. The output must show the Secret name and the two validation flags
you configured (unset flags are omitted):
If thekubectl -n APIGEE_NAMESPACE get apigeeroutes -l envGroupId=ENV_GROUP_NAME \ -o jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.spec.mcpMtls}{"\n"}{end}'
mcpMtlscolumn is still empty several minutes after the upgrade, the usual cause is that the Apigee CRDs in the cluster predate1.17.4and dropped the field: apply the updated CRDs (see Before you begin) and rerun theapigee-virtualhostupgrade. Less often, theapigee-orgchart (which supplies the watcher image) has not been upgraded to1.17.4. - Confirm the MCP data plane accepted the certificates. The sidecar logs an
errorline and keeps the previous configuration for that environment group whenever a Secret is missing, unreadable, or holds unusable material. Immediately after enabling, there should be none: Search the whole log rather than a recent window: a faulty Secret is reported when the sidecar first sees it, not on every refresh.kubectl -n APIGEE_NAMESPACE logs -l app=apigee-mcp-server -c apigee-mcp-server-config \ | grep MCP_MTLS_
- Check for certificate problems reported as
ApigeeIssueresources (see MCP mTLS issues):kubectl -n APIGEE_NAMESPACE get apigeeissues -l 'ais-reason in (AIS_MCP_MTLS_CLIENT_CERT_INVALID,AIS_MCP_MTLS_CLIENT_CERT_EXPIRY,AIS_MCP_MTLS_CA_CERT_INVALID,AIS_MCP_MTLS_CA_CERT_EXPIRY)'
- Send an MCP request through a deployed MCP Discovery Proxy in the environment group, as in the MCP quickstart. A successful tool call confirms the full path, including the mTLS handshake with the ingress gateway.
Rotate certificates
- Option 2 (Secrets): Update the Secrets in place, for example with
kubectl create secret generic ... --dry-run=client -o yaml | kubectl apply -f -. The MCP data plane watches both Secrets and loads the new material on its next refresh. No pod restart and nohelm upgradeis needed, and in-flight MCP calls are not interrupted. Keep the data keyscert,key, andcacertunchanged. - Option 1 (files): Replace the files and run the same
helm upgradeas in Apply the change. The chart updates the Secrets it manages and the MCP data plane picks them up as described for Option 2.
Fourteen days before the client certificate or the trust CA expires, the cluster raises
an ApigeeIssue with severity WARNING; after expiry, severity
ERROR. An expired certificate is still presented until you replace it; it is
the ingress gateway that then rejects the handshake.
Disable mTLS for an environment group
Remove the mcpMtls block, set the entry's tlsMode back to
SIMPLE (or remove tlsMode) in the same edit, and run the same
helm upgrade. The MCP data plane returns that environment group to one-way TLS
on its next refresh and removes the certificate material it had written for the group.
Secrets you created by hand for Option 2 are not deleted; remove them yourself when no
longer needed.
Behavior when certificates are unavailable
If the MCP data plane cannot read or cannot use the configured certificates for an
environment group (a Secret is missing, a data key is absent, the certificate lacks
clientAuth, or the CA Secret is not a CA), it logs an error
line, keeps serving that environment group with the last certificates it successfully
loaded, and retries on later refreshes. If no certificates were ever loaded for the group,
MCP tool calls to that group fail (the client typically receives
503 Service Unavailable) while every other environment group continues to be
served. Fix the Secret or the overrides.yaml entry; no restart is needed. See
Troubleshoot
MCP deployments for the specific messages.
Reference: MCP fields in overrides.yaml
The following table lists every Apigee hybrid overrides.yaml field that
controls MCP behavior in version 1.17.0. Only enableMcpServer is
required; all other fields have safe defaults that suit most installations.
Field definitions match the apigee-org Helm chart defaults for
Apigee hybrid 1.17.0. The mTLS settings for the connection from the MCP data plane
to the ingress gateway are not in this table: they are per environment group, under
virtualhosts[].mcpMtls
in the apigee-virtualhost chart (1.17.4 and later).
| Field | Type | Default | Recommended tuning |
|---|---|---|---|
enableMcpServer |
boolean | false |
Required. Set to true to enable MCP on this cluster. Toggling
this field triggers a staged canary release of Message Processor. Toggle only in
a maintenance window and wait for the release to complete before proceeding. |
mcpServer.replicaCountMin |
integer | 2 |
Keep at 2 for HA. Increase only if you have a baseline of high MCP
traffic; the HPA scales up automatically under CPU pressure. Signal: sustained HPA
at replicaCountMax and CPU above target. |
mcpServer.replicaCountMax |
integer | 10 |
Increase if you observe the HPA capped at 10 during peak. Signal:
kubectl top pods -l app=apigee-mcp-server shows all pods near their CPU
limit at peak. If metrics-server is not installed, use
kubectl get hpa -n APIGEE_NAMESPACE | grep apigee-mcp-server and check
whether the REPLICAS column is at the MAXPODS ceiling. |
mcpServer.targetCPUUtilizationPercentage |
integer | 70 |
Lower to 50–60 for latency-sensitive workloads
(scales earlier). Raise to 80–85 to reduce replica
count in cost-sensitive clusters. Signal: p95 request latency correlates with
per-pod CPU. |
mcpServer.resources.requests |
ResourceList | cpu: 500m, memory: 512Mi |
Increase requests if pods are frequently OOMKilled or CPU-throttled at steady
state. Signal: kubectl describe pod shows OOMKilled or throttled
conditions. |
mcpServer.resources.limits |
ResourceList | cpu: 2000m, memory: 1Gi |
Raise the CPU limit before raising replica count when p95 latency is high but overall QPS is low (few, expensive requests). Raise the memory limit only if you see OOMKills. |
mcpServer.sidecar.resources.requests |
ResourceList | cpu: 200m, memory: 128Mi |
Rarely needs tuning. The sidecar periodically composes and writes configuration bundles; steady-state CPU is minimal. |
mcpServer.sidecar.resources.limits |
ResourceList | cpu: 500m, memory: 512Mi |
Rarely needs tuning. Increase memory only if you deploy an unusually large number of MCP tools in a single Discovery Proxy. |
mcpServer.terminationGracePeriodSeconds |
integer | 30 |
Rarely needs tuning. Increase if long-lived in-flight MCP requests need more time to complete during a pod drain. |
mcpServer.annotations |
map | {} |
Add extra pod annotations if your cluster requires them. |
mcpServer.serviceAccountPath |
string | unset | Leave unset unless you need per-component identity separation. When
unset, MCP uses watcher.serviceAccountPath. MCP does not use
envs[].serviceAccountPaths.runtime. The apigee-watcher
identity already holds the permissions the MCP sidecar needs. If you override this
field, specify the path to a Google Cloud service account key JSON file. Mutually
exclusive with mcpServer.gsa.
If Workload Identity is not enabled, and you set neither mcpServer.serviceAccountRef nor
serviceAccountSecretProviderClass, you must set
mcpServer.serviceAccountPath or
watcher.serviceAccountPath. If you set neither,
helm upgrade fails with the error
mcpServer.serviceAccountPath or watcher.serviceAccountPath is
required!!.
Prefer Workload Identity (GKE) or Workload Identity Federation (AKS/EKS) whenever possible. File-based service account keys must be rotated, stored securely, distributed to every cluster, and are the most common source of leaks into support artifacts (see Support cases). |
mcpServer.gsa |
string | unset | Leave unset unless you need per-component identity separation. When
unset, MCP falls back to watcher.gsa, then to
gcp.workloadIdentity.gsa. The apigee-watcher identity
already holds the permissions the MCP sidecar needs, so reusing it is the
recommended path. Override with a dedicated Google Cloud service account email
only if your organization requires a distinct identity for the MCP sidecar for
audit reasons. |
mcpServer.serviceAccountRef |
string | unset | Advanced. Name of an existing Kubernetes Secret in the Apigee namespace that
holds a Google Cloud service account key for the MCP sidecar. Use this only if you
manage service account key Secrets outside of the Apigee Helm charts. Mutually
exclusive with mcpServer.serviceAccountPath and
mcpServer.gsa.
MCP does not use watcher.serviceAccountRef. If your base installation
stores the apigee-watcher key in a Kubernetes secret with
watcher.serviceAccountRef, set this property to the same secret
name. |
mcpServer.podDisruptionBudget |
map | unset | Optional PodDisruptionBudget for the MCP pods. Accepts
minAvailable or maxUnavailable (integer or percentage
string). Set one, not both. Leave unset unless your cluster has strict voluntary
disruption policies that require an explicit budget. |
mcpServer.tolerations |
list | unset (falls back to top-level tolerations) |
Standard Kubernetes tolerations for MCP pods. Set only if MCP pods must tolerate taints that other Apigee components do not. |
mcpServer.image.pullPolicy |
string | IfNotPresent |
Image pull policy for the MCP server container. Rarely changed. |
mcpServer.sidecar.image.pullPolicy |
string | IfNotPresent |
Image pull policy for the MCP sidecar container. Rarely changed. |
Estimate MCP tool capacity
Apigee hybrid does not enforce a fixed maximum number of MCP tools per organization. Instead, tool capacity is bounded by four hard size limits enforced at deploy or request time. Whether a specific number of tools fits depends on the size of each tool, which is derived from the OpenAPI specification that defines the tool.
Typical capacity
For most OpenAPI specifications — a mix of tools with varying
parameter counts, request-body sizes, and description lengths, with the
majority of tools falling into the small-to-medium size range — you
can typically expect to fit 10,000 MCP tools per organization at the default
tools/list response size limit.
Actual capacity varies with the specific shape of your OpenAPI specification. Organizations whose specifications are dominated by tools with many parameters, large request bodies, or long descriptions fit proportionally fewer tools before reaching one of the four hard limits below. To validate capacity for your specific specifications, follow Estimate capacity for your specification below.
Hard limits
Four size limits apply in Apigee hybrid version 1.17.0. The
lowest applicable limit is what binds; raising one does not raise the others.
| Limit | Value | Scope | Failure mode |
|---|---|---|---|
| OpenAPI specification file size | 3 MiB | per .yaml file |
400 at proxy validate |
| MCP proxy bundle size (decompressed) | 50 MiB | per MCP Discovery Proxy | 400 at proxy validate |
tools/list response size |
10 MiB (default) | per hostname | 502 with TooBigBody |
| Hostnames per environment group | 100 | per environment group | 400 at environment-group update |
What drives per-tool size
Per-tool size is composed almost entirely of the tool's
inputSchema, which is derived from the OpenAPI specification's
parameters and requestBody for the operation.
Three properties matter most:
- Number of parameters. Each parameter entry contributes roughly
100 bytes to the tool's size in the
tools/listresponse. - Number of request-body properties. Each request-body property
contributes roughly 100 bytes. Operations with a request body (typically
POSTandPUT) are therefore substantially larger than operations without one (typicallyGETandDELETE). - Description length. Operation descriptions are copied almost verbatim into the tool, so a longer description directly increases the tool's size.
Response schemas do not count against the size budget. Only
parameters and requestBody reach the MCP
configuration. Sizing capacity by OpenAPI file size alone therefore tends
to overestimate cost, because most real OpenAPI specifications include
response-schema definitions that do not affect tool size.
Estimate capacity for your specification
The most reliable way to estimate tool capacity for your OpenAPI specifications is to measure a representative subset:
- Deploy an MCP Discovery Proxy that references a small representative subset of the tools you plan to publish (for example, 50 to 100 tools that reflect the mix of parameter counts, request-body sizes, and description lengths in your full specification).
- Call
tools/listagainst the deployed proxy and record the response size in bytes and the number of tools returned. - Divide response size by tool count to get the average size per tool for your specification.
- Divide the applicable
tools/listresponse size limit (10 MiB by default) by that average to estimate the maximum number of tools that fit on one hostname for a specification of this shape.
Increasing capacity
Two mechanisms increase tool capacity beyond the defaults:
- Shard tools across hostnames. The
tools/listresponse cap is per hostname. Splitting tools across multiple hostnames within the same environment group multiplies per-hostname headroom (subject to the 100-hostnames-per-environment-group limit). Sharding does not raise the per-proxy bundle limit; the 50 MiB bundle cap continues to apply across all hostnames on a single MCP Discovery Proxy. - Raise the
tools/listresponse size limit. The default limit is 10 MiB per hostname. You can raise it up to 30 MiB. At a minimum, this involves settingenvs.components.runtime.resources.limits.memory,envs.components.runtime.resources.requests.memory, andenvs.components.runtime.cwcAppend.bin_setenv_max_memin youroverrides.yaml, then runninghelm upgradeon theapigee-orgchart. See Configure large message payload support in Apigee hybrid for the complete procedure, including per-environment versus whole-installation variants, Message Processor heap sizing guidance, and fulloverrides.yamlexamples. Raising the response limit does not affect the 50 MiB MCP proxy bundle size limit; if your capacity is constrained by that limit instead, this change won't help.
Security
Trust boundary
The MCP data plane runs inside your own Kubernetes cluster. Google has no runtime access to the data plane. The Apigee control plane serves you MCP configuration derived from your OpenAPI Specification; it does not observe MCP request traffic. Configuration data at rest is stored in an Apigee-managed Cloud Storage bucket scoped to your Apigee tenant project, fetched by the MCP sidecar using its ambient Google Cloud service account.
The Apigee operator provisions an MCP-scoped Kubernetes Role and
RoleBinding in your Apigee namespace (APIGEE_NAMESPACE)
for the MCP data plane ServiceAccount. The Role grants read-only access:
get,list,watchonservicesin the core API group.get,list,watchonapigeeroutesin theapigee.cloud.google.comAPI group.- In
1.17.4and later:get,list,watchonsecretsin the core API group. The MCP data plane uses this to read the client certificate and trust CA Secrets named byvirtualhosts[].mcpMtls, and to detect their rotation (see Configure mTLS between the MCP data plane and the ingress gateway). The grant is read-only but covers every Secret in the Apigee namespace: Kubernetes RBAC cannot restrictlistandwatchto named Secrets. It is present whether or not any environment group hasmcpMtlsconfigured.
The Role grants no write verbs and no access to ConfigMaps or pod status.
Your auditor can verify the exact rules directly from the cluster with:
APIGEE_ORG_CR=$(kubectl get apigeeorganization -n APIGEE_NAMESPACE \ -o jsonpath='{.items[0].metadata.name}') kubectl get role,rolebinding -n APIGEE_NAMESPACE \ --field-selector metadata.name=apigee-mcp-server-$APIGEE_ORG_CR -o yaml
The apigee-mcp-server-APIGEE_ORG_CR Role and RoleBinding are
the MCP-scoped RBAC resources; their names include the full name of your
ApigeeOrganization custom resource (which is derived from your Apigee
organization name and a short hash). They do not carry an
app=apigee-mcp-server label at the resource level (only the pods do),
so a label-based lookup returns no results. If the field-selector command above
returns nothing, list every MCP-related RBAC resource in the namespace with:
kubectl get role,rolebinding -n APIGEE_NAMESPACE | grep apigee-mcp-server
TLS between Message Processor and MCP data plane
Message Processor pods dial the MCP data plane at
https://mcp.apigee.internal/ or
https://ORG_NAME.mcp.apigee.internal/. These hostnames resolve to
the MCP Service ClusterIP through the injected hostAliases entry. The MCP
data plane container presents a TLS certificate signed by the Apigee-operator-provisioned
issuer (the ClusterIssuer named apigee-ca-issuer). The certificate's Subject
Alternative Names include both hostnames.
TLS between the MCP data plane and the ingress gateway
The MCP data plane forwards each tool call to the Apigee ingress gateway on port
443, using the environment group's host alias. By default this connection is
one-way TLS and the MCP data plane does not verify the ingress gateway's certificate. In
1.17.4 and later, you can require mutual authentication on this connection per
environment group; see Configure mTLS between the MCP data plane and
the ingress gateway.
Restrict inbound access to the MCP Service
In Apigee hybrid 1.17.0, the MCP data plane does not independently
authenticate its callers. It trusts that requests reaching it have already been
authenticated by an Apigee MCP proxy running in Message Processor. The only intended
caller of the MCP Service is Message Processor. Any other in-cluster workload that can
reach the MCP Service ClusterIP on TCP 443 can invoke MCP tools without an
authentication check.
Restrict inbound access to the MCP pods to Message Processor pods only, using your platform's cluster ingress policy engine (Kubernetes NetworkPolicy, Cilium, Calico, Istio AuthorizationPolicy, or equivalent). The restriction:
- Allows ingress to pods with label
app=apigee-mcp-serverin namespaceAPIGEE_NAMESPACEon TCP443from pods with labelapp=apigee-runtimein the same namespace only. - Denies all other ingress on TCP
443to pods with labelapp=apigee-mcp-server. - Denies all in-cluster ingress on TCP
15021to pods with labelapp=apigee-mcp-server. Port15021serves an unauthenticated plain-HTTP/healthz/readyendpoint used by kubelet for readiness probing; kubelet reaches it directly on the pod IP, so no other in-cluster workload should reach the MCP pods on15021.
Apply this restriction before you complete the MCP quickstart and deploy your first MCP Discovery Proxy in a non-development environment.
Configuration freshness contract
When the MCP sidecar completes a successful configuration pull, the MCP data plane
container loads the fetched bundle and continues serving it until the next successful
pull. If subsequent pulls fail
(Apigee control plane unreachable, Cloud Storage unreachable, IAM permission removed on the
watcher service account, or an error at any other stage of the pull pipeline), the
sidecar keeps serving the last-known-good bundle indefinitely. There is no built-in
staleness ceiling in 1.17.0: the pod stays Ready and MCP tool
traffic continues to be served against the stale bundle. The signal that configuration
has stopped refreshing is a sidecar log line at ERROR level that carries a
consecutive_failures counter (see
Troubleshoot
MCP deployments for the specific messages the sidecar emits per failure stage).
For regulated production environments, page on repeated increments of this
counter. A minimum viable alert is: page when any MCP sidecar container emits an
ERROR-level log line with consecutive_failures reaching a
threshold you set based on your staleness tolerance. Rising values indicate that the
sidecar has stopped refreshing configuration; the sidecar continues to serve the
last-successful bundle in the meantime.
If the sidecar has stopped refreshing configuration, investigate the failure mode from the sidecar logs; see Troubleshoot MCP deployments. Bouncing the MCP pods does not resolve the underlying fetch problem because newly created pods hit the same fetch path.
Outbound network requirements
The MCP sidecar (the configuration container inside each MCP pod) needs outbound
network access to the following endpoints on TCP 443. Pick the tab that
matches whether your Apigee organization uses data residency; the required endpoints
differ.
No data residency
| Endpoint | Used for |
|---|---|
apigee.googleapis.com |
Retrieve the current MCP configuration reference for your organization from the Apigee control plane on each configuration refresh. |
storage.googleapis.com |
Download your organization's MCP configuration from Google Cloud Storage. |
Data residency
If your Apigee organization uses data
residency, the MCP sidecar hits your regional Apigee control-plane endpoint (the
same endpoint your other Apigee hybrid components use, configured via the
contractProvider chart value in your overrides.yaml).
Replace CONTROL_PLANE_LOCATION with your organization's control-plane
location (for example, us, eu).
| Endpoint | Used for |
|---|---|
CONTROL_PLANE_LOCATION-apigee.googleapis.com |
Retrieve the current MCP configuration reference for your organization from your regional Apigee control-plane endpoint on each configuration refresh. |
storage.googleapis.com |
Download your organization's MCP configuration from Google Cloud Storage. The bucket is located in your organization's region; Cloud Storage routes to it automatically. |
In addition, the sidecar must be able to obtain Google Cloud access tokens for the ambient credentials the pod runs as (through Workload Identity or a file-based service account key). The specific token-exchange endpoints depend on your authentication path and are the same ones that other Apigee hybrid components already use in your cluster. If existing Apigee hybrid traffic to Google Cloud APIs succeeds from this namespace, the MCP sidecar's token exchange also succeeds.
Additionally, the sidecar needs in-cluster access to the Kubernetes API server (through the standard in-cluster service address) to publish its liveness and readiness state. This traffic never leaves your cluster.
Troubleshooting
For a full diagnostic checklist, see Troubleshoot MCP deployments, which includes a cluster-side diagnostic checklist for Apigee hybrid.
Common install failures
| Symptom | Cause and fix |
|---|---|
helm upgrade completes but no MCP resources appear. |
The organization chart was upgraded before the operator chart. Run
helm upgrade APIGEE_OPERATOR_RELEASE_NAME apigee-operator/
first, then re-run
helm upgrade APIGEE_ORG_RELEASE_NAME apigee-org/. |
MCP pods stuck in ContainerCreating or 1/2 Ready. |
Two common causes: the cert-manager Certificate for MCP has not yet
been issued, or the container image pull is failing. Run
kubectl describe pod on the affected pod for the exact reason. |
Sidecar (apigee-mcp-server-config) logs report
no MCP config from CP yet; skipping tick, pod stays Ready via seed
on every poll. |
Expected steady state when no MCP Discovery Proxy has been deployed for your
organization yet. The Apigee control plane returns an empty configuration reference
and the MCP data plane has only the Kubernetes readiness listener loaded on port
15021; the MCP request port 8443 has no listener yet, and
requests to https://mcp.apigee.internal/mcp receive a connection
refused. To transition into the serving state, follow the
MCP quickstart
to deploy an MCP Discovery Proxy to an environment in the environment group served
by this cluster. |
Sidecar logs report CP fetch failed with an embedded HTTP
403 or PermissionDenied. |
The Apigee watcher Google Cloud service account has lost the
roles/apigee.runtimeAgent role (which grants the
apigee.runtimeconfigs.get permission the sidecar needs) in your Apigee
tenant project. Base Apigee hybrid installation grants this role automatically; if
it has been removed by an IAM automation sweep, re-apply it on the
apigee-watcher Google Cloud service account. |
Sidecar logs report CP fetch failed with
context deadline exceeded, DNS errors, or TLS errors. |
The sidecar cannot reach apigee.googleapis.com or
storage.googleapis.com from inside your cluster. Verify egress against
the three endpoints listed in
Outbound network requirements above. |
Message Processor pods did not restart after helm upgrade. |
Verify the hostAliases entry is present on every MP pod:
kubectl get pods -n APIGEE_NAMESPACE -l app=apigee-runtime -o
jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.spec.hostAliases}{"\n"}{end}'.
If any pod shows empty, force a fresh render by deleting the pod
(kubectl delete pod -n APIGEE_NAMESPACE -l app=apigee-runtime).
The ApigeeDeployment controller will recreate it from the current
spec, which includes the hostAliases entry. Do not use
kubectl rollout restart deploy; it does not apply to
ApigeeDeployment. |
MP pod logs show TLS handshake errors dialing
https://mcp.apigee.internal/ or
https://ORG_NAME.mcp.apigee.internal/ after MCP tool traffic
starts flowing through the
quickstart. |
The MCP data plane container is serving a certificate whose Subject Alternative Names
(SANs) do not include the hostname the MP dialed. Verify the certificate:
kubectl get cert -n APIGEE_NAMESPACE | grep apigee-mcp-server, then
kubectl get cert -n APIGEE_NAMESPACE CERT_NAME -o yaml. The
certificate’s dnsNames must include both
mcp.apigee.internal and the lowercased
ORG_NAME.mcp.apigee.internal. If they do not, delete the MCP
Certificate resource and let cert-manager reissue. |
What's next
- Follow the MCP quickstart to deploy your first MCP Discovery Proxy and call an MCP tool from an MCP client.
- Learn how to manage MCP tool access with API products.
- Learn how to monitor and analyze MCP traffic.
- Consult the MCP troubleshooting guide for advanced diagnostics.