Loading...
Loading...
Manages Google Cloud Agent Registry (agentregistry.googleapis.com) resources using gcloud CLI and Kubernetes manifests, including agents, MCP servers, endpoints, services, bindings, AI applications, skills and skill revisions, resource-level IAM policies, Cloud Run and GKE automatic workload registration, Cloud Resource Manager management boundaries, 5-endpoint Quick Add for Agent Gateway, and Python ADK integration. Use when registering, discovering, searching, filtering, or governing agents, MCP servers, endpoints, skills, AI applications, or management boundaries in Google Cloud Agent Registry. Don't use for the preview AI Platform Skill Registry Python scripts (use agent-platform-skill-registry), deploying raw Vertex AI Agent Engine code (use agent-platform-deploy), or runtime trace debugging (use agent-platform-troubleshooting).
npx skill4agent add google/skills agent-platform-agent-registrygcloud agent-registryagentsmcp-serversservicesendpointsbindingsskillsfindingspublishersai-applicationsoperationsgcloud beta run--functional-type--identity-typegcloud resource-managerboundary-configscapability-configsboundariestags bindingsgoogle-adkgcloudgcloud config get-value project 2>/dev/null
gcloud config get-value compute/region 2>/dev/nullSESSION_PROJECTSESSION_LOCATIONgclouddeveloperknowledge.md.txtlistdescribesearchget-iam-policycreatedeleteupdatedeployset-iam-policyadd-iam-policy-bindingremove-iam-policy-bindinggcloudbetagcloudgcloud agent-registry skillsgcloudhttps://docs.cloud.google.com/sdk/docs/install-sdk.md.txt.md.txthttps://cloud.google.com/pricinggcloud config set compute/region us-central1https://docs.cloud.google.com/agent-registry/locations.md.txthttps://cloud.google.com/about/locationsglobaluseugcloud auth listgcloud auth logingcloud auth application-default logingcloud auth logingcloud auth application-default loginGOOGLE_APPLICATION_CREDENTIALS# Check active authentication status first (read-only)
gcloud auth list
# If unauthenticated, ask the user to run these interactively in their terminal:
# gcloud auth login
# gcloud auth application-default login
gcloud config set project PROJECT_ID
gcloud config set compute/region us-central1
gcloud services enable agentregistry.googleapis.com| Role | Access Level |
|---|---|
| Full administrative access across all Agent Registry resources, including bindings, skill scan findings, and resource-level IAM policies ( |
| Register and update agents, MCP servers, endpoints, services, skills, skill revisions, and AI Applications (excludes bindings, scan findings, and IAM policy mutations) |
| Read-only access ( |
| Agent Registry User — least-privilege GA role granting read-only viewer access across Agent Registry plus permissions to create, update, and delete standalone skills, skill revisions, and scanning settings without edit access to agents, MCP servers, or endpoints |
| Deploy or update Cloud Run services and jobs with |
| Create and update |
| Read |
| Bind or unbind tag values ( |
| Required on a candidate Bring-Your-Own project to associate it as a Management Project |
services creategcloud agent-registry services createServiceAgentMcpServerEndpointAgentMcpServerEndpointagentregistry-{ID}registryResourceservices describe'PASTE_MCP_SPEC_JSON_HERE'# Register an MCP Server (mutating — ask for approval first)
gcloud agent-registry services create my-mcp-service \
--location=us-central1 \
--display-name="My MCP Server" \
--description="Connects to an external MCP server" \
--mcp-server-spec-type=tool-spec \
--mcp-server-spec-content='PASTE_MCP_SPEC_JSON_HERE' \
--interfaces='[{"protocolBinding": "jsonrpc", "url": "https://mcp.example.com/v1"}]'
# List Regional or Global MCP Servers (read-only — execute immediately)
gcloud agent-registry mcp-servers list --location=us-central1
gcloud agent-registry mcp-servers list --location=globalagent_card.jsonagent_card.json'PASTE_AGENT_CARD_JSON_HERE'# Register a Standard Agent (no-spec)
gcloud agent-registry services create my-custom-agent \
--location=us-central1 \
--display-name="My Custom Agent" \
--description="Custom HTTP JSON agent" \
--agent-spec-type=no-spec \
--interfaces='[{"protocolBinding": "http-json", "url": "https://agent.example.com/v1"}]'
# Register an A2A Agent (a2a-agent-card)
gcloud agent-registry services create my-a2a-agent \
--location=us-central1 \
--display-name="My A2A Agent" \
--description="Sample A2A Agent" \
--agent-spec-type=a2a-agent-card \
--agent-spec-content='PASTE_AGENT_CARD_JSON_HERE'
# List Regional or Global Agents
gcloud agent-registry agents list --location=us-central1
gcloud agent-registry agents list --location=global# Register a single Endpoint, list/describe/update/delete Services, and inspect Operations
gcloud agent-registry services create gemini-models --location=us-central1 \
--display-name="Vertex AI Model Garden" --description="List of all models in Vertex AI Model Garden" \
--endpoint-spec-type=no-spec \
--interfaces='[{"protocolBinding": "jsonrpc", "url": "https://us-central1-aiplatform.googleapis.com/v1beta1/publishers/*/models"}]'
gcloud agent-registry endpoints list --location=us-central1
gcloud agent-registry services list --location=us-central1
gcloud agent-registry services describe gemini-models --location=us-central1
gcloud agent-registry services update gemini-models --display-name="Model Garden on Vertex AI" --location=us-central1
gcloud agent-registry services delete gemini-models --location=us-central1
gcloud agent-registry operations list --location=us-central1
gcloud agent-registry operations describe OPERATION_ID --location=us-central1https://${SERVICE_ID}.googleapis.comhttps://${SERVICE_ID}.mtls.googleapis.comhttps://${LOCATION}-${SERVICE_ID}.googleapis.com--location=globalhttps://${LOCATION}-${SERVICE_ID}.mtls.googleapis.com--location=globalhttps://${SERVICE_ID}.${LOCATION}.rep.googleapis.com--location=globalServicegcloud agent-registry services create4–63^[a-z][a-z0-9-]{2,61}[a-z0-9]$iamkmsrundnsService${SERVICE_ID}-api${SERVICE_ID}--location=globalBaseBase mTLSroles/iap.egressorEndpointendpoints/agentregistry-{UUID}registryResourceservices describeService# Option A: Bundled Quick Add helper script (handles 3-letter APIs, --location=global, and --dry-run)
./scripts/quick-add-gcp-service.sh --service=aiplatform --location=us-central1 --project=PROJECT_ID
# Option B: Single composite gcloud command (all 5 variants for a regional location)
SERVICE_ID="aiplatform" && SERVICE_NAME="aiplatform" && LOCATION="us-central1" && PROJECT_ID="PROJECT_ID"
gcloud agent-registry services create "${SERVICE_NAME}" --project="${PROJECT_ID}" --location="${LOCATION}" \
--display-name="${SERVICE_ID}" --description="Google Cloud ${SERVICE_ID} API endpoints" --endpoint-spec-type=no-spec \
--interfaces="protocolBinding=jsonrpc,url=https://${SERVICE_ID}.googleapis.com" \
--interfaces="protocolBinding=jsonrpc,url=https://${SERVICE_ID}.mtls.googleapis.com" \
--interfaces="protocolBinding=jsonrpc,url=https://${LOCATION}-${SERVICE_ID}.googleapis.com" \
--interfaces="protocolBinding=jsonrpc,url=https://${LOCATION}-${SERVICE_ID}.mtls.googleapis.com" \
--interfaces="protocolBinding=jsonrpc,url=https://${SERVICE_ID}.${LOCATION}.rep.googleapis.com"Deploymentmetadata.name| Component Type | | | |
|---|---|---|---|
| GKE Agent | | | |
| GKE MCP Server | | | |
registry.gke.io/functional-typeapphub.cloud.google.com/functional-typeiam.gke.io/spiffe-identity-type: "agent-identity"--dry-run./scripts/annotate_gke.py /path/to/folder_or_file.yaml --type AGENT
./scripts/annotate_gke.py /path/to/folder_or_file.yaml --type MCP_SERVERDeploymentServiceDeploymentapiVersion: apps/v1
kind: Deployment
metadata:
name: my-agent
labels:
registry.gke.io/functional-type: "AGENT"
annotations:
apphub.cloud.google.com/functional-type: "AGENT"
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:
iam.gke.io/spiffe-identity-type: agent-identity
spec:
containers:
- name: server
image: us-central1-docker.pkg.dev/PROJECT_ID/my-repo/my-agent:1.0.0
ports:
- containerPort: 8080
---
apiVersion: v1
kind: Service
metadata:
name: my-agent-service
spec:
type: ClusterIP
ports:
- port: 8080
targetPort: 8080
protocol: TCP
name: http
selector:
app: my-agentapiVersion: apps/v1
kind: Deployment
metadata:
name: my-mcp-server
labels:
registry.gke.io/functional-type: "MCP_SERVER"
annotations:
apphub.cloud.google.com/functional-type: "MCP_SERVER"
modelcontextprotocol.info/urls: |
- https://my-mcp-server.default.svc.cluster.local/mcp
modelcontextprotocol.info/capabilities: |
card:
endpoint: "/mcp"
protocol: "HTTP"
spec:
selector:
matchLabels:
app: my-mcp-server
template:
metadata:
labels:
app: my-mcp-server
annotations:
iam.gke.io/spiffe-identity-type: agent-identity
spec:
containers:
- name: server
image: us-central1-docker.pkg.dev/PROJECT_ID/my-repo/my-mcp-server:1.0.0--functional-typegcloud beta run[!WARNING] Critical Cloud Run Guardrails:
- Immutability: Once
or--functional-typeis set on a Cloud Run service or job, it is immutable and cannot be changed or cleared.--identity-type Requires--functional-type=agent: Always include--identity-type=agent-identitywhenever--identity-type=agent-identityis used (certificates are provisioned by default; opt out with--functional-type=agent).--no-identity-certificate- Updating Existing Services (
Guardrail): Transitioning an existing service to--no-trafficassigns a new SPIFFE Agent Identity principal (--identity-type=agent-identity) that does not inherit the previous service account's IAM permissions. Recommendprincipal://agents.global.org-ORGANIZATION_ID.system.id.goog/resources/run/projects/PROJECT_NUMBER/locations/REGION/services/SERVICE_NAMEon--no-trafficto stage IAM bindings before shifting traffic.gcloud beta run services update- Cloud Run Jobs Cannot Be MCP Servers: Only Cloud Run services support
; Cloud Run jobs only support--functional-type=mcp-server.--functional-type=agent
# Deploy or update a Cloud Run service as an AI Agent or MCP Server
gcloud beta run deploy SERVICE_NAME --image=IMAGE_URL --region=us-central1 \
--functional-type=agent --identity-type=agent-identity
gcloud beta run services update SERVICE_NAME --region=us-central1 \
--functional-type=agent --identity-type=agent-identity --no-traffic
gcloud beta run deploy SERVICE_NAME --image=IMAGE_URL --region=us-central1 \
--functional-type=mcp-server --identity-type=IDENTITY_TYPE
gcloud beta run services update SERVICE_NAME --region=us-central1 --functional-type=mcp-server
# Create or update a Cloud Run Job as an AI Agent
gcloud beta run jobs create JOB_NAME --image=IMAGE_URL --region=us-central1 \
--functional-type=agent --identity-type=agent-identity
gcloud beta run jobs update JOB_NAME --region=us-central1 \
--functional-type=agent --identity-type=agent-identity
# Inspect Agent Identity or delete Cloud Run workloads
gcloud beta run revisions describe REVISION_NAME --region=us-central1
gcloud beta run jobs executions describe EXECUTION_NAME --region=us-central1
gcloud run services delete SERVICE_NAME --region=us-central1
gcloud run jobs delete JOB_NAME --region=us-central1gcloud agent-registry bindings create BINDING_NAME --location=us-central1 \
--display-name="My Custom Binding" --source-identifier="SOURCE_ID" --target-identifier="TARGET_ID"
gcloud agent-registry bindings create BINDING_NAME --location=us-central1 \
--display-name="Auth Provider Binding" --source-identifier="SOURCE_ID" \
--auth-provider="projects/PROJECT_ID/locations/REGION/connectors/AUTH_PROVIDER_ID"
gcloud agent-registry bindings list --location=us-central1
gcloud agent-registry bindings describe BINDING_NAME --location=us-central1
gcloud agent-registry bindings update BINDING_NAME --display-name="New Display Name" --location=us-central1
gcloud agent-registry bindings delete BINDING_NAME --location=us-central1gcloud agent-registry skills[!IMPORTANT] Skills Guardrails (,--locationPrefix &private-):--target-state
- Supported Locations: Skills only work in
,"global", or"us"multi-regions. If a user asks for any single region (e.g."eu"), do not pass that region tous-central1. Explain that Skills are only supported ingcloud,global, orus, preview the command using a concrete supported multi-region (e.g.eu,--location=us, or--location=eu), and ask them to confirm which multi-region to use.--location=global- Automatic
Prefix: Runningprivate-automatically prependsgcloud agent-registry skills create my-skill, creatingprivate-. Subsequentskills/private-my-skill,describe,update,delete, andrevisionscommands must pass*-iam-policy(passingprivate-my-skillfails withmy-skill).NOT_FOUND- Target State & Scanning:
sets the desired lifecycle state on creation (--target-state=active|disabled|draftrequires an initial revision viaactiveor--payload;--gcs-source-urianddeprecatedare also valid ondecommissioned). Under the defaultupdatescanning policy,enabled-blockingenters--target-state=active(DRAFT) until the background security scan passes with no findings.STATE_DRAFT
# List, create (local ZIP or GCS URI), describe, update, and delete Skills
gcloud agent-registry skills list --location=us
gcloud agent-registry skills create my-skill --location=us \
--display-name="My Custom Skill" --description="Skill description" --type=simple --target-state=active --payload=/path/to/archive.zip
gcloud agent-registry skills create my-skill --location=us \
--display-name="My Custom Skill" --target-state=disabled --gcs-source-uri=gs://my-bucket/skill.zip
gcloud agent-registry skills describe private-my-skill --location=us
gcloud agent-registry skills update private-my-skill --location=us --display-name="Updated Skill Name" --target-state=active
gcloud agent-registry skills delete private-my-skill --location=us
# Manage Skill Revisions and Resource-Level IAM Policies (using private-my-skill)
gcloud agent-registry skills revisions create REVISION_ID --skill=private-my-skill --location=us --payload=/path/to/archive.zip
gcloud agent-registry skills revisions list --skill=private-my-skill --location=us
gcloud agent-registry skills revisions describe REVISION_ID --skill=private-my-skill --location=us
gcloud agent-registry skills revisions download REVISION_ID --skill=private-my-skill --location=us --destination=./skill-payload.zip
gcloud agent-registry skills revisions delete REVISION_ID --skill=private-my-skill --location=us
gcloud agent-registry skills get-iam-policy private-my-skill --location=us
gcloud agent-registry skills set-iam-policy private-my-skill policy.json --location=us
gcloud agent-registry skills add-iam-policy-binding private-my-skill --location=us \
--member='user:test-user@example.com' --role='roles/agentregistry.viewer'
gcloud agent-registry skills remove-iam-policy-binding private-my-skill --location=us \
--member='user:test-user@example.com' --role='roles/agentregistry.viewer'ai-applicationsprojects/{project}/locations/{location}/aiApplications/{ai_application}default# List, filter, describe, and search AI Applications
gcloud agent-registry ai-applications list --location=us-central1
gcloud agent-registry ai-applications list --location=us-central1 \
--filter="attributes.environment.type=production AND attributes.criticality.type=high"
gcloud agent-registry ai-applications describe my-app --location=us-central1
gcloud agent-registry ai-applications describe default --location=us-central1
gcloud agent-registry ai-applications search --location=us-central1 --search-string="displayName:Support*"
# Create, update, and delete an AI Application
gcloud agent-registry ai-applications create my-app --location=us-central1 \
--display-name="Customer Support App" --description="AI Application orchestrating customer support agents" \
--environment-type=production --criticality-type=high \
--business-owners=email=biz-owner@example.com --developer-owners=email=dev-owner@example.com --operator-owners=email=ops-owner@example.com
gcloud agent-registry ai-applications update my-app --location=us-central1 \
--display-name="Updated Support App" --environment-type=staging --criticality-type=medium
gcloud agent-registry ai-applications delete my-app --location=us-central1 --force
# Inspect & search subresources scoped to an AI Application (agents, mcp-servers, endpoints)
gcloud agent-registry ai-applications agents list --ai-application=my-app --location=us-central1
gcloud agent-registry ai-applications agents describe AGENT_ID --ai-application=my-app --location=us-central1
gcloud agent-registry ai-applications agents search --ai-application=my-app --location=us-central1 --search-string="displayName:Assistant*"
gcloud agent-registry ai-applications mcp-servers list --ai-application=my-app --location=us-central1
gcloud agent-registry ai-applications endpoints list --ai-application=my-app --location=us-central1
# Manage Resource-Level IAM Policies on an AI Application
gcloud agent-registry ai-applications get-iam-policy my-app --location=us-central1
gcloud agent-registry ai-applications set-iam-policy my-app policy.json --location=us-central1
gcloud agent-registry ai-applications add-iam-policy-binding my-app --location=us-central1 \
--member='group:support-team@example.com' --role='roles/agentregistry.viewer'
gcloud agent-registry ai-applications remove-iam-policy-binding my-app --location=us-central1 \
--member='group:support-team@example.com' --role='roles/agentregistry.viewer'gcloud resource-managerboundary-configscapability-configsboundariestags bindingsprojects/<PROJECT_NUMBER>--management-project=projects/<PROJECT_NUMBER>--parent=//cloudresourcemanager.googleapis.com/projects/<PROJECT_NUMBER>gcloud projects describe PROJECT_ID --format="value(projectNumber)"capability-configs create--types=agent-managementBoundaryConfigdevprodboundary-configs update --tag-key=...CapabilityConfigBoundarydevproddevprodFAILED_PRECONDITIONcreatetags bindings deletetags bindings createisManagementProject=falsegcloud resource-manager capability-configs update CAPABILITY_CONFIG_ID --folder=FOLDER_ID --clear-boundaries
gcloud resource-manager boundaries delete BOUNDARY_ID --folder=FOLDER_ID
gcloud resource-manager capability-configs delete CAPABILITY_CONFIG_ID --folder=FOLDER_IDlist --filteragentIdmcpServerIdagentIdurn:agent:projects-{project-number}:projects:{project-number}:locations:{location}:{platform-segments}mcpServerIdurn:mcp:projects-{project-number}:projects:{project-number}:locations:{location}:{platform-segments}aiplatform:reasoningEngines:{id}container:clusters:{cluster}:k8s:namespaces:{ns}:apps:deployments:{deploy}run:services:{svc}run:jobs:{job}reasoningEngineattributes."agentregistry.googleapis.com/system/RuntimeReference".uriattributes."agentregistry.googleapis.com/system/RuntimeIdentity".principalmcp-servers listtools.name# Filter agents by runtime (Vertex AI Reasoning Engine) or identity principal
gcloud agent-registry agents list --location=us-central1 \
--filter="attributes.\"agentregistry.googleapis.com/system/RuntimeReference\".uri:reasoningEngine"
gcloud agent-registry agents list --location=us-central1 \
--filter="attributes.\"agentregistry.googleapis.com/system/RuntimeIdentity\".principal:service-123456789012"
# Filter by agentId / mcpServerId substring or MCP tool name
gcloud agent-registry agents list --location=us-central1 --filter="agentId:reason"
gcloud agent-registry mcp-servers list --location=us-central1 --filter="mcpServerId:run"
gcloud agent-registry mcp-servers list --location=us-central1 --filter="tools.name:search_documents"searchgcloud agent-registry agents search--search-string=:*agentIddisplayNameskills.nameskills.idskills.tagsskills.descriptionORAND*skills.description:gcloud agent-registry mcp-servers search--search-stringmcpServerIdnamedisplayNamegcloud agent-registry skills search--query--search-type=keyword--search-type=semanticglobaluseu# Search Agents
gcloud agent-registry agents search --location=us-central1 --search-string="agentId:\"urn:agent:projects-123456789012*\""
gcloud agent-registry agents search --location=us-central1 --search-string="displayName:MyAgent*"
gcloud agent-registry agents search --location=us-central1 --search-string="skills.name:translation"
gcloud agent-registry agents search --location=us-central1 --search-string="skills.id:translate-text"
gcloud agent-registry agents search --location=us-central1 --search-string="skills.tags:productivity"
gcloud agent-registry agents search --location=us-central1 --search-string="skills.description:database"
gcloud agent-registry agents search --location=us-central1 --search-string="analytics OR reporting"
# Search MCP Servers
gcloud agent-registry mcp-servers search --location=us-central1 --search-string="mcpServerId:\"urn:mcp:projects-123456789012*\""
gcloud agent-registry mcp-servers search --location=us-central1 --search-string="displayName:MyMcp*"
# Search Skills (Keyword and Semantic)
gcloud agent-registry skills search --location=us --query="sql" --search-type=keyword
gcloud agent-registry skills search --location=us --query="summarize support tickets" --search-type=semanticget_remote_a2a_agentget_mcp_toolsetgoogle-adk[a2a,agent-identity,mcp]developerknowledgegoogle_agent_registry_serviceSKILL.mdreferences/developerknowledgesearch_documentsget_documentsanswer_query.md.txthttps://docs.cloud.google.com/agent-registry/overview.md.txthttps://docs.cloud.google.com/agent-registry/automatic-registration.md.txthttps://docs.cloud.google.com/agent-registry/manual-registration.md.txthttps://docs.cloud.google.com/agent-registry/register-agents.md.txthttps://docs.cloud.google.com/agent-registry/register-mcp-servers.md.txthttps://docs.cloud.google.com/agent-registry/register-endpoints.md.txthttps://docs.cloud.google.com/agent-registry/register-skills.md.txthttps://docs.cloud.google.com/agent-registry/manage-skills.md.txthttps://docs.cloud.google.com/agent-registry/skills-architecture.md.txthttps://docs.cloud.google.com/agent-registry/scan-skills.md.txthttps://docs.cloud.google.com/agent-registry/boundaries-and-topology.md.txthttps://docs.cloud.google.com/agent-registry/access-control.md.txthttps://docs.cloud.google.com/agent-registry/roles-permissions.md.txthttps://docs.cloud.google.com/agent-registry/a2a-protocol.md.txthttps://docs.cloud.google.com/agent-registry/resolve-endpoints-and-build-orchestrators.md.txthttps://docs.cloud.google.com/agent-registry/search-agents-and-tools.md.txthttps://docs.cloud.google.com/agent-registry/identity-and-identifiers.md.txthttps://docs.cloud.google.com/agent-registry/troubleshooting.md.txthttps://docs.cloud.google.com/run/docs/ai/agent-platform-features.md.txtskillsbeta--location--regionglobalglobaluseu--interfaces--agent-spec-content--mcp-server-spec-contentagentregistry.googleapis.comrun.googleapis.comapphub.googleapis.com