Repository navigation
Conversation
|
Here is the summary of changes. You are about to add 2 region tags.
This comment is generated by snippet-bot.
|
There was a problem hiding this comment.
Code Review
This pull request introduces GKE deployment manifests for an agent and an MCP server, along with JSON specifications for an agent card and tools. Feedback on the MCP server deployment highlights two issues: the URL annotation uses HTTPS which complicates deployment by requiring TLS configuration, and the manifest lacks a Kubernetes Service and container port definitions, preventing in-cluster traffic routing.
| # Endpoint URLs where the GKE controller can access this MCP server | ||
| modelcontextprotocol.info/urls: | | ||
| - https://my-mcp-server.default.svc.cluster.local/mcp | ||
| # Defines structural capabilities for the MCP server card | ||
| modelcontextprotocol.info/capabilities: | | ||
| card: | ||
| endpoint: "/mcp" | ||
| protocol: "HTTP" |
There was a problem hiding this comment.
The URL in modelcontextprotocol.info/urls uses https://, which typically requires configuring TLS certificates inside the container. For a basic GKE sample, using http:// is more standard and simplifies deployment. Consider changing the scheme to http.
# Endpoint URLs where the GKE controller can access this MCP server
modelcontextprotocol.info/urls: |
- http://my-mcp-server.default.svc.cluster.local/mcp
# Defines structural capabilities for the MCP server card
modelcontextprotocol.info/capabilities: |
card:
endpoint: "/mcp"
protocol: "HTTP"There was a problem hiding this comment.
Not applying this change: this manifest is extracted from the published Agent Registry GKE documentation (register-mcp-servers.md), which uses https://my-mcp-server.default.svc.cluster.local/mcp alongside iam.gke.io/spiffe-identity-type: agent-identity. Keeping https:// preserves parity with the documented example.
There was a problem hiding this comment.
+1 from the TW side — keeping exact parity with register-mcp-servers.md makes sense for this migration PR.
| spec: | ||
| containers: | ||
| - name: server | ||
| image: gcr.io/PROJECT_ID/my-mcp-server:1.0.0 | ||
| # [END agentregistry_gke_mcp_server_manifest] |
There was a problem hiding this comment.
The deployment defines an in-cluster URL my-mcp-server.default.svc.cluster.local but does not define a corresponding Kubernetes Service or expose any container ports. Without a Service, the GKE controller and other in-cluster clients will not be able to route traffic to the MCP server pod. Consider exposing port 8080 on the container and adding a Service named my-mcp-server to route traffic.
spec:
containers:
- name: server
image: gcr.io/PROJECT_ID/my-mcp-server:1.0.0
ports:
- containerPort: 8080
---
# Kubernetes Service for in-cluster network routing to the MCP server pod
apiVersion: v1
kind: Service
metadata:
name: my-mcp-server
labels:
app: my-mcp-server
spec:
type: ClusterIP
ports:
- port: 80
targetPort: 8080
protocol: TCP
name: http
selector:
app: my-mcp-server
# [END agentregistry_gke_mcp_server_manifest]There was a problem hiding this comment.
Not applying this change: this sample intentionally mirrors the focused GKE deployment manifest for an MCP server snippet in register-mcp-servers.md, which illustrates only the Deployment labels and modelcontextprotocol.info/* / iam.gke.io/* annotations required for Agent Registry registration (unlike agent-deployment.yaml, which explicitly includes a Service). Keeping it scoped to the Deployment avoids diverging from the doc walkthrough.
evelyn-goo
left a comment
There was a problem hiding this comment.
One blocking TW item: agentregistry/specs/toolspec.json is missing the _meta / com.googleapis.iap/PolicyHints block that register-mcp-servers.md explains right below the snippet. Once that's added back, this looks good to go
| "name": "create_support_ticket", | ||
| "description": "Creates a new support ticket in the issue tracking system.", | ||
| "annotations": { | ||
| "title": "Create Support Ticket", | ||
| "destructiveHint": true, | ||
| "idempotentHint": false, | ||
| "openWorldHint": true | ||
| } | ||
| } |
There was a problem hiding this comment.
issue (blocking): This is missing the _meta / com.googleapis.iap/PolicyHints block on create_support_ticket that's currently in register-mcp-servers.md:
"_meta": {
"com.googleapis.iap/PolicyHints": {
"authorization": {
"toolDisabled": false,
"hitlMode": "HITL_MODE_ALWAYS"
}
}
}
The two paragraphs immediately below the snippet in register-mcp-servers.md explicitly walk through _meta, com.googleapis.iap/PolicyHints, toolDisabled, and hitlMode, so we need to keep that block in toolspec.json to preserve parity with the doc.
| spec: | ||
| containers: | ||
| - name: server | ||
| image: gcr.io/PROJECT_ID/my-agent:1.0.0 |
There was a problem hiding this comment.
nit (non-blocking): Both GKE manifests match our current docs accurately! Just flagging for a future follow-up (not blocking this migration): gcr.io/PROJECT_ID/... uses legacy Container Registry, so we should consider migrating both the docs and these manifests to Artifact Registry (REGION-docker.pkg.dev/...) in a separate pass.
| # Endpoint URLs where the GKE controller can access this MCP server | ||
| modelcontextprotocol.info/urls: | | ||
| - https://my-mcp-server.default.svc.cluster.local/mcp | ||
| # Defines structural capabilities for the MCP server card | ||
| modelcontextprotocol.info/capabilities: | | ||
| card: | ||
| endpoint: "/mcp" | ||
| protocol: "HTTP" |
There was a problem hiding this comment.
+1 from the TW side — keeping exact parity with register-mcp-servers.md makes sense for this migration PR.
Description
Adds the Agent Registry GKE deployment manifests and JSON specification samples under
agentregistry/gke/andagentregistry/specs/(PR C of migrating inline Agent Registry documentation snippets to GitHub; internal tracking:b/581932768).Files added
agentregistry/gke/agent-deployment.yaml(agentregistry_gke_agent_manifest)agentregistry/gke/mcp-server-deployment.yaml(agentregistry_gke_mcp_server_manifest)agentregistry/specs/agent-card.json(whole-file include, no region tags)agentregistry/specs/toolspec.json(whole-file include, no region tags)Checklist
Testing
Compliance & Style
Post-Approval Actions