Skip to main content

Environment Variables

VariableDescriptionDefaultRequired
ADEN_API_BASE_URLBackend API URLhttp://localhost:3000Yes
ADEN_TEAM_IDTeam ID for multi-tenant context-Recommended
ADEN_USER_IDUser ID for audit trail-Recommended
ADEN_AUTH_TOKENJWT authentication token-Yes
MCP_HTTP_PORTHTTP server port (HTTP mode only)3001No
MCP_HTTP_HOSTHTTP server host (HTTP mode only)localhostNo

Authentication

The MCP server uses JWT tokens for authentication with the Aden API.

Obtaining a Token

Contact your Aden administrator to obtain API credentials and a JWT token.

Token Configuration

Add the token to your Claude Desktop config:
{
  "mcpServers": {
    "aden-finance": {
      "env": {
        "ADEN_AUTH_TOKEN": "your-jwt-token"
      }
    }
  }
}

Transport Modes

stdio (Default)

Used for Claude Desktop integration. Communication happens over standard input/output.
npm start

HTTP/SSE

Used for web clients or remote access. Starts an HTTP server with Server-Sent Events for streaming.
npm start -- --http --port 3001

HTTP Endpoints

EndpointMethodDescription
/healthGETHealth check
/toolsGETList available tools
/tools/{name}POSTExecute a tool
/sseGETSSE connection for streaming

Multi-Tenant Configuration

For organizations with multiple teams:
{
  "mcpServers": {
    "aden-finance": {
      "env": {
        "ADEN_API_BASE_URL": "https://kube.acho.io",
        "ADEN_TEAM_ID": "team-123",
        "ADEN_USER_ID": "user-456",
        "ADEN_AUTH_TOKEN": "your-jwt-token"
      }
    }
  }
}
The ADEN_TEAM_ID ensures all operations are scoped to the correct team, and ADEN_USER_ID is recorded in the audit trail.

Project Structure

aden-sdk-mcp/
├── bin/
│   └── mcp-server.js       # CLI entry point
├── src/
│   ├── index.js            # Main exports
│   ├── server.js           # MCP server setup
│   ├── auth/               # Authentication
│   │   ├── session.js
│   │   ├── validator.js
│   │   └── index.js
│   ├── domains/
│   │   └── finance/
│   │       ├── index.js    # Domain registration
│   │       └── tools/
│   │           ├── reports/
│   │           ├── journal-entries/
│   │           ├── bills/
│   │           ├── invoices/
│   │           ├── accounting-periods/
│   │           └── chart-of-accounts/
│   ├── transports/
│   │   ├── stdio.js
│   │   ├── http.js
│   │   └── index.js
│   └── utils/
│       ├── api-client.js   # Backend HTTP client
│       ├── error-handler.js
│       └── schema-helpers.js
└── package.json

Security Considerations

Never commit JWT tokens or credentials to version control. Use environment variables or secure credential management.
  • Store tokens securely using environment variables or secret management
  • Use HTTPS for all API communication in production
  • Rotate tokens regularly
  • Limit token permissions to required operations only