mirror of
https://github.com/openai/codex.git
synced 2026-12-03 00:41:03 +00:00
## Why A single MCP server such as `codex_apps` can expose tools from multiple connectors. Clients that need one connector's tools currently have to filter the server's tool inventory themselves. ## What changed Add an optional `connectorId` parameter to `mcpServerStatus/list`. It keeps only tools whose `_meta.connector_id` or `_meta.connectorId` exactly matches the requested string. Servers with no matching tools still appear with an empty `tools` map and their status. Omit the filter or pass `null` to return all tools, and repeat the filter on each page when paginating. ## Testing Add integration coverage for standalone and thread-scoped requests, including both metadata spellings, an unknown connector ID, and an omitted filter. GitOrigin-RevId: d6ad367dff72002b239db7b5012145ba1811ccac
70 lines
1.7 KiB
JSON
Generated
70 lines
1.7 KiB
JSON
Generated
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"definitions": {
|
|
"McpServerStatusDetail": {
|
|
"enum": [
|
|
"full",
|
|
"toolsAndAuthOnly"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"properties": {
|
|
"connectorId": {
|
|
"description": "Return only tools whose `_meta.connector_id` or `_meta.connectorId` equals this ID. Selected servers with no matching tools still appear on the page.",
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"cursor": {
|
|
"description": "Opaque pagination cursor returned by a previous call.",
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"detail": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/McpServerStatusDetail"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"description": "Controls how much MCP inventory data to fetch for each server. Defaults to `Full` when omitted."
|
|
},
|
|
"environmentId": {
|
|
"description": "Select this environment's registration. Requires `serverName` and `threadId`. When omitted, a named request uses the same server as older clients.",
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"limit": {
|
|
"description": "Optional page size; defaults to a server-defined value.",
|
|
"format": "uint32",
|
|
"minimum": 0.0,
|
|
"type": [
|
|
"integer",
|
|
"null"
|
|
]
|
|
},
|
|
"serverName": {
|
|
"description": "Limit discovery to one server. With a thread ID, reuse that thread's MCP connection.",
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"threadId": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
}
|
|
},
|
|
"title": "ListMcpServerStatusParams",
|
|
"type": "object"
|
|
} |