v1

latestOpenAPI 3.0.3MIT2026-07-132953108.7 KB
MCP Management

Add MCP Client

Add a new MCP client configuration and establish connection. Supports STDIO, HTTP, and SSE connection types.

post/api/mcp/client

Request body

namestring required

Client name

connection_type'http' | 'stdio' | 'sse' required

Communication protocol for MCP connections

connection_stringstring

HTTP or SSE URL (required for HTTP or SSE connections)

tools_to_skipstring[]

Tools to exclude from this client

tools_to_executestring[]

Tools to include from this client (if specified, only these are used)

Example request

{
  "name": "filesystem",
  "connection_type": "stdio",
  "connection_string": "https://api.example.com/mcp",
  "stdio_config": {
    "command": "npx",
    "args": [
      "-y",
      "@modelcontextprotocol/server-filesystem"
    ],
    "envs": [
      "HOME",
      "USER"
    ]
  },
  "tools_to_skip": [
    "delete_file",
    "write_file"
  ],
  "tools_to_execute": [
    "read_file",
    "list_directory"
  ]
}

Response

MCP client added successfully

status'success' required

Operation status

messagestring required

Success message

Example response

{
  "status": "success",
  "message": "Operation completed successfully"
}