list_projects
Retrieve all Aiven projects to manage cloud database and streaming services for building full-stack solutions.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- mcp_aiven/mcp_server.py:29-34 (handler)The handler function for the 'list_projects' tool. It uses the aiven_client to fetch all projects and returns a list of project names.@mcp.tool() def list_projects(): logger.info("Listing all projects") results = aiven_client.get_projects() logger.info(f"Found {len(results)} projects") return [result['project_name'] for result in results]
- mcp_aiven/mcp_server.py:29-29 (registration)Registration of the 'list_projects' tool using the @mcp.tool() decorator on the FastMCP instance.@mcp.tool()