Skip to main content
POST
/
mcp-server
/
strata
/
create
Create
curl --request POST \
  --url https://api.klavis.ai/mcp-server/strata/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "userId": "<string>",
  "servers": [
    "Affinity"
  ],
  "externalServers": [
    {
      "name": "<string>",
      "url": "<string>",
      "headers": {}
    }
  ],
  "enableAuthHandling": true
}'
{
  "strataServerUrl": "<string>",
  "strataId": "<string>",
  "addedServers": [
    "<string>"
  ],
  "addedExternalServers": [
    {
      "name": "<string>",
      "url": "<string>",
      "headers": {}
    }
  ],
  "oauthUrls": {},
  "apiKeyUrls": {}
}

Authorizations

Authorization
string
header
required

Your Klavis AI API key.

Body

application/json
userId
string
required

The unique identifier for the user. The server instance along with the all the authentication data will belong to that specific user only. It can be a UUID from the database, a unique email address from the user, etc.

Minimum length: 1
servers

List of Klavis MCP servers to enable (e.g., 'jira', 'linear'), 'ALL' to add all Klavis MCP servers, or null to add no servers.

externalServers
ExternalServerRequest · object[] | null

Optional list of external MCP servers to add with their URLs. Each server will be validated before being added.

enableAuthHandling
boolean
default:true

Whether to enable authentication handling. Default is True.

Response

Successful Response

strataServerUrl
string
required

URL to connect to the Strata MCP server

strataId
string
required

The strata server ID

addedServers
string[]
required

List of Klavis integration that were added

addedExternalServers
ExternalServerInfo · object[]

List of external MCP servers that were added with name and URL

oauthUrls
object

Map of connected integration to OAuth URL, supports white labeling if configured

apiKeyUrls
object

Map of connected integration to API key setup URL

I