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