Configuration
Required Environment Variables
Section titled “Required Environment Variables”| Variable | Description |
|---|---|
AUTOTASK_USERNAME |
Your API user email address |
AUTOTASK_SECRET |
Your API secret key |
AUTOTASK_INTEGRATION_CODE |
Your integration code from Autotask |
Optional Environment Variables
Section titled “Optional Environment Variables”| Variable | Default | Description |
|---|---|---|
AUTOTASK_API_URL |
Auto-detected | Override the Autotask API zone URL |
MCP_TRANSPORT |
stdio |
Transport type: stdio or http |
MCP_HTTP_PORT |
8080 |
Port for HTTP transport |
MCP_HTTP_HOST |
0.0.0.0 when CONDUIT_S2S_SECRET is set; 127.0.0.1 otherwise |
Bind address for HTTP. A configured secret honors this. MCP_ALLOW_INSECURE_DEV=1 forces 127.0.0.1. |
CONDUIT_S2S_SECRET |
— | Required to start HTTP. Signs X-Gateway-S2S. Empty and known placeholders are rejected. |
MCP_ALLOW_INSECURE_DEV |
unset | Set to exactly 1 for local HTTP without a usable secret. Skips X-Gateway-S2S and listens on 127.0.0.1 only. |
LOG_LEVEL |
info |
Logging level: error, warn, info, debug |
Impersonation (optional)
Section titled “Impersonation (optional)”By default every call runs as the API user. See Impersonation for details.
| Variable | Default | Description |
|---|---|---|
AUTOTASK_IMPERSONATION_RESOURCE_ID |
unset | Env mode only. Resource ID to impersonate on every call (strict: a refusal fails the call). |
AUTOTASK_IMPERSONATE_ACTING_USER |
unset (off) | Gateway mode. true/1 turns on acting-user impersonation for every tenant. Prefer the per-connection X-Autotask-Impersonate-Acting-User header. |
AUTOTASK_IMPERSONATION_CACHE_TTL_MS |
900000 |
How long an email-to-resource match is cached. |
AUTOTASK_IMPERSONATION_MISS_TTL_MS |
300000 |
How long a no-match result is cached. |
AUTOTASK_IMPERSONATION_REJECTED_TTL_MS |
21600000 |
How long acting-user impersonation stays off for a user and operation after a refusal. |
Using a .env File
Section titled “Using a .env File”You can place credentials in a .env file in the project root:
AUTOTASK_USERNAME=api-user@example.comAUTOTASK_SECRET=your-secret-key-hereAUTOTASK_INTEGRATION_CODE=your-integration-codeLOG_LEVEL=infoTransport Options
Section titled “Transport Options”stdio (Default)
Section titled “stdio (Default)”The default transport communicates over stdin/stdout. This is the standard mode for MCP clients like Claude Desktop.
HTTP (Streamable)
Section titled “HTTP (Streamable)”For remote or multi-client deployments, use the HTTP transport:
CONDUIT_S2S_SECRET="$CONDUIT_S2S_SECRET" MCP_TRANSPORT=http MCP_HTTP_PORT=8080 node dist/entry.js/mcp requires X-Gateway-S2S: t=<unix seconds>,v1=<hex hmac-sha256 of "t=<unix seconds>">, keyed with CONDUIT_S2S_SECRET. /health stays unauthenticated.
This starts an HTTP server with:
POST /mcp— MCP protocol endpointGET /health— Health check endpoint
Getting Autotask API Credentials
Section titled “Getting Autotask API Credentials”- Log into your Autotask instance as an administrator
- Navigate to Admin → Resources (Users)
- Create or select an API user
- Generate an API secret key
- Note the integration code from Admin → Extensions & Integrations
The API user needs appropriate security level permissions for the entities you want to access.