list_services
Retrieve a list of managed services (PostgreSQL, Kafka, ClickHouse, Valkey, OpenSearch) and connectors available in a specified Aiven project to identify available resources for building solutions.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_name | Yes |
Implementation Reference
- mcp_aiven/mcp_server.py:38-42 (handler)The handler function for the 'list_services' tool. It takes a project_name, fetches services using aiven_client.get_services(), and returns a list of service names.def list_services(project_name): logger.info("Listing all services in a project: %s", project_name) results = aiven_client.get_services(project=project_name) logger.info(f"Found {len(results)} services") return [s["service_name"] for s in results]
- mcp_aiven/mcp_server.py:37-37 (registration)Registers the list_services tool with the FastMCP server using the @mcp.tool() decorator.@mcp.tool()