49b9bb6724
Deploy Docs / deploy-docs (push) Failing after 1s
Conformance Tests / client-conformance (push) Failing after 3s
Conformance Tests / server-conformance (push) Failing after 1s
GitHub Actions Security Analysis / zizmor (push) Failing after 1s
CI / checks (push) Failing after 59m20s
CI / all-green (push) Waiting to run
10 lines
264 B
Python
10 lines
264 B
Python
from mcp.server import MCPServer
|
|
|
|
mcp = MCPServer("Weather")
|
|
|
|
|
|
@mcp.tool(structured_output=False)
|
|
def weather_report(city: str) -> str:
|
|
"""A human-readable weather report for a city."""
|
|
return f"{city}: 17 degrees, overcast, light rain easing by evening."
|