Environment variables
The libraries do not read environment variables directly — all configuration is passed viainit() or CLI flags. However, the IDE proxy (mcp-tap-proxy package) detects these for IDE identification:
| Variable | IDE |
|---|---|
CURSOR_TRACE_ID | Cursor |
WINDSURF_SESSION | Windsurf |
CLAUDE_DESKTOP | Claude Desktop |
Default endpoint
Both libraries default to:endpoint parameter in init() or --endpoint on the CLI.
Custom endpoint requirements
If self-hosting the backend, the endpoint must accept:- Method:
POST - Headers:
Content-Type: application/json,x-api-key: <key> - Body: JSON array of
TapEventobjects