Get Server
GEThttps://api.confident-ai.com/v2/mcp-servers/{mcpServerId}
Retrieves an MCP server by id, with its full configuration and the tools its last successful connection discovered. The stored OAuth client secret is not returned: authConfig.clientSecretPreview masks it instead.
curl -X GET "https://api.confident-ai.com/v2/mcp-servers/{mcpServerId}" \
-H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"{
"success": true,
"data": {
"id": "<MCP-SERVER-ID>",
"name": "Internal Tools",
"description": "Internal engineering tools",
"transport": "STDIO",
"connected": true,
"url": "https://mcp.internal.example.com/sse",
"headers": {
"Authorization": "Bearer YOUR-TOKEN"
},
"authType": "HEADERS",
"authConfig": {
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47",
"clientId": "9a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d",
"scope": "api://internal-tools/.default",
"clientSecretPreview": "••••••••Xk3mZq"
},
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem"
],
"availableTools": [
{
"name": "search_issues",
"description": "Search issues in a repository",
"inputSchema": {
"type": "object"
},
"annotations": {
"readOnlyHint": true
}
}
]
},
"deprecated": false
}Headers
CONFIDENT_API_KEYstringRequiredThe API key of your Confident AI project.
Path parameters
mcpServerIdstringRequiredThe id of the MCP server.
Response
Get Server succeeded.
successbooleanIndicates if the request was successful.
dataobjectAn MCP server registered with your project: how Confident AI reaches it, how it authenticates, and the tools the last connection found. The stored OAuth client secret is never returned —
authConfig.clientSecretPreviewmasks it.Show 12 propertiesHide 12 properties
idstringThe id of the MCP server, generated by Confident AI.
namestringThe name of the MCP server.
descriptionstring | nullWhat the MCP server is for.
transportenumHow Confident AI reaches the server.
HTTPrequiresurland is the only transport that authenticates;STDIOrequirescommandand launches the server as a local process.Show 2 enum valuesHide 2 enum values
STDIOHTTP
connectedbooleanWhether the last connection attempt succeeded. Set by the connect route, and reset to false by any update.
urlstring | nullThe URL of the server. Only set when
transportisHTTP.headersobject | nullThe static headers sent with every request, returned as stored. Only set when
authTypeisHEADERS.authTypeenumHow Confident AI authenticates to the server.
HEADERSsends the staticheadersmap,OAUTH_CLIENT_CREDENTIALSandAZURE_ADfetch a token fromauthConfigbefore every call.HTTPtransport only; aSTDIOserver is alwaysHEADERS.Show 3 enum valuesHide 3 enum values
HEADERSOAUTH_CLIENT_CREDENTIALSAZURE_AD
authConfigobject | nullThe stored credentials with the secret removed:
clientSecretnever leaves Confident AI, and a maskedclientSecretPreviewstands in for it.Show 4 propertiesHide 4 properties
tenantIdstringThe Azure AD directory (tenant) id, as stored.
clientIdstringThe OAuth client id, as stored.
scopestringThe OAuth scope requested, as stored.
clientSecretPreviewstringA mask of the stored OAuth client secret — bullets followed by its last six characters — so you can tell which secret is stored without reading it. This is not a credential and sending it back sets nothing: to leave the stored secret alone omit
clientSecretfrom your update, and to change it send the new secret inclientSecret.
commandstring | nullThe command that launches the server. Only set when
transportisSTDIO.argslist of stringsThe arguments passed to
command. Empty unlesstransportisSTDIO.availableToolslist of objects | nullShow 4 propertiesHide 4 properties
namestringThe name of the tool, as the server reports it.
descriptionstring | nullWhat the tool does, or null when the server describes it.
inputSchemaobjectThe JSON Schema describing the tool's arguments.
annotationsobject | null
deprecatedbooleanIndicates if this endpoint is deprecated.