Skip to main content
POST
/
api
/
mcp
/
client
Add MCP client
curl --request POST \
  --url http://localhost:8080/api/mcp/client \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "<string>",
  "name": "<string>",
  "connection_type": "http",
  "connection_string": "<string>",
  "stdio_config": {
    "command": "<string>",
    "args": [
      "<string>"
    ],
    "envs": [
      "<string>"
    ]
  },
  "headers": {},
  "tools_to_execute": [
    "<string>"
  ]
}
'
{
  "status": "success",
  "message": "Operation completed successfully"
}

Body

application/json

MCP client configuration

id
string
name
string
connection_type
enum<string>

Connection type for MCP client

Available options:
http,
stdio,
sse,
inprocess
connection_string
string

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

stdio_config
object

STDIO configuration for MCP client

headers
object
tools_to_execute
string[]

Include-only list for tools. ["*"] => all tools are included [] => no tools are included ["tool1", "tool2"] => include only the specified tools

Response

MCP client added successfully

Generic success response

status
string
Example:

"success"

message
string
Example:

"Operation completed successfully"