GitNexus/gitnexus/test/fixtures/lang-resolution/python-mcp-tools/server.py

11 lines
238 B
Python

from mcp import tool
@mcp.tool()
def get_weather(city: str) -> str:
"""Get weather for a city."""
return f"Weather in {city}: sunny"
@mcp.tool()
def search_docs(query: str) -> list:
"""Search documentation."""
return []