Create a new custom MCP server configuration. Allows you to configure your own MCP servers with custom authentication and tool settings. Credentials are encrypted before storage.
name string required Human-readable name for the MCP configuration.
server_url string required HTTPS URL to the MCP server.
transport_type string required Transport protocol for MCP communication. Values: sse, streamable_http.
auth_type string required Authentication method. Values: none, api_key, bearer_token, oauth.
organization_id string required Organization ID (org_ prefixed string) this configuration belongs to.
credentials object optional Authentication credentials (encrypted at rest). Structure depends on auth_type.
tool_configuration object optional Tool configuration: {enabled: bool, allowed_tools: [str]}.
Created MCP configuration with generated ID (mcp_xxx).
- Bash
- Python
- JavaScript
curl -X POST "https://api.aitronos.com/v1/mcp-configurations" \
-H "X-API-Key: $FREDDY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Production GitHub",
"server_url": "https://mcp.github.example.com",
"transport_type": "sse",
"auth_type": "bearer_token",
"organization_id": "org_xyz789",
"credentials": {
"type": "bearer",
"token": "ghp_YOUR_TOKEN_HERE"
},
"tool_configuration": {
"enabled": true,
"allowed_tools": ["search_code", "create_issue"]
}
}'