Authentication Methods
StackOne MCP server uses the same authentication as the regular StackOne API, ensuring consistent security across all integration methods.Get your API key
Get your API key
- Go to Configuration → API Keys in the dashboard
- Click Create API Key and copy it securely
Get your Account ID
Get your Account ID
- Go to Accounts in the dashboard
- Select your linked account
- Copy the account ID (e.g.,
47187425466113776871)
Basic Authentication (Recommended)
StackOne MCP uses the same Basic Auth as all StackOne APIs:- cURL
- TypeScript
- Python
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 (especially Accept header)
- Base64 encoding problems
- Account ID validation
- 406 Not Acceptable errors
Testing Authentication
Verify your authentication setup with a simpleinitialize CURL request or using Postman: