We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/annyzhou/gcal-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
gcal_auth.py•704 B
# Copyright (c) 2025 Dedalus Labs, Inc. and its contributors
# SPDX-License-Identifier: MIT
"""OAuth helper CLI for gcal-mcp.
This module runs the Google OAuth installed-app flow (desktop) to obtain and
store tokens locally, and prints a short success message.
Usage:
uv run python -m src.gcal_auth
"""
from __future__ import annotations
from dotenv import load_dotenv
from .gcal_oauth import ensure_gcal_access_token
def main() -> None:
load_dotenv()
token = ensure_gcal_access_token(interactive=True)
# Avoid printing secrets; just confirm.
print(f"OK: obtained access token (len={len(token)}) and stored refresh token if available.")
if __name__ == "__main__":
main()