"""{{ display_name }} MCP server — generated by mcpify. Do not hand-edit."""

from __future__ import annotations

import json

from ..core.config import load_config
from ..data.store import cached_store_connection, close_cached_connections
from ..tools.get_tool import get_operation


async def run(operation_id: str) -> None:
    try:
        config = load_config()
        conn = await cached_store_connection(config.api_version)
        result = await get_operation(conn, operation_id)
        print(json.dumps(result, indent=2))
    finally:
        await close_cached_connections()
