google-agents-cli-publish
하는 일
이 스킬은 배포된 에이전트를 Gemini 앱과 Agent Registry에 등록하는 과정을 안내합니다. 에이전트가 Gemini에 나타나 사용될 수 있기를 원하는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓배포된 에이전트를 Gemini에 등록하고 싶을 때.
- ✓Agent Registry에서 에이전트를 목록으로 보고, 수정하거나 삭제하고 싶을 때.
- ✓에이전트를 위한 MCP 서버를 등록하고 싶을 때.
스킬 링크
https://github.com/google/agents-cli/blob/main/skills/google-agents-cli-publish/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“배포된 ADK 에이전트를 Gemini에 등록해서 사람들이 Gemini 앱에서 쓸 수 있게 해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
스킬은 에이전트가 배포되어 접근 가능한지 확인한 뒤, agents 명령줄 도구로 등록합니다. Agent Runtime의 경우 배포 세부 정보 파일을 읽어 에이전트를 자동으로 찾습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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
자주 묻는 질문
등록 전에 무엇이 참이어야 하나요?
에이전트가 이미 배포되어 접근 가능해야 하며, Cloud 콘솔에 Gemini 앱이 있어야 합니다.
라이브 음성 에이전트와 함께 작동하나요?
아니요, 라이브 또는 음성 에이전트는 지원되지 않으므로 텍스트 기반 에이전트가 필요합니다.
Cloud Run에 추가 권한이 필요한가요?
네, Discovery Engine 서비스 계정이 Cloud Run 서비스를 호출할 권한이 있어야 합니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 6.3k
- 순위
- #14372
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 10. 27.
댓글
- …
이 저장소의 다른 스킬
google-agents-cli-adk-code
6.3k에이전트가 Google ADK로 AI 에이전트 코드를 작성하도록 돕습니다. 도구, 콜백, 상태, 오케스트레이션 패턴을 포함합니다.
google-agents-cli-deploy
6.3k에이전트를 Google Cloud의 Agent Runtime, Cloud Run, GKE에 배포하고 시크릿, CI/CD, 문제 해결을 돕습니다.
google-agents-cli-eval
6.3k에이전트가 테스트 데이터셋과 점수 매기기로 AI 에이전트를 평가하고, 실패한 답변의 원인을 찾도록 돕습니다.
google-agents-cli-observability
6.3k에이전트가 배포된 AI 에이전트의 추적, 로깅, 모니터링을 Google Cloud에 설정해 동작을 확인하도록 돕습니다.
비슷한 스킬
add-model-provider
394k에이전트가 안전한 설정 명령으로 새 AI 모델 제공자를 OpenClaw에 연결하고, API 키를 평문으로 두지 않으며, 실시간 테스트를 실행하도록 돕습니다.
acp-router
394k에이전트가 OpenClaw를 통해 Claude Code나 Cursor 같은 코딩 도우미에 작업을 전달해, 작업이 그 도구에서 실행되도록 돕습니다.
browser-automation
394k에이전트가 로그인, 탭, 페이지 응답이 멈췄을 때의 복구를 포함해 웹 페이지를 단계별로 조작하도록 가르칩니다.