Skip to main content
POST
Python (SDK)

Authorizations

Authorization
string
header
required

Gateway auth: send Authorization: Bearer <mka1-api-key>. For multi-user server-side integrations, you can also send X-On-Behalf-Of: <external-user-id>.

Headers

X-On-Behalf-Of
string

Optional external end-user identifier forwarded by the API gateway.

Path Parameters

server_id
string
required

Body

application/json
name
string
Required string length: 1 - 255
server_label
string
Required string length: 1 - 255
Pattern: ^[A-Za-z0-9._-]+$
server_url
string<uri>
Maximum string length: 2048
server_description
string | null
Maximum string length: 10000
allowed_tools
require_approval
enum<string>
Available options:
always,
never
metadata
object

Response

200 - application/json

OK

id
string
required
object
any
required
name
string
required
server_label
string
required
server_url
string
required
server_description
string | null
required
allowed_tools
required
require_approval
enum<string>
required
Available options:
always,
never
metadata
object
required
created_at
string<date-time>
required
updated_at
string<date-time>
required