Skip to main content
POST
/
ai
/
mcp-servers
Create MCP server
curl --request POST \
  --url https://api.wacht.dev/ai/mcp-servers \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "config": {
    "endpoint": "<string>",
    "auth": {
      "type": "token",
      "auth_token": "<string>"
    },
    "headers": {}
  }
}
'
{
  "id": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "deployment_id": "<string>",
  "name": "<string>",
  "config": {
    "endpoint": "<string>",
    "auth": {
      "type": "token",
      "auth_token": "<string>"
    },
    "headers": {}
  },
  "discovery_result": {
    "requires_auth": true,
    "recommended_auth_mode": "<string>",
    "token_url": "<string>",
    "auth_url": "<string>",
    "register_url": "<string>",
    "resource_metadata_url": "<string>",
    "resource": "<string>",
    "scopes": [
      "<string>"
    ],
    "token_endpoint_auth_methods_supported": [
      "<string>"
    ],
    "authorization_servers": [
      "<string>"
    ],
    "message": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Body

application/json
name
string
required
config
object
required

Response

200 - application/json

Created MCP server

id
string
created_at
string<date-time>
updated_at
string<date-time>
deployment_id
string
name
string
config
object
discovery_result
object