Skip to main content
Glama

Google Calendar MCP Server

by amornpan
renew_token.py622 B
import asyncio import os from calendar_service import CalendarService async def main(): # กำหนด path ของ credentials และ token current_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) credentials_path = os.path.join(current_dir, "credentials", "credentials.json") token_path = os.path.join(current_dir, "credentials", "token.json") # สร้าง CalendarService instance service = CalendarService(credentials_path, token_path) # ต่ออายุ token await service.renew_token() if __name__ == "__main__": asyncio.run(main())

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/amornpan/py-mcp-gcalendar'

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