Get MCP Server
GEThttps://api.confident-ai.com/v1/mcp-servers/{mcpServerId}
Retrieves a single MCP server by its mcpServerId, with its full configuration and last discovered tools.
curl -X GET "https://api.confident-ai.com/v1/mcp-servers/{mcpServerId}" \
-H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"{
"success": true,
"data": {
"mcpServer": {
"id": "MCP-SERVER-ID",
"name": "Internal Tools",
"description": "Internal engineering tools",
"transport": "HTTP",
"connected": true,
"url": "https://mcp.internal.example.com/sse",
"headers": null,
"authType": "AZURE_AD",
"authConfig": {
"tenantId": "TENANT-ID",
"clientId": "CLIENT-ID",
"scope": "api://internal-tools/.default",
"clientSecretPreview": "••••••••Xk3mZq"
},
"command": null,
"args": [],
"availableTools": [
{
"name": "search_issues",
"description": "Search issues in a repository",
"inputSchema": {
"type": "object"
}
}
]
}
},
"deprecated": false
}Headers
CONFIDENT_API_KEYstringRequiredThe API key of your Confident AI project.
Path parameters
mcpServerIdstringRequiredThe id of the MCP server.
Response
The requested MCP server.
successbooleanIndicates if the request was successful.
dataobjectThe MCP server, with the stored OAuth client secret masked.
Show 1 propertyHide 1 property
mcpServerobjectShow 12 propertiesHide 12 properties
idstringThe unique identifier of the MCP server. Use this value when running a dataset evaluation.
namestringThe name of the MCP server.
descriptionstringThe description of the MCP server.
transportenumHow Confident AI reaches the server.
Show 2 enum valuesHide 2 enum values
HTTPSTDIO
connectedbooleanWhether the last connection attempt succeeded. Set by the connect route, and reset to
falseby any update.urlstringThe URL of the server. Only set when the transport is
HTTP.headersobjectThe static headers sent with every request, returned as stored.
authTypeenumHow Confident AI authenticates to the server.
Show 3 enum valuesHide 3 enum values
HEADERSOAUTH_CLIENT_CREDENTIALSAZURE_AD
authConfigobjectThe stored credentials with the secret removed —
clientSecretis replaced by a maskedclientSecretPreview, which cannot be sent back.commandstringThe command that launches the server. Only set when the transport is
STDIO.argslist of stringsThe arguments passed to
command. Only set when the transport isSTDIO.availableToolslist of objectsThe tools discovered by the last successful connection. Not cleared by an update, so treat it as stale whenever
connectedisfalse.Show 3 propertiesHide 3 properties
namestringThe name of the tool, as the server reports it.
descriptionstringWhat the tool does.
inputSchemaobjectThe JSON Schema describing the tool's arguments.
deprecatedbooleanIndicates if this endpoint is deprecated.