google-agents-cli-publish
Qué hace
Esta skill guía el registro de un agente desplegado en la aplicación Gemini y en el Agent Registry. Está pensada para desarrolladores que quieren que su agente aparezca y pueda usarse en Gemini.
Cuándo usarla
- ✓Cuando tu agente está desplegado y quieres registrarlo en Gemini.
- ✓Cuando quieres listar, actualizar o eliminar agentes en el Agent Registry.
- ✓Cuando quieres registrar un servidor MCP para un agente.
Link de la skill
https://github.com/google/agents-cli/blob/main/skills/google-agents-cli-publish/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Registra mi agente de ADK desplegado en Gemini para que la gente pueda usarlo desde la aplicación Gemini.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La skill comprueba que el agente está desplegado y es accesible, y después usa la herramienta de línea de comandos agents para registrarlo. En el caso de Agent Runtime, lee el archivo de detalles del despliegue para encontrar el agente automáticamente.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Gemini Registration
Requires: A deployed agent. For Agent Runtime in Gemini platform,
deployment_metadata.json(created byagents-cli deploy) enables auto-detection. For Cloud Run or GKE, provide the agent card URL and flags directly.
Prerequisites
- Agent must be deployed — the agent must be running and reachable
- Gemini app must exist — Create one in the Google Cloud console before registering
deployment_metadata.json(Agent Runtime only) — Created automatically byagents-cli deploy; contains the Agent Runtime ID, deployment target, the A2A flag, and the agent directory- Text-based agent — Live/voice (bidi) agents are not supported by the Gemini app, which has no
/run_livetransport. Register a text-based agent instead.
Required Permissions for A2A on Cloud Run
roles/run.servicesInvokergranted to the Discovery Engine service account (service-<PROJECT_NUMBER>@gcp-sa-discoveryengine.iam.gserviceaccount.com) on the Cloud Run service.
Registration Modes
A2A Registration
Every scaffolded agent serves the Agent-to-Agent protocol. A2A is the default — and only — registration type on Cloud Run and GKE (no reasoning engine to invoke natively). It also works on Agent Runtime via --registration-type a2a. For an ADK agent there the CLI warns against it, because the Gemini app can invoke Agent Runtime natively via :streamQuery — prefer ADK registration in that case. For an agent built on another framework there is no ADK app to invoke natively, so A2A is the right mode on every target and the warning is expected. Pass the agent card URL and the command fetches the card and registers it; display name and description default to the card's name/description.
# A2A on Cloud Run / GKE. The card path depends on the project's language:
# Python -> /a2a/{app_name}/.well-known/agent-card.json
# Go -> /.well-known/agent-card.json
agents-cli publish gemini \
--agent-card-url https://my-service-abc123.us-east1.run.app/a2a/app/.well-known/agent-card.json \
--gemini-app-id projects/123456/locations/global/collections/default_collection/engines/my-app
Pass --display-name / --description to override the card defaults. On Agent Runtime, the card URL auto-builds from deployment_metadata.json if you omit --agent-card-url.
ADK Registration (default on Agent Runtime)
ADK projects only. The agent must be deployed to Agent Runtime as an ADK app, since registration invokes it through
:streamQuery. An agent on another framework registers over A2A, so deploy it to Cloud Run or GKE and publish from there.
This is the default and recommended registration for ADK agents on Agent Runtime: the Gemini app invokes the agent natively via :streamQuery on its reasoning engine resource, authenticating end-to-end. Under the hood, :streamQuery dispatches to the AdkApp's streaming_agent_run_with_events method — when debugging an ADK invocation, search the runtime's reasoning_engine_stderr logs for that method name to trace the failure. It's also the path to use when the agent needs an OAuth authorization (--authorization-id). The agent is registered directly via its reasoning engine resource name; no agent card URL is needed.
agents-cli publish gemini \
--registration-type adk \
--agent-runtime-id projects/123456/locations/us-east1/reasoningEngines/789 \
--gemini-app-id projects/123456/locations/global/collections/default_collection/engines/my-app \
--display-name "My Agent" \
--description "Handles customer queries" \
--tool-description "Answers questions about products"
Programmatic Mode (CI/CD)
The command is non-interactive by default — pass all required values via flags or environment variables. This makes it safe for CI/CD pipelines.
Via flags
agents-cli publish gemini \
--agent-runtime-id "$AGENT_RUNTIME_ID" \
--gemini-app-id "$GEMINI_APP_ID" \
--display-name "Production Agent" \
--registration-type adk
Via environment variables
Most flags have an env var alternative (--metadata-file, --interactive, and --list do not):
export AGENT_RUNTIME_ID="projects/123456/locations/us-east1/reasoningEngines/789"
export GEMINI_APP_ID="projects/123456/locations/global/collections/default_collection/engines/my-app"
export GEMINI_DISPLAY_NAME="Production Agent"
export GEMINI_DESCRIPTION="Handles customer queries"
agents-cli pub
Preguntas frecuentes
¿Qué debe cumplirse antes de registrar?
El agente debe estar desplegado y ser accesible, y la aplicación Gemini debe existir en la consola de Cloud.
¿Funciona con agentes de voz en directo?
No. La descripción indica que no se admiten agentes en directo ni de voz, así que hace falta un agente basado en texto.
¿Necesita permisos adicionales en Cloud Run?
Sí, la cuenta de servicio de Discovery Engine necesita permiso para invocar el servicio de Cloud Run.
Detalles
Descripción original del autor
This skill should be used when the user wants to "publish an agent", "publish my ADK agent", "register an agent with Gemini", "publish to Gemini" (formerly Gemini Enterprise), or needs guidance on the agents-cli publish gemini command. Also use when the user wants to "manage agents in Agent Registry", "list/update/delete registered agents", or "register an MCP server". Covers ADK vs A2A registration modes, programmatic and interactive usage, flag reference, auto-detection from deployment metadata, Agent Registry fleet management, and troubleshooting. Part of the agents-cli skills suite. Do NOT
repo: google/agents-cli
Popularidad
- Estrellas en GitHub
- 6,3 mil
- Posición en el ranking
- #14372
- Licencia
- Apache-2.0
- Actualizada
- 27/10/2026
Comentarios
- …
Más skills de este repositorio
google-agents-cli-adk-code
6,3 milAyuda a tu agente a escribir código para agentes de IA con Google ADK, incluidas herramientas, callbacks, estado y patrones de orquestación.
google-agents-cli-deploy
6,3 milAyuda a tu agente a desplegar un agente de IA en Google Cloud, con Agent Runtime, Cloud Run, GKE, secretos, CI/CD y resolución de problemas.
google-agents-cli-eval
6,3 milAyuda a tu agente a evaluar un agente de IA con conjuntos de pruebas y puntuación, y a descubrir por qué fallan algunas respuestas.
google-agents-cli-observability
6,3 milAyuda a tu agente a configurar el seguimiento, los registros y la monitorización de un agente de IA desplegado en Google Cloud, para ver lo que hace.
Skills parecidas
add-model-provider
394 milPermite que tu agente conecte un nuevo proveedor de modelos de IA a OpenClaw con comandos de configuración seguros, mantenga las claves API fuera del texto plano y haga una prueba en vivo.
acp-router
394 milAyuda a tu agente a enviar una tarea a un asistente de programación como Claude Code o Cursor a través de OpenClaw, para que el trabajo se ejecute en esa herramienta.
browser-automation
394 milEnseña a tu agente a controlar páginas web paso a paso, incluidos los inicios de sesión, las pestañas y la recuperación cuando una página deja de responder.