update_custom_applications
Update custom application configurations on the MCP Server for Coroot to group instances by container name patterns, enabling improved observability and monitoring of application performance.
Instructions
Update custom applications configuration.
Updates the list of custom application definitions. Custom applications allow grouping instances by container name patterns.
Args: project_id: Project ID applications: New custom applications list with instance patterns
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| applications | Yes | ||
| project_id | Yes |
Implementation Reference
- src/mcp_coroot/server.py:1014-1030 (handler)MCP tool handler for 'update_custom_applications'. Decorated with @mcp.tool(), calls the implementation wrapper which delegates to CorootClient.@mcp.tool() async def update_custom_applications( project_id: str, applications: dict[str, Any], ) -> dict[str, Any]: """Update custom applications configuration. Updates the list of custom application definitions. Custom applications allow grouping instances by container name patterns. Args: project_id: Project ID applications: New custom applications list with instance patterns """ return await update_custom_applications_impl( # type: ignore[no-any-return] project_id, applications )
- src/mcp_coroot/server.py:1000-1011 (helper)Implementation wrapper that calls CorootClient.update_custom_applications and formats the response with success/error handling.@handle_errors async def update_custom_applications_impl( project_id: str, applications: dict[str, Any], ) -> dict[str, Any]: """Update custom applications.""" result = await get_client().update_custom_applications(project_id, applications) return { "success": True, "message": "Custom applications updated successfully", "applications": result, }
- src/mcp_coroot/client.py:808-824 (helper)CorootClient method that performs the actual API POST request to update custom applications configuration.async def update_custom_applications( self, project_id: str, applications: dict[str, Any] ) -> dict[str, Any]: """Update custom applications configuration. Args: project_id: Project ID. applications: New custom applications configuration. Returns: Updated applications. """ response = await self._request( "POST", f"/api/project/{project_id}/custom_applications", json=applications ) data: dict[str, Any] = response.json() return data