Skip to content

mcp: keep elicitation requests below app wire types - #29724

Merged
anp-oai merged 1 commit into
mainfrom
codex/split-mcp-elicitation-types
Jun 24, 2026
Merged

mcp: keep elicitation requests below app wire types#29724
anp-oai merged 1 commit into
mainfrom
codex/split-mcp-elicitation-types

Conversation

@anp-oai

@anp-oai anp-oai commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Why

Core and tools need to request MCP elicitation without constructing app-server wire payloads. The request should remain a neutral protocol concept until app-server serializes it for a client.

What changed

  • Switched core and tools to codex_protocol::approvals::ElicitationRequest.
  • Derived turn and server context inside core instead of carrying app-server request types through lower layers.
  • Kept the app-server payload unchanged through an explicit boundary conversion.
  • Removed the remaining production app-server-protocol dependency from tools.

Stack

This is PR 5 of 6, stacked on PR #29723. Review only the delta from codex/split-connector-metadata-types. Next: PR #29725.

Validation

  • codex-core MCP coverage passed: 87 tests.
  • Tools elicitation and app-server round-trip coverage passed.

@anp-oai
anp-oai force-pushed the codex/split-connector-metadata-types branch from 413735a to e7d1ade Compare June 23, 2026 21:50
@anp-oai
anp-oai force-pushed the codex/split-mcp-elicitation-types branch from 1f898bc to 4513560 Compare June 23, 2026 21:50
@anp-oai
anp-oai force-pushed the codex/split-connector-metadata-types branch from e7d1ade to 4cb1d64 Compare June 23, 2026 22:03
@anp-oai
anp-oai force-pushed the codex/split-mcp-elicitation-types branch from 4513560 to 1060c61 Compare June 23, 2026 22:04
@anp-oai
anp-oai force-pushed the codex/split-connector-metadata-types branch from 4cb1d64 to 5a0f9bc Compare June 23, 2026 22:21
@anp-oai
anp-oai force-pushed the codex/split-mcp-elicitation-types branch from 1060c61 to 477f370 Compare June 23, 2026 22:21
@anp-oai
anp-oai force-pushed the codex/split-connector-metadata-types branch from 5a0f9bc to 2e70d14 Compare June 23, 2026 22:53
@anp-oai
anp-oai force-pushed the codex/split-mcp-elicitation-types branch from 477f370 to 583cc81 Compare June 23, 2026 22:53
@anp-oai
anp-oai force-pushed the codex/split-connector-metadata-types branch from 2e70d14 to 9e030cd Compare June 23, 2026 23:35
@anp-oai
anp-oai force-pushed the codex/split-mcp-elicitation-types branch from 583cc81 to 063c4e1 Compare June 23, 2026 23:36
@anp-oai
anp-oai force-pushed the codex/split-connector-metadata-types branch from 9e030cd to 0a365db Compare June 24, 2026 00:30
@anp-oai
anp-oai force-pushed the codex/split-mcp-elicitation-types branch from 063c4e1 to ef724d0 Compare June 24, 2026 00:30
@anp-oai
anp-oai force-pushed the codex/split-connector-metadata-types branch from 0a365db to 5a3489e Compare June 24, 2026 00:46
@anp-oai
anp-oai force-pushed the codex/split-mcp-elicitation-types branch from ef724d0 to eb612f1 Compare June 24, 2026 00:46
@anp-oai
anp-oai force-pushed the codex/split-connector-metadata-types branch from 5a3489e to d0bf022 Compare June 24, 2026 03:12
@anp-oai
anp-oai force-pushed the codex/split-mcp-elicitation-types branch from eb612f1 to 2424e1f Compare June 24, 2026 03:13
@anp-oai
anp-oai force-pushed the codex/split-connector-metadata-types branch from d0bf022 to 89258ea Compare June 24, 2026 04:05
@anp-oai
anp-oai force-pushed the codex/split-mcp-elicitation-types branch from 2424e1f to 3590cf4 Compare June 24, 2026 04:06
anp-oai added a commit that referenced this pull request Jun 24, 2026
## Why

Connector metadata is consumed by connector discovery, ChatGPT
integration, core, and TUI code. Treating app-server's wire DTO as the
shared domain model reverses the intended dependency direction.

## What changed

- Added connector-owned app branding, review, screenshot, metadata, and
info types.
- Added explicit conversions in app-server and TUI while preserving
app-server's wire payloads.
- Removed production app-server-protocol dependencies from connectors
and ChatGPT connector code.

## Stack

This is PR 4 of 6, stacked on [PR
#29722](#29722). Review only the
delta from `codex/split-config-layer-types`. Next: [PR
#29724](#29724).

## Validation

- Connector and tools coverage passed.
- App-server app-list coverage passed: 13 tests.
Base automatically changed from codex/split-connector-metadata-types to main June 24, 2026 05:08
@anp-oai
anp-oai force-pushed the codex/split-mcp-elicitation-types branch from 3590cf4 to 1550250 Compare June 24, 2026 05:09
@anp-oai
anp-oai marked this pull request as ready for review June 24, 2026 05:23
@anp-oai
anp-oai requested a review from a team as a code owner June 24, 2026 05:23
@anp-oai

anp-oai commented Jun 24, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: 15502505e5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@anp-oai
anp-oai force-pushed the codex/split-mcp-elicitation-types branch from 1550250 to a8788d4 Compare June 24, 2026 19:00
@anp-oai

anp-oai commented Jun 24, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@anp-oai anp-oai closed this Jun 24, 2026
@anp-oai anp-oai reopened this Jun 24, 2026
@anp-oai

anp-oai commented Jun 24, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: a8788d4935

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@anp-oai
anp-oai force-pushed the codex/split-mcp-elicitation-types branch from a8788d4 to 4b7cb7b Compare June 24, 2026 20:32
@anp-oai
anp-oai enabled auto-merge (squash) June 24, 2026 20:32
@anp-oai
anp-oai force-pushed the codex/split-mcp-elicitation-types branch from 4b7cb7b to 88479f3 Compare June 24, 2026 20:42
@anp-oai
anp-oai merged commit df1ee09 into main Jun 24, 2026
31 checks passed
@anp-oai
anp-oai deleted the codex/split-mcp-elicitation-types branch June 24, 2026 20:53
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 24, 2026
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.

2 participants