google-agents-cli-publish

Registers deployed agents with Gemini Enterprise and manages Agent Registry entries via agents-cli.

Updated Dec 9, 2025
One-click install
npx skills add https://github.com/Aki2022/skills --skill google-agents-cli-publish-aki2022
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: google-agents-cli-publish
Source: https://github.com/Aki2022/skills/tree/main/google-agents-cli-publish
Command: npx skills add https://github.com/Aki2022/skills --skill google-agents-cli-publish-aki2022

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? After deploying an agent, teams still need to register it with Gemini Enterprise or the Agent Registry so it can be discovered and invoked, and doing this manually involves choosing the right registration mode, wiring flags, and debugging IAM or SDK issues. ## Core Features & Use Cases - ADK and A2A registration modes: Register ADK agents on Agent Runtime natively via :streamQuery, or register any framework's agent over A2A using its agent card URL on Cloud Run or GKE. - Programmatic and interactive usage: Run non-interactively in CI/CD with flags or environment variables, or use --interactive for guided prompts with auto-detection from deployment_metadata.json. - Agent Registry fleet management: List, update, and delete registered agents and register external MCP servers with gcloud agent-registry commands. - Use Case: You deployed an ADK agent to Agent Runtime and want it visible in your Gemini Enterprise app; run agents-cli publish gemini-enterprise with just the app ID and let auto-detection handle the rest. ## Quick Start Ask the assistant to publish your deployed ADK agent to Gemini Enterprise using agents-cli with your Gemini Enterprise app ID.

Frequently Asked Questions about google-agents-cli-publish

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I publish an ADK agent to Gemini Enterprise?

Run agents-cli publish gemini-enterprise with --gemini-enterprise-app-id pointing to your app. If deployment_metadata.json exists from agents-cli deploy, the agent runtime ID and ADK registration type are auto-detected, so no other flags are needed.

What is the difference between ADK and A2A registration in agents-cli?

ADK registration invokes the agent natively on Agent Runtime via :streamQuery and is the default for ADK agents there. A2A registration uses the agent card URL and is the only option on Cloud Run and GKE, and the right mode for non-ADK frameworks on any target.

Can I use agents-cli publish in a CI/CD pipeline?

Yes, the command is non-interactive by default. Pass all required values via flags or environment variables such as AGENT_RUNTIME_ID and GEMINI_ENTERPRISE_APP_ID, making it safe for automated pipelines.

Why do I get Session not found after registering on Agent Runtime?

This is caused by google-cloud-aiplatform versions at or below 1.128.0. Upgrade the SDK, redeploy the agent, and re-register; interactive mode can detect the outdated version from uv.lock and offer to upgrade.

How do I register an MCP server in Agent Registry?

Use gcloud agent-registry services create with --mcp-server-spec-type=tool-spec and a toolspec.json file containing the server's tools/list response (max 10 KB), plus an interfaces flag with the server URL and protocol binding.

What happens if I re-publish the same agent to Gemini Enterprise?

Registration is idempotent. Re-running the publish command updates the existing registration in place instead of creating a duplicate entry.