Authentication
How credentials flow from the portal to Polarion, and what to do when auth fails.
Auth model overview
Polarion MCP uses a two-layer auth model that keeps your Polarion credentials off your local machine:
- ATOMS API Key — This is the only secret stored in your IDE. It starts with
atoms-sk-and authenticates you against the ATOMS platform. The same key can be reused across IDE connections; create additional named keys when you want separate rotation, revocation, or audit boundaries. - Polarion PAT — Your Polarion Personal Access Token is stored securely server-side (GCP Secret Manager) after you configure it in the ATOMS portal. The MCP server retrieves it on each request.
What the portal manages
- Account creation and sign-in
- Polarion URL and PAT configuration
- API key generation and management
- Credit usage tracking and billing
- Connection testing
Request flow
Every MCP tool call goes through this flow:
- Your IDE sends a tool call with
Authorization: Bearer atoms-sk-xxxx - The MCP server sends the key to the ATOMS auth service for validation
- The auth service returns the Polarion URL and PAT associated with your account
- The MCP server uses those credentials to call the Polarion REST API
- After a successful response, one credit is deducted (errors cost 0 credits)
Credit usage
One credit is deducted per successful tool call. Calls that fail (auth errors, Polarion errors, etc.) cost zero credits. Credits reset monthly based on your plan.
| Plan | Credits/month | Price |
|---|---|---|
| Free | 150 | $0 |
| Starter | 1,500 | $49/mo |
| Standard | 6,000 | $99/mo |
| Enterprise | Unlimited | Custom |
Auth error reference
These are the errors the MCP server returns when authentication fails:
| Error | HTTP Status | Cause | Fix |
|---|---|---|---|
| unauthenticated | 401 | Missing or malformed Bearer token | Check your IDE config has ATOMS_API_KEY set correctly |
| unauthenticated | 401 | Invalid or revoked API key | Generate a new key in the portal |
| credits_exhausted | 402 | Monthly credit limit reached | Upgrade your plan or wait for monthly reset |
| polarion_not_configured | 422 | No Polarion URL/PAT saved | Configure Polarion in the portal dashboard |
| auth_service_unavailable | 503 | ATOMS auth service is temporarily down | Wait a moment and retry |