Authentication

Gigma uses two authentication methods:

1. Google OAuth (Web UI)

The browser editor uses Google Sign-In. After authentication:

2. MCP Token (AI Agents)

Each user gets a unique MCP token embedded in their MCP URL:

https://gigma-mcp-server-854058119143.us-central1.run.app/mcp/t/<TOKEN>/

Token Security

API Endpoints

Web API (requires JWT)

Method Path Description
POST /api/auth/google Exchange Google credential for JWT
GET /api/projects List user's projects
POST /api/projects Create project
GET /api/projects/:id Get project with elements
PUT /api/projects/:id Save project
DELETE /api/projects/:id Delete project
GET /api/mcp-link Get user's MCP URL
POST /api/projects/:id/export Export via MCP server

MCP Endpoint (requires token in URL)

Method Path Description
ALL /mcp/t/:token MCP Streamable HTTP endpoint
GET /health Health check (no auth)