Skip to Content
Docs

Test MCP server connection with provided configuration

POST
/api/mcp_server/test

Test MCP server connection with provided configuration.

Personal access token scope: tools:write.

Authorization

bearer
headerAuthorizationBearer <token>

A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).

Request Body

application/json
  1. body
config*

MCP server configuration to test

id?string

Stored tool to test with (empty secrets reuse its stored ones)

Response Body

Success

Example Request
curl -X POST 'http://localhost:7091/api/mcp_server/test' \  -H 'Content-Type: application/json' \  -d '{  "config": {}}'
Example Response200
Empty