Skip to content

Expose advertised MCP server capabilities in status responses - #44826

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/8e9d67c10fac3a54e82bef8be5d99caaf82597d1
Sep 11, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/8e9d67c10fac3a54e82bef8be5d99caaf82597d1

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 11, 2026 •

Copy link
Copy Markdown

Expose advertised MCP server capabilities in status responses

What changed

Add serverCapabilities to mcpServerStatus/list responses in both full and toolsAndAuthOnly modes, including thread-scoped reads. Return the initialized server's capabilities object, including its extensions map, or null when unavailable.

Capture capabilities during initialization so they remain available when tool discovery fails. Clear them on each new connection attempt and keep them independent of shared tool caches. Update the protocol schemas, generated TypeScript and Python types, and documentation.

Testing

Add coverage for extension capabilities surviving tool-discovery failures in both detail modes. Extend existing tests to check advertised extensions, absent capabilities after initialization failure, and serialization of unavailable capabilities as null.

## What changed

Add `serverCapabilities` to `mcpServerStatus/list` responses in both `full` and `toolsAndAuthOnly` modes, including thread-scoped reads. Return the initialized server's capabilities object, including its `extensions` map, or `null` when unavailable.

Capture capabilities during initialization so they remain available when tool discovery fails. Clear them on each new connection attempt and keep them independent of shared tool caches. Update the protocol schemas, generated TypeScript and Python types, and documentation.

## Testing

Add coverage for extension capabilities surviving tool-discovery failures in both detail modes. Extend existing tests to check advertised extensions, absent capabilities after initialization failure, and serialization of unavailable capabilities as `null`.

GitOrigin-RevId: 8e9d67c10fac3a54e82bef8be5d99caaf82597d1
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/8e9d67c10fac3a54e82bef8be5d99caaf82597d1 branch from 0b5d36c to 7a6f469 Compare September 11, 2026 13:55
@copyberry
copyberry Bot merged commit 7a6f469 into main Sep 11, 2026
1 check passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/8e9d67c10fac3a54e82bef8be5d99caaf82597d1 branch September 11, 2026 13:55
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 11, 2026
@generyand
generyand deployed to issue-triage September 11, 2026 13:57 — with GitHub Actions Active
@generyand
generyand deployed to issue-triage September 11, 2026 13:57 — with GitHub Actions Active
@generyand
generyand deployed to issue-triage September 11, 2026 13:57 — with GitHub Actions Active
@generyand
generyand deployed to issue-triage September 11, 2026 13:58 — with GitHub Actions Active
@N9K32
N9K32 deployed to issue-triage September 11, 2026 14:16 — with GitHub Actions Active
@N9K32
N9K32 deployed to issue-triage September 11, 2026 14:16 — with GitHub Actions Active
@N9K32
N9K32 deployed to issue-triage September 11, 2026 14:16 — with GitHub Actions Active
@ilker2445
ilker2445 deployed to issue-triage September 11, 2026 14:16 — with GitHub Actions Active
@ilker2445
ilker2445 deployed to issue-triage September 11, 2026 14:16 — with GitHub Actions Active
@ilker2445
ilker2445 deployed to issue-triage September 11, 2026 14:16 — with GitHub Actions Active
@ilker2445
ilker2445 deployed to issue-triage September 11, 2026 14:17 — with GitHub Actions Active

This branch was successfully deployed

1 active deployment
issue-triage — 7a6f469d Deployed Sep 11, 2026 by marckariel via Identify potential duplicates (all issues) #44716
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants