env.example•1.37 kB
PORT=3000
NODE_ENV=development
# Server metadata
MCP_TITLE="Spotify Music"
MCP_INSTRUCTIONS="Use these tools responsibly. Prefer minimal scopes and small page sizes."
MCP_VERSION=0.1.0
MCP_PROTOCOL_VERSION=2025-06-18
# Incoming auth headers to forward to context/tools (comma-separated)
MCP_ACCEPT_HEADERS="authorization,x-api-key,x-auth-token"
# Auth (optional; set AUTH_ENABLED=true to enable discovery + challenges)
AUTH_ENABLED=false
AUTH_RESOURCE_URI=
AUTH_DISCOVERY_URL=
OAUTH_CLIENT_ID=
OAUTH_CLIENT_SECRET=
OAUTH_SCOPES=""
OAUTH_AUTHORIZATION_URL=
OAUTH_TOKEN_URL=
OAUTH_REVOCATION_URL=
OAUTH_REDIRECT_URI=alice://oauth/callback
OAUTH_REDIRECT_ALLOWLIST=
# Spotify API (required for user auth and app credentials)
# Note: Local Authorization Server runs on PORT+1 (e.g., 3001). For the Spotify app, set the callback to:
# http://127.0.0.1:3001/spotify/callback
SPOTIFY_CLIENT_ID=
SPOTIFY_CLIENT_SECRET=
SPOTIFY_API_URL=https://api.spotify.com/v1
SPOTIFY_ACCOUNTS_URL=https://accounts.spotify.com
# Redirect URI used for Spotify Accounts flow callback handled by the local auth server
REDIRECT_URI=http://127.0.0.1:3001/spotify/callback
# Dev flags
SPOTIFY_MCP_INCLUDE_JSON_IN_CONTENT=false
# Optional persistence for RS→Spotify token mappings (development convenience)
RS_TOKENS_FILE=
# Limits
RPS_LIMIT=10
CONCURRENCY_LIMIT=5
# Logging
LOG_LEVEL=info