Skip to content

Commit ba1d743

Browse files
committed
mcpServer/startupStatus/updated
1 parent 9c0fdb4 commit ba1d743

7 files changed

Lines changed: 17 additions & 17 deletions

File tree

codex-rs/app-server-protocol/schema/json/ServerNotification.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4248,9 +4248,9 @@
42484248
"properties": {
42494249
"method": {
42504250
"enum": [
4251-
"mcpServer/status/updated"
4251+
"mcpServer/startupStatus/updated"
42524252
],
4253-
"title": "McpServer/status/updatedNotificationMethod",
4253+
"title": "McpServer/startupStatus/updatedNotificationMethod",
42544254
"type": "string"
42554255
},
42564256
"params": {
@@ -4261,7 +4261,7 @@
42614261
"method",
42624262
"params"
42634263
],
4264-
"title": "McpServer/status/updatedNotification",
4264+
"title": "McpServer/startupStatus/updatedNotification",
42654265
"type": "object"
42664266
},
42674267
{

codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.schemas.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3977,9 +3977,9 @@
39773977
"properties": {
39783978
"method": {
39793979
"enum": [
3980-
"mcpServer/status/updated"
3980+
"mcpServer/startupStatus/updated"
39813981
],
3982-
"title": "McpServer/status/updatedNotificationMethod",
3982+
"title": "McpServer/startupStatus/updatedNotificationMethod",
39833983
"type": "string"
39843984
},
39853985
"params": {
@@ -3990,7 +3990,7 @@
39903990
"method",
39913991
"params"
39923992
],
3993-
"title": "McpServer/status/updatedNotification",
3993+
"title": "McpServer/startupStatus/updatedNotification",
39943994
"type": "object"
39953995
},
39963996
{

codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.v2.schemas.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8405,9 +8405,9 @@
84058405
"properties": {
84068406
"method": {
84078407
"enum": [
8408-
"mcpServer/status/updated"
8408+
"mcpServer/startupStatus/updated"
84098409
],
8410-
"title": "McpServer/status/updatedNotificationMethod",
8410+
"title": "McpServer/startupStatus/updatedNotificationMethod",
84118411
"type": "string"
84128412
},
84138413
"params": {
@@ -8418,7 +8418,7 @@
84188418
"method",
84198419
"params"
84208420
],
8421-
"title": "McpServer/status/updatedNotification",
8421+
"title": "McpServer/startupStatus/updatedNotification",
84228422
"type": "object"
84238423
},
84248424
{

codex-rs/app-server-protocol/schema/typescript/ServerNotification.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ import type { WindowsWorldWritableWarningNotification } from "./v2/WindowsWorldW
5555
/**
5656
* Notification sent from the server to the client.
5757
*/
58-
export type ServerNotification = { "method": "error", "params": ErrorNotification } | { "method": "thread/started", "params": ThreadStartedNotification } | { "method": "thread/status/changed", "params": ThreadStatusChangedNotification } | { "method": "thread/archived", "params": ThreadArchivedNotification } | { "method": "thread/unarchived", "params": ThreadUnarchivedNotification } | { "method": "thread/closed", "params": ThreadClosedNotification } | { "method": "skills/changed", "params": SkillsChangedNotification } | { "method": "thread/name/updated", "params": ThreadNameUpdatedNotification } | { "method": "thread/tokenUsage/updated", "params": ThreadTokenUsageUpdatedNotification } | { "method": "turn/started", "params": TurnStartedNotification } | { "method": "hook/started", "params": HookStartedNotification } | { "method": "turn/completed", "params": TurnCompletedNotification } | { "method": "hook/completed", "params": HookCompletedNotification } | { "method": "turn/diff/updated", "params": TurnDiffUpdatedNotification } | { "method": "turn/plan/updated", "params": TurnPlanUpdatedNotification } | { "method": "item/started", "params": ItemStartedNotification } | { "method": "item/autoApprovalReview/started", "params": ItemGuardianApprovalReviewStartedNotification } | { "method": "item/autoApprovalReview/completed", "params": ItemGuardianApprovalReviewCompletedNotification } | { "method": "item/completed", "params": ItemCompletedNotification } | { "method": "rawResponseItem/completed", "params": RawResponseItemCompletedNotification } | { "method": "item/agentMessage/delta", "params": AgentMessageDeltaNotification } | { "method": "item/plan/delta", "params": PlanDeltaNotification } | { "method": "command/exec/outputDelta", "params": CommandExecOutputDeltaNotification } | { "method": "item/commandExecution/outputDelta", "params": CommandExecutionOutputDeltaNotification } | { "method": "item/commandExecution/terminalInteraction", "params": TerminalInteractionNotification } | { "method": "item/fileChange/outputDelta", "params": FileChangeOutputDeltaNotification } | { "method": "serverRequest/resolved", "params": ServerRequestResolvedNotification } | { "method": "item/mcpToolCall/progress", "params": McpToolCallProgressNotification } | { "method": "mcpServer/oauthLogin/completed", "params": McpServerOauthLoginCompletedNotification } | { "method": "mcpServer/status/updated", "params": McpServerStatusUpdatedNotification } | { "method": "account/updated", "params": AccountUpdatedNotification } | { "method": "account/rateLimits/updated", "params": AccountRateLimitsUpdatedNotification } | { "method": "app/list/updated", "params": AppListUpdatedNotification } | { "method": "item/reasoning/summaryTextDelta", "params": ReasoningSummaryTextDeltaNotification } | { "method": "item/reasoning/summaryPartAdded", "params": ReasoningSummaryPartAddedNotification } | { "method": "item/reasoning/textDelta", "params": ReasoningTextDeltaNotification } | { "method": "thread/compacted", "params": ContextCompactedNotification } | { "method": "model/rerouted", "params": ModelReroutedNotification } | { "method": "deprecationNotice", "params": DeprecationNoticeNotification } | { "method": "configWarning", "params": ConfigWarningNotification } | { "method": "fuzzyFileSearch/sessionUpdated", "params": FuzzyFileSearchSessionUpdatedNotification } | { "method": "fuzzyFileSearch/sessionCompleted", "params": FuzzyFileSearchSessionCompletedNotification } | { "method": "thread/realtime/started", "params": ThreadRealtimeStartedNotification } | { "method": "thread/realtime/itemAdded", "params": ThreadRealtimeItemAddedNotification } | { "method": "thread/realtime/outputAudio/delta", "params": ThreadRealtimeOutputAudioDeltaNotification } | { "method": "thread/realtime/error", "params": ThreadRealtimeErrorNotification } | { "method": "thread/realtime/closed", "params": ThreadRealtimeClosedNotification } | { "method": "windows/worldWritableWarning", "params": WindowsWorldWritableWarningNotification } | { "method": "windowsSandbox/setupCompleted", "params": WindowsSandboxSetupCompletedNotification } | { "method": "account/login/completed", "params": AccountLoginCompletedNotification };
58+
export type ServerNotification = { "method": "error", "params": ErrorNotification } | { "method": "thread/started", "params": ThreadStartedNotification } | { "method": "thread/status/changed", "params": ThreadStatusChangedNotification } | { "method": "thread/archived", "params": ThreadArchivedNotification } | { "method": "thread/unarchived", "params": ThreadUnarchivedNotification } | { "method": "thread/closed", "params": ThreadClosedNotification } | { "method": "skills/changed", "params": SkillsChangedNotification } | { "method": "thread/name/updated", "params": ThreadNameUpdatedNotification } | { "method": "thread/tokenUsage/updated", "params": ThreadTokenUsageUpdatedNotification } | { "method": "turn/started", "params": TurnStartedNotification } | { "method": "hook/started", "params": HookStartedNotification } | { "method": "turn/completed", "params": TurnCompletedNotification } | { "method": "hook/completed", "params": HookCompletedNotification } | { "method": "turn/diff/updated", "params": TurnDiffUpdatedNotification } | { "method": "turn/plan/updated", "params": TurnPlanUpdatedNotification } | { "method": "item/started", "params": ItemStartedNotification } | { "method": "item/autoApprovalReview/started", "params": ItemGuardianApprovalReviewStartedNotification } | { "method": "item/autoApprovalReview/completed", "params": ItemGuardianApprovalReviewCompletedNotification } | { "method": "item/completed", "params": ItemCompletedNotification } | { "method": "rawResponseItem/completed", "params": RawResponseItemCompletedNotification } | { "method": "item/agentMessage/delta", "params": AgentMessageDeltaNotification } | { "method": "item/plan/delta", "params": PlanDeltaNotification } | { "method": "command/exec/outputDelta", "params": CommandExecOutputDeltaNotification } | { "method": "item/commandExecution/outputDelta", "params": CommandExecutionOutputDeltaNotification } | { "method": "item/commandExecution/terminalInteraction", "params": TerminalInteractionNotification } | { "method": "item/fileChange/outputDelta", "params": FileChangeOutputDeltaNotification } | { "method": "serverRequest/resolved", "params": ServerRequestResolvedNotification } | { "method": "item/mcpToolCall/progress", "params": McpToolCallProgressNotification } | { "method": "mcpServer/oauthLogin/completed", "params": McpServerOauthLoginCompletedNotification } | { "method": "mcpServer/startupStatus/updated", "params": McpServerStatusUpdatedNotification } | { "method": "account/updated", "params": AccountUpdatedNotification } | { "method": "account/rateLimits/updated", "params": AccountRateLimitsUpdatedNotification } | { "method": "app/list/updated", "params": AppListUpdatedNotification } | { "method": "item/reasoning/summaryTextDelta", "params": ReasoningSummaryTextDeltaNotification } | { "method": "item/reasoning/summaryPartAdded", "params": ReasoningSummaryPartAddedNotification } | { "method": "item/reasoning/textDelta", "params": ReasoningTextDeltaNotification } | { "method": "thread/compacted", "params": ContextCompactedNotification } | { "method": "model/rerouted", "params": ModelReroutedNotification } | { "method": "deprecationNotice", "params": DeprecationNoticeNotification } | { "method": "configWarning", "params": ConfigWarningNotification } | { "method": "fuzzyFileSearch/sessionUpdated", "params": FuzzyFileSearchSessionUpdatedNotification } | { "method": "fuzzyFileSearch/sessionCompleted", "params": FuzzyFileSearchSessionCompletedNotification } | { "method": "thread/realtime/started", "params": ThreadRealtimeStartedNotification } | { "method": "thread/realtime/itemAdded", "params": ThreadRealtimeItemAddedNotification } | { "method": "thread/realtime/outputAudio/delta", "params": ThreadRealtimeOutputAudioDeltaNotification } | { "method": "thread/realtime/error", "params": ThreadRealtimeErrorNotification } | { "method": "thread/realtime/closed", "params": ThreadRealtimeClosedNotification } | { "method": "windows/worldWritableWarning", "params": WindowsWorldWritableWarningNotification } | { "method": "windowsSandbox/setupCompleted", "params": WindowsSandboxSetupCompletedNotification } | { "method": "account/login/completed", "params": AccountLoginCompletedNotification };

codex-rs/app-server-protocol/src/protocol/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@ server_notification_definitions! {
905905
ServerRequestResolved => "serverRequest/resolved" (v2::ServerRequestResolvedNotification),
906906
McpToolCallProgress => "item/mcpToolCall/progress" (v2::McpToolCallProgressNotification),
907907
McpServerOauthLoginCompleted => "mcpServer/oauthLogin/completed" (v2::McpServerOauthLoginCompletedNotification),
908-
McpServerStatusUpdated => "mcpServer/status/updated" (v2::McpServerStatusUpdatedNotification),
908+
McpServerStatusUpdated => "mcpServer/startupStatus/updated" (v2::McpServerStatusUpdatedNotification),
909909
AccountUpdated => "account/updated" (v2::AccountUpdatedNotification),
910910
AccountRateLimitsUpdated => "account/rateLimits/updated" (v2::AccountRateLimitsUpdatedNotification),
911911
AppListUpdated => "app/list/updated" (v2::AppListUpdatedNotification),

codex-rs/app-server/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ Because audio is intentionally separate from `ThreadItem`, clients can opt out o
838838

839839
### MCP server startup events
840840

841-
- `mcpServer/status/updated``{ name, status, error }` when app-server observes an MCP server startup transition. `status` is one of `starting`, `ready`, `failed`, or `cancelled`. `error` is `null` except for `failed`.
841+
- `mcpServer/startupStatus/updated``{ name, status, error }` when app-server observes an MCP server startup transition. `status` is one of `starting`, `ready`, `failed`, or `cancelled`. `error` is `null` except for `failed`.
842842

843843
### Turn events
844844

@@ -1262,7 +1262,7 @@ Codex supports these authentication modes. The current mode is surfaced in `acco
12621262
- `account/rateLimits/read` — fetch ChatGPT rate limits; updates arrive via `account/rateLimits/updated` (notify).
12631263
- `account/rateLimits/updated` (notify) — emitted whenever a user's ChatGPT rate limits change.
12641264
- `mcpServer/oauthLogin/completed` (notify) — emitted after a `mcpServer/oauth/login` flow finishes for a server; payload includes `{ name, success, error? }`.
1265-
- `mcpServer/status/updated` (notify) — emitted when a configured MCP server's startup status changes for a loaded thread; payload includes `{ name, status, error }` where `status` is `starting`, `ready`, `failed`, or `cancelled`.
1265+
- `mcpServer/startupStatus/updated` (notify) — emitted when a configured MCP server's startup status changes for a loaded thread; payload includes `{ name, status, error }` where `status` is `starting`, `ready`, `failed`, or `cancelled`.
12661266

12671267
### 1) Check auth state
12681268

codex-rs/app-server/tests/suite/v2/thread_start.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -356,9 +356,9 @@ async fn thread_start_emits_mcp_server_status_updated_notifications() -> Result<
356356
let starting = timeout(
357357
DEFAULT_READ_TIMEOUT,
358358
mcp.read_stream_until_matching_notification(
359-
"mcpServer/status/updated starting",
359+
"mcpServer/startupStatus/updated starting",
360360
|notification| {
361-
notification.method == "mcpServer/status/updated"
361+
notification.method == "mcpServer/startupStatus/updated"
362362
&& notification
363363
.params
364364
.as_ref()
@@ -391,9 +391,9 @@ async fn thread_start_emits_mcp_server_status_updated_notifications() -> Result<
391391
let failed = timeout(
392392
DEFAULT_READ_TIMEOUT,
393393
mcp.read_stream_until_matching_notification(
394-
"mcpServer/status/updated failed",
394+
"mcpServer/startupStatus/updated failed",
395395
|notification| {
396-
notification.method == "mcpServer/status/updated"
396+
notification.method == "mcpServer/startupStatus/updated"
397397
&& notification
398398
.params
399399
.as_ref()

0 commit comments

Comments
 (0)