[{'Text': '"""Server information and capability tools."""\nfrom importlib.metadata import version\nfrom typing import Optional\nfrom mcp.server.fastmcp import Context\nfrom mcp.server.session import ServerSession\nfrom point_topic_mcp.core.utils import dynamic_docstring, get_mcp_status_info\nfrom point_topic_mcp.auth.decorators import public\n\n\ndef _get_version() -> str:\n    """Get package version from installed metadata."""\n    try:\n        return version("point-topic-mcp")\n    except Exception:\n        return "ERROR: Not possible to see version"\n\n\n \n# @public\n# @dynamic_docstring([("{VERSION}", _get_version)])\n# def get_server_info() -> dict:\n#     """\n#     Get server information. Available to all users.\n\n#     Welcome message and authentication status for the Point Topic MCP server.\n#     Shows whether you have full access or are on the free/public version.\n\n#     QUICK INFO - NO NEED TO CALL TOOL\n    \n#     Version: {VERSION}\n\n#     Returns:\n#         Server information including name, version, and auth status\n#     """\n#     admin_key_set = bool(os.getenv("ADMIN_API_KEY"))\n\n#     return {\n#         "name": "Point Topic MCP",\n#         "description": "UK broadband data analysis server",\n#         "version": _get_version(),\n#         "authenticated": admin_key_set,\n#         "message": (\n#             "Welcome to Point Topic MCP! "\n#             "You are on the free version with limited access. "\n#             "Contact Point Topic for full API access."\n#             if not admin_key_set\n#             else "Welcome to Point Topic MCP! You have full access."\n#         ),\n#     }\n\n\n@public\n@dynamic_docstring([("{STATUS}", get_mcp_status_info), ("{VERSION}", _get_version)])\ndef get_mcp_server_capabilities(\n    ctx: Optional[Context[ServerSession, None]] = None,\n) -> None:\n    """MCP Server Configuration Status and Available Tools\n\n    Shows which tools are available and which need environment variables.\n    Use this to debug missing tools or check your MCP server configuration.\n\n    Current Status: {STATUS}\n\n    Current package version: {VERSION}\n\n    Environment Variables Guide:\n    • SNOWFLAKE_USER + SNOWFLAKE_PASSWORD → Database tools (execute_query, assemble_dataset_context, etc.)\n    • GITHUB_TOKEN → GitHub organization tools (search_issues_across_org, create_issue, etc.)\n    • PT_RESEARCH_DATABASE_URI → GBS tools (list_operators, get_gbs_status, add_statistic, create_source)\n    • CHART_API_KEY → Authenticated chart generation (generate_authenticated_chart_url)\n    • Public chart tools available without credentials (get_point_topic_public_chart_catalog)\n\n    Configure missing environment variables in your MCP client to unlock additional tools.\n\n    Nop need to run this, all the status info is presented live here in the tool descriptions\n\n    Returns: None\n    """\n    return None\n'}]