get_server_info
Retrieve Poetry MCP Server metadata and operational status to monitor system health and access server configuration details.
Instructions
Get server information and status.
Returns: Dictionary with server metadata
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/poetry_mcp/server.py:287-303 (handler)The main handler function for the 'get_server_info' tool, decorated with @mcp.tool() which registers it in the MCP server. It loads the config and returns a dictionary with server name, version, vault path, catalog loaded status, and total number of poems.@mcp.tool() async def get_server_info() -> dict: """ Get server information and status. Returns: Dictionary with server metadata """ config = load_config() return { "name": "poetry-mcp", "version": "0.1.0", "vault_path": str(config.vault.path), "catalog_loaded": catalog is not None, "total_poems": len(catalog.index.all_poems) if catalog else 0 }