File size: 701 Bytes
363cda9 3370983 363cda9 3370983 363cda9 3370983 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
from pathlib import Path
from pydantic import Field
from pydantic_settings import BaseSettings
BASE_PATH = Path(__file__).resolve().parents[4] # goes up to project root
class GoogleCalendarSettings(BaseSettings):
"""Settings for Gmail MCP server."""
creds: Path = Field(default_factory=lambda: BASE_PATH / "secrets/gcalendar-mcp/calendar_credentials.json")
token: Path = Field(default_factory=lambda: BASE_PATH / "secrets/gcalendar-mcp/calendar_token.json")
calendar_mcp_dir: Path = Field(default=BASE_PATH / "src/mcp_servers/calendar-mcp")
if __name__ == "__main__":
settings = GoogleCalendarSettings()
print(settings)
print(settings.creds)
print(settings.token) |