list_deployment_manager_deployments
Retrieve a list of Deployment Manager deployments in a specified GCP project to manage and monitor resource configurations effectively.
Instructions
List Deployment Manager deployments in a GCP project.
Args:
project_id: The ID of the GCP project to list deployments for
Returns:
List of Deployment Manager deployments in the specified GCP project
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes |
Implementation Reference
- The handler function for the 'list_deployment_manager_deployments' tool, decorated with @mcp.tool() inside the register_tools function. Includes type hints and docstring serving as schema, and the execution logic (currently a stub).@mcp.tool() def list_deployment_manager_deployments(project_id: str) -> str: """ List Deployment Manager deployments in a GCP project. Args: project_id: The ID of the GCP project to list deployments for Returns: List of Deployment Manager deployments in the specified GCP project """ # TODO: Implement this function return f"Not yet implemented: listing deployments for project {project_id}"
- src/gcp_mcp/server.py:60-60 (registration)The call to register the deployment tools module in the main server.py, which triggers the registration of the 'list_deployment_manager_deployments' tool.deployment_tools.register_tools(mcp)
- src/gcp_mcp/server.py:15-15 (registration)The import of the deployment tools module in server.py, prerequisite for registration.from .gcp_modules.deployment import tools as deployment_tools