Integration Guides
CI/CD & Headless
Use ATOMS MCP Server in CI/CD pipelines and automation
CI/CD & Headless Usage
For automation, pipelines, and non-interactive environments, use token-based authentication.
Setup
Set the ATOMS_ACCESS_TOKEN environment variable with a valid Supabase JWT:
export ATOMS_ACCESS_TOKEN="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."Obtaining a token
- Run
npx @atoms-tech/atoms-mcp loginon your local machine - Extract the token from
~/.atoms/credentials.json:
cat ~/.atoms/credentials.json | jq -r '.access_token'- Store this as a secret in your CI/CD platform
Tokens expire. For long-running pipelines, you may need to refresh tokens periodically or re-authenticate.
GitHub Actions example
name: Requirements Check
on: [pull_request]
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18'
- run: npx @atoms-tech/atoms-mcp whoami
env:
ATOMS_ACCESS_TOKEN: ${{ secrets.ATOMS_ACCESS_TOKEN }}Environment variables
| Variable | Purpose |
|---|---|
ATOMS_ACCESS_TOKEN | JWT for authentication (required) |
ATOMS_CLIENT_NAME | Identifies this client in audit logs (optional) |
ATOMS_RATE_LIMIT_RPM | Override rate limit, default 60 (optional) |
Rate limits
The default rate limit is 60 requests per minute per user. For batch operations, use atoms_bulk_import to create up to 100 items in a single call instead of individual atoms_create_item calls.