Skip to main content
Glama
nanabrownsnr

Twynity OAuth 2.0 MCP Template

by nanabrownsnr

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PUBLIC_URLNoPublic URL for the serverhttp://localhost:8000
ENVIRONMENTNoEnvironment (development, staging, production)development
LICENSE_KEYNoLicense key for usage tracking
MONGODB_URINoMongoDB connection string for storing encrypted connectionsmongodb://localhost:27017
OAUTH_SCOPESYesThe scopes to request
DATABASE_NAMENoMongoDB database nametwynity_mcp
ENCRYPTION_KEYYesFernet encryption key for securing credentials (generate with uv run python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())")
OAUTH_PROVIDERYesThe {provider} path segment (e.g. clickup)
ALLOWED_ORIGINSNoAllowed origins for CORS*
OAUTH_CLIENT_IDYesYour OAuth app client ID
OAUTH_TOKEN_URLYesYour provider's token endpoint
OAUTH_REVOKE_URLYesYour provider's revoke endpoint
OAUTH_REDIRECT_URIYesThe redirect URI Twynity provides. It must exactly match what you registered with the OAuth provider, or the flow fails silently. This is not your callback endpoint — Twynity calls your token-callback route after the provider bounces here.
ACCOUNT_SERVICE_URLNoTwynity account service URLhttps://accounts.twynity.com
OAUTH_AUTHORIZE_URLYesYour provider's authorization endpoint
OAUTH_CLIENT_SECRETYesYour OAuth app client secret
USAGE_REPORT_ENDPOINTNoUsage reporting endpointhttps://usage.twynity.com/api/v1/report
LICENSE_SERVER_BASE_URLNoLicense server base URLhttps://license.twynity.com
OAUTH_SESSION_TTL_SECONDSYesHow long an unexchanged state stays valid
LICENSE_SERVER_JWKS_ENDPOINTNoJWKS endpoint for license verification/oauth2/keys
ACCOUNT_SERVICE_JWKS_ENDPOINTNoJWKS endpoint for verifying JWTs/oauth2/keys
ACCOUNT_SERVICE_JWKS_CACHE_TTLNoCache TTL for JWKS300
LICENSE_SERVER_ACTIVATION_ENDPOINTNoLicense activation endpoint/activate

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources