list_projects
Retrieve a list of projects associated with the Aiven MCP Server to manage and interact with Aiven services like PostgreSQL, Kafka, and OpenSearch for building full-stack solutions.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- mcp_aiven/mcp_server.py:30-34 (handler)The handler function implementing the list_projects tool. It logs the action, retrieves projects using aiven_client.get_projects(), logs the count, and returns a list of project names.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)The @mcp.tool() decorator registers the list_projects function as a tool in the FastMCP server.@mcp.tool()