diff --git a/agentregistry/gke/agent-deployment.yaml b/agentregistry/gke/agent-deployment.yaml new file mode 100644 index 00000000000..aa337ea8362 --- /dev/null +++ b/agentregistry/gke/agent-deployment.yaml @@ -0,0 +1,67 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# [START agentregistry_gke_agent_manifest] +apiVersion: apps/v1 +kind: Deployment +metadata: + name: my-agent + labels: + # GKE takes this label and registers the agent to Agent Registry + registry.gke.io/functional-type: "AGENT" + annotations: + # A2A protocol metadata annotation for automated Agent Card discovery + a2a-protocol.org/agent-card: | + card: + endpoint: /.well-known/agent-card.json + protocol: HTTP + port: 8080 +spec: + selector: + matchLabels: + app: my-agent + template: + metadata: + labels: + app: my-agent + annotations: + # Agent Identity annotation for identity and access management + iam.gke.io/spiffe-identity-type: agent-identity + spec: + containers: + - name: server + image: gcr.io/PROJECT_ID/my-agent:1.0.0 + ports: + - containerPort: 8080 + env: + - name: PORT + value: "8080" +--- +# Kubernetes Service for in-cluster network routing to the agent pod +apiVersion: v1 +kind: Service +metadata: + name: my-agent-service + labels: + app: my-agent +spec: + type: ClusterIP + ports: + - port: 8080 + targetPort: 8080 + protocol: TCP + name: http + selector: + app: my-agent +# [END agentregistry_gke_agent_manifest] diff --git a/agentregistry/gke/mcp-server-deployment.yaml b/agentregistry/gke/mcp-server-deployment.yaml new file mode 100644 index 00000000000..0384ff7e9ca --- /dev/null +++ b/agentregistry/gke/mcp-server-deployment.yaml @@ -0,0 +1,47 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# [START agentregistry_gke_mcp_server_manifest] +apiVersion: apps/v1 +kind: Deployment +metadata: + name: my-mcp-server + labels: + # GKE takes this label and registers the deployment as an MCP server + registry.gke.io/functional-type: "MCP_SERVER" + annotations: + # 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" +spec: + selector: + matchLabels: + app: my-mcp-server + template: + metadata: + labels: + app: my-mcp-server + annotations: + # Agent Identity annotation for identity and access management + iam.gke.io/spiffe-identity-type: agent-identity + spec: + containers: + - name: server + image: gcr.io/PROJECT_ID/my-mcp-server:1.0.0 +# [END agentregistry_gke_mcp_server_manifest] diff --git a/agentregistry/specs/agent-card.json b/agentregistry/specs/agent-card.json new file mode 100644 index 00000000000..84a74e731ad --- /dev/null +++ b/agentregistry/specs/agent-card.json @@ -0,0 +1,32 @@ +{ + "supportedInterfaces": [ + { + "url": "https://example.com/mock-travel-agent", + "protocolBinding": "HTTP+JSON", + "protocolVersion": "1.0.0" + } + ], + "name": "mock-travel-agent", + "description": "A mock agent that plans travel itineraries.", + "version": "1.0.0", + "capabilities": { + "streaming": false, + "pushNotifications": false + }, + "defaultInputModes": ["text/plain"], + "defaultOutputModes": ["text/plain"], + "skills": [ + { + "id": "BookFlight", + "name": "BookFlight", + "description": "Books a flight to a destination.", + "tags": ["travel", "booking"] + }, + { + "id": "SearchHotels", + "name": "SearchHotels", + "description": "Searches for hotels in a destination city.", + "tags": ["travel", "accommodation"] + } + ] +} diff --git a/agentregistry/specs/toolspec.json b/agentregistry/specs/toolspec.json new file mode 100644 index 00000000000..9142286454b --- /dev/null +++ b/agentregistry/specs/toolspec.json @@ -0,0 +1,23 @@ +{ + "tools": [ + { + "name": "get_customer_info", + "description": "Retrieves customer details from the database.", + "annotations": { + "title": "Get Customer Info", + "readOnlyHint": true, + "idempotentHint": true + } + }, + { + "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 + } + } + ] +}