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 | Host for HTTP transport |
LOG_LEVEL | info | Logging level: error, warn, info, debug |
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:
MCP_TRANSPORT=http MCP_HTTP_PORT=8080 node dist/entry.jsThis 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.