Skip to main content
POST
/
api
/
tools
/
mcp
/
validate
curl --request POST \
  --url https://zeus-api.agentspro.cn/api/tools/mcp/validate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "name": "tavily",
    "base_url": "https://mcp.tavily.com/mcp",
    "transport_type": "streamable_http",
    "api_key": "tvly-..."
  }'
{
  "success": true,
  "status": "connected",
  "tools": [
    { "name": "tavily_search", "description": "Search the web using Tavily" },
    { "name": "tavily_extract", "description": "Extract content from a URL" }
  ],
  "tool_count": 2,
  "prompts": [],
  "prompt_count": 0
}
Tests whether an MCP server connection is available and returns the list of tools and prompts provided by the server. Used for connection validation before adding MCP tools on the frontend.
Authorization
string
required
Bearer JWT Token
name
string
required
MCP server name (unique identifier)
base_url
string
required
MCP server URL
transport_type
string
default:"streamable_http"
Transport type (streamable_http | sse | stdio)
api_key
string
API key (optional, automatically added as Authorization: Bearer header)
headers
object
Custom HTTP headers (optional)
success
boolean
Whether the connection was successful
status
string
Connection status: connected
tools
array
List of tools
tool_count
number
Number of tools
prompts
array
List of prompts
prompt_count
number
Number of prompts
curl --request POST \
  --url https://zeus-api.agentspro.cn/api/tools/mcp/validate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "name": "tavily",
    "base_url": "https://mcp.tavily.com/mcp",
    "transport_type": "streamable_http",
    "api_key": "tvly-..."
  }'
{
  "success": true,
  "status": "connected",
  "tools": [
    { "name": "tavily_search", "description": "Search the web using Tavily" },
    { "name": "tavily_extract", "description": "Extract content from a URL" }
  ],
  "tool_count": 2,
  "prompts": [],
  "prompt_count": 0
}