Twynity OAuth 2.0 MCP Template
by nanabrownsnr
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PUBLIC_URL | No | Public URL for the server | http://localhost:8000 |
| ENVIRONMENT | No | Environment (development, staging, production) | development |
| LICENSE_KEY | No | License key for usage tracking | |
| MONGODB_URI | No | MongoDB connection string for storing encrypted connections | mongodb://localhost:27017 |
| OAUTH_SCOPES | Yes | The scopes to request | |
| DATABASE_NAME | No | MongoDB database name | twynity_mcp |
| ENCRYPTION_KEY | Yes | Fernet encryption key for securing credentials (generate with uv run python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())") | |
| OAUTH_PROVIDER | Yes | The {provider} path segment (e.g. clickup) | |
| ALLOWED_ORIGINS | No | Allowed origins for CORS | * |
| OAUTH_CLIENT_ID | Yes | Your OAuth app client ID | |
| OAUTH_TOKEN_URL | Yes | Your provider's token endpoint | |
| OAUTH_REVOKE_URL | Yes | Your provider's revoke endpoint | |
| OAUTH_REDIRECT_URI | Yes | The 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_URL | No | Twynity account service URL | https://accounts.twynity.com |
| OAUTH_AUTHORIZE_URL | Yes | Your provider's authorization endpoint | |
| OAUTH_CLIENT_SECRET | Yes | Your OAuth app client secret | |
| USAGE_REPORT_ENDPOINT | No | Usage reporting endpoint | https://usage.twynity.com/api/v1/report |
| LICENSE_SERVER_BASE_URL | No | License server base URL | https://license.twynity.com |
| OAUTH_SESSION_TTL_SECONDS | Yes | How long an unexchanged state stays valid | |
| LICENSE_SERVER_JWKS_ENDPOINT | No | JWKS endpoint for license verification | /oauth2/keys |
| ACCOUNT_SERVICE_JWKS_ENDPOINT | No | JWKS endpoint for verifying JWTs | /oauth2/keys |
| ACCOUNT_SERVICE_JWKS_CACHE_TTL | No | Cache TTL for JWKS | 300 |
| LICENSE_SERVER_ACTIVATION_ENDPOINT | No | License 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
| Name | Description |
|---|---|
No tools | |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo issues