Skip to main content
Glama

mcp-run-python

Official
by pydantic
weather_service.py531 B
from __future__ import annotations as _annotations from datetime import date from typing import Any class WeatherService: def get_historic_weather(self, location: str, forecast_date: date) -> str: return 'Sunny with a chance of rain' def get_forecast(self, location: str, forecast_date: date) -> str: return 'Rainy with a chance of sun' async def __aenter__(self) -> WeatherService: return self async def __aexit__(self, exc_type: Any, exc_val: Any, exc_tb: Any) -> None: pass

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pydantic/pydantic-ai'

If you have feedback or need assistance with the MCP directory API, please join our Discord server