> ## Documentation Index
> Fetch the complete documentation index at: https://docs.themcp.company/llms.txt
> Use this file to discover all available pages before exploring further.

# Configuration

> Environment variables, endpoints, and custom hosting

## Environment variables

The libraries do not read environment variables directly — all configuration is passed via `init()` 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:

```
https://mcp-tap.vercel.app/api/v1/events
```

Override with the `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 `TapEvent` objects
