Authentication Methods
StackOne MCP server uses the same authentication as the regular StackOne API, ensuring consistent security across all integration methods.How to get your StackOne API key and Account ID
How to get your StackOne API key and Account ID
Get API Key:
- Log into StackOne Dashboard
- Navigate to your project
- Go to Settings → API Keys
- Create or copy existing API key
- Go to Accounts section in dashboard
- Select your linked account
- Copy the account ID (numeric format like
47187425466113776871or short alphanumeric ID)
Basic Authentication (Recommended)
The primary authentication method uses HTTP Basic Auth with your StackOne API key:- Take your StackOne API key (e.g.,
v1.us1.AAblXDxi8h_OO1AZG_Hyg4V3w65x9...) - Append a colon:
v1.us1.YYplXCxi8h_OO9HZG_Kyg4V3w65x9...: - Base64 encode the result
Required Headers
Core Headers
All MCP requests require these headers:2025-03-26 and 2025-06-18. Most clients handle this automatically.
Account ID
The account ID can be passed in two ways:1. Header Method (Recommended)
2. Query Parameter (Fallback)
For clients that don’t support custom headers:- Numeric string (e.g.,
47187425466113776871) - Short alphanumeric ID (e.g.,
abc123xyz)
The header method takes precedence if both are provided. Use query parameters only when custom headers are not supported by your MCP client.
Transport Protocol
StackOne uses Streamable HTTP transport exclusively:- Protocol: HTTPS only
- Method: POST requests for all operations
- No SSE: Server-Sent Events are not supported
- Session Management: Stateless (no session support currently)
Security Best Practices
Always Use HTTPS
✅ Correct:https://api.stackone.com/mcp
❌ Incorrect: http://api.stackone.com/mcp
Store API Keys Securely
Use environment variables and never commit API keys to version control.Troubleshooting Authentication
For authentication errors and common issues, see our comprehensive Troubleshooting Guide which covers:- 401 Unauthorized errors
- 403 Forbidden errors
- Missing header issues
- Base64 encoding problems
- Account ID validation
Testing Authentication
Verify your authentication setup with a simpleinitialize CURL request or using Postman: