Skip to main content
Glama

ChatGPT App with OAuth2 + MCP + Privy

by Jahnik
.env.exampleโ€ข1.1 kB
# Privy Configuration # Get these from https://dashboard.privy.io/ VITE_PRIVY_APP_ID=your-privy-app-id-here PRIVY_APP_ID=your-privy-app-id-here PRIVY_APP_SECRET=your-privy-app-secret-here # Server Configuration SERVER_BASE_URL=https://your-ngrok-url MCP_SERVER_URL=https://your-ngrok-url PORT=3002 NODE_ENV=development # JWT Keys (RS256) # Generate with: # openssl genrsa -out private-key.pem 2048 # openssl rsa -in private-key.pem -pubout -out public-key.pem # cat private-key.pem | base64 # cat public-key.pem | base64 JWT_PRIVATE_KEY=your-base64-encoded-private-key JWT_PUBLIC_KEY=your-base64-encoded-public-key # Protocol API (Index backend) PROTOCOL_API_URL=https://dev.index.network/api # Timeouts PROTOCOL_API_TIMEOUT_MS=60000 PRIVY_TOKEN_EXCHANGE_TIMEOUT_MS=10000 # Content limits # EXTRACT_INTENT_SECTION_CHAR_LIMIT matches Protocol API's file/URL content truncation (5000 chars per file/URL) EXTRACT_INTENT_SECTION_CHAR_LIMIT=5000 # EXTRACT_INTENT_INSTRUCTION_CHAR_LIMIT has no hard limit in Protocol API, so using generous 10000 EXTRACT_INTENT_INSTRUCTION_CHAR_LIMIT=10000

Latest Blog Posts

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/Jahnik/mcp2'

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