Skip to main content
POST
/
api
/
v1
/
mcp
/
verify
Verify MCP (Model Context Protocol) connection and discover available tools
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: JSON.stringify({
    name: '<string>',
    serverUrl: '<string>',
    authentication: {apiKey: '<string>', headerName: '<string>'},
    customHeaders: {},
    isEnabled: true,
    description: null,
    transport: 'SSE',
    blackListTools: null,
    whiteListTools: null
  })
};

fetch('https://blackbox.dasha.ai/api/v1/mcp/verify', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "success": true,
  "availableTools": [
    {
      "name": "<string>",
      "description": "<string>",
      "schema": {},
      "isEnabled": true
    }
  ],
  "testedAt": "2023-11-07T05:31:56Z",
  "responseTimeMs": 123,
  "message": "<string>"
}

Body

Complete MCP connection configuration to test

name
string
required
Minimum string length: 1
serverUrl
string<uri>
required
authentication
object
customHeaders
object
isEnabled
boolean | null
default:true
description
string | null
transport
enum<string>
default:SSE
Available options:
SSE,
StreamableHTTP
blackListTools
string[] | null
whiteListTools
string[] | null

Response

Connection test completed (check success field in response)

success
boolean
required
availableTools
object[]
required
testedAt
string<date-time>
required
responseTimeMs
number<double>
required
message
string | null