list_cloud_build_triggers
List Cloud Build triggers in a specified GCP project to manage and monitor automated build configurations efficiently.
Instructions
List Cloud Build triggers in a GCP project.
Args:
project_id: The ID of the GCP project to list build triggers for
Returns:
List of Cloud Build triggers in the specified GCP project
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes |
Implementation Reference
- The handler function implementing the 'list_cloud_build_triggers' tool logic (currently a TODO placeholder with input validation via type hints and docstring serving as schema). The @mcp.tool() decorator also handles registration.@mcp.tool() def list_cloud_build_triggers(project_id: str) -> str: """ List Cloud Build triggers in a GCP project. Args: project_id: The ID of the GCP project to list build triggers for Returns: List of Cloud Build triggers in the specified GCP project """ # TODO: Implement this function return f"Not yet implemented: listing Cloud Build triggers for project {project_id}"
- src/gcp_mcp/server.py:60-60 (registration)Top-level registration call for the deployment tools module, which registers the 'list_cloud_build_triggers' tool.deployment_tools.register_tools(mcp)
- src/gcp_mcp/server.py:15-15 (registration)Import of the deployment tools module containing the 'list_cloud_build_triggers' implementation and registration.from .gcp_modules.deployment import tools as deployment_tools
- src/gcp_mcp/gcp_modules/deployment/tools.py:6-7 (registration)The module-level register_tools function that defines and registers multiple tools, including 'list_cloud_build_triggers' via nested @mcp.tool() decorators.def register_tools(mcp): """Register all deployment tools with the MCP server."""