mirror of
https://github.com/openai/codex.git
synced 2026-11-24 23:20:47 +00:00
## Why Required MCP servers can finish at different times even when their startup notifications arrive together. Notification arrival times cannot show how long each server took to start. ## What changed Measure each startup attempt and expose its elapsed milliseconds as `durationMs` on `ready` and `failed` updates from `mcpServer/startupStatus/updated`. Successful Codex Apps reconnects report their own duration. Reused connections, `starting`, and `cancelled` updates carry `null`. The protocol accepts notifications from older servers that omit the field. ## Testing Cover distinct durations for fast and slow required servers, timing through lease registration for newly opened shared connections, and a fresh duration after Codex Apps recovery. GitOrigin-RevId: 39c0c418149dd2b220828be04d998085f57acf2d
72 lines
1.4 KiB
JSON
Generated
72 lines
1.4 KiB
JSON
Generated
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"definitions": {
|
|
"McpServerStartupFailureReason": {
|
|
"enum": [
|
|
"reauthenticationRequired"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"McpServerStartupState": {
|
|
"enum": [
|
|
"starting",
|
|
"ready",
|
|
"failed",
|
|
"cancelled"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"properties": {
|
|
"durationMs": {
|
|
"description": "Elapsed startup time for a measured attempt. Older servers omit this field.",
|
|
"format": "uint64",
|
|
"minimum": 0.0,
|
|
"type": [
|
|
"integer",
|
|
"null"
|
|
]
|
|
},
|
|
"environmentId": {
|
|
"description": "Registration scope, not necessarily the server's execution environment.",
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"error": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"failureReason": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/McpServerStartupFailureReason"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/McpServerStartupState"
|
|
},
|
|
"threadId": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"name",
|
|
"status"
|
|
],
|
|
"title": "McpServerStatusUpdatedNotification",
|
|
"type": "object"
|
|
} |