agent-bom discover gcp
Discover AI Agents and MCP assets on GCP and generate an inventory
Install & Use
Copy this prompt and send it to your AI assistant (Claude / Cursor / TRAE / Codex / WorkBuddy etc.) to auto-install:
Help me install this AI Skill: agent-bom discover gcp. It is used for: Discover AI Agents and MCP assets on GCP and generate an inventory Full Skill content: https://321skill.com/skills/agent-bom-discover-gcp-x-6/raw/index.md Read that page and install it.
The prompt includes a link to the full Skill content. You can also view the full content.
This Skill addresses the challenge of systematically inventorying AI Agent and MCP-related assets in GCP environments. In practice, teams often rely on manual logs or scattered gcloud commands to catalog resources like Vertex AI, Cloud Run, Cloud Functions, and GKE, which is prone to omissions and fails to produce a unified, exchangeable inventory. This tool automatically discovers these assets and outputs a standardized agent-bom JSON, providing a structured data foundation for subsequent scanning, auditing, or migration.
Usage is straightforward: simply install the agent-bom library in an environment configured with GCP Application Default Credentials (ADC) or Workload Identity. Then, run a single command specifying the project ID and region to trigger the auto-discovery process. The tool calls GCP read-only APIs to collect resource information and writes the results to your specified JSON file. The entire process requires no long-term credentials, ensuring high security.
It is well-suited for teams or individuals needing unified management of AI infrastructure on GCP, especially those who have deployed multiple Vertex AI models, Cloud Run services, or GKE clusters but lack a global asset view. For scenarios requiring regular generation of asset inventories for compliance audits or cost analysis, this Skill significantly boosts efficiency.
We recommend integrating this tool into CI/CD pipelines or regular inspection tasks to automatically generate asset snapshots and track changes. Note that it primarily relies on GCP read-only permissions; ensure the service account or user has the necessary permissions like resourcemanager.projects.get, aiplatform.models.list, etc. Also, securely store the output JSON file to avoid exposing project metadata.
Key Features
Unlike manually querying items one by one with `gcloud` commands, it discovers multiple asset types—such as Vertex AI, Cloud Run, Cloud Functions, and GKE—in a single run and merges them into a standard agent-bom JSON. All discovery operations are performed locally without passing long-term credentials to third-party services.
Limitations
Requires Python 3.11+ and the `agent-bom` library must be pre-installed (`pip install agent-bom`). It only supports the GCP platform and is not applicable to AWS or Azure.
FAQ
How do I install agent-bom?
Run `pip install agent-bom` to install it, or clone the GitHub repository and install it locally.
What GCP permissions are required?
Project-level read-only permissions are needed, including `resourcemanager.projects.get`, `aiplatform.models.list`, `run.services.list`, etc. It is recommended to use a service account bound to the `roles/viewer` role.
Installation guide for AI assistants
If your AI coding assistant (Claude Code, Cursor, TRAE etc.) can see this page, send it this message to auto-install:
Visit https://321skill.com/skills/agent-bom-discover-gcp-x-6/raw/index.md to read the original Skill definition (Markdown format) for agent-bom discover gcp, and install it according to the instructions.
Raw Markdown URL for AI: /skills/agent-bom-discover-gcp-x-6/raw/index.md