server_info
Check the current configuration of the Weather MCP Server to understand its operational settings and capabilities for weather data retrieval.
Instructions
Get information about the current Weather MCP server configuration.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- weather.py:295-314 (handler)The server_info tool handler function, registered via @mcp.tool() decorator. It provides server configuration details including name, logging setup, API endpoints, available tools list, and logging capabilities.@mcp.tool() async def server_info(ctx: Context[ServerSession, None]) -> dict: """Get information about the current Weather MCP server configuration.""" await ctx.info("Retrieving server information") logger.info("Server info requested") return { "server_name": ctx.fastmcp.name, "python_log_level": logging.getLevelName(logger.level), "log_file": "weather_mcp.log", "nws_api_base": NWS_API_BASE, "user_agent": USER_AGENT, "available_tools": ["get_alerts", "get_forecast", "server_info"], "logging_features": [ "Standard Python logging to file and console", "MCP Context logging (debug, info, warning, error)", "Progress reporting for long operations", "Structured exception handling" ] }