Skip to content

Update rmcp to 1.7.0#24763

Merged
anp-oai merged 6 commits into
mainfrom
codex/update-rmcp-1-7
May 27, 2026
Merged

Update rmcp to 1.7.0#24763
anp-oai merged 6 commits into
mainfrom
codex/update-rmcp-1-7

Conversation

@anp-oai
Copy link
Copy Markdown
Collaborator

@anp-oai anp-oai commented May 27, 2026

WIll make it easier to uprev when the new draft spec is supported.

Also updates reqwest where needed for compatibility but doesn't update it everywhere since this is already a large diff.

@anp-oai anp-oai requested a review from a team as a code owner May 27, 2026 15:32
@anp-oai anp-oai force-pushed the codex/update-rmcp-1-7 branch from ede15b6 to fb0368c Compare May 27, 2026 15:35
Copy link
Copy Markdown
Contributor

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ede15b6995

ℹ️ 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".

Comment thread codex-rs/rmcp-client/src/http_client_adapter.rs
@anp-oai anp-oai force-pushed the codex/update-rmcp-1-7 branch from d6deb30 to 8af3fea Compare May 27, 2026 18:08
Comment thread codex-rs/rmcp-client/src/http_client_adapter.rs Outdated
Comment thread codex-rs/rmcp-client/src/http_client_adapter.rs Outdated
OAuthState::Authorized(manager) => manager,
OAuthState::Unauthorized(manager) => manager,
OAuthState::Session(_) | OAuthState::AuthorizedHttpClient(_) => {
_ => {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we continue to be explicit so we're forced to update this code if a new variant is introduced?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO maybe yes, but the rmcp update past 1.x moved these enums to be #[non_exhaustive] by default. I think if we wanted we could allow the non-exhaustive lint and still do exhaustive matching. WDYT?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't feel that strongly. I suppose it's low enough probability that we would get a new variant that merits updating this code?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discussed offline, shipping as-is

Copy link
Copy Markdown
Collaborator

@bolinfest bolinfest left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing this migration: it feels like there are a lot of ergonomic API improvements as part of this!

@anp-oai anp-oai merged commit 9105787 into main May 27, 2026
45 of 46 checks passed
@anp-oai anp-oai deleted the codex/update-rmcp-1-7 branch May 27, 2026 21:52
@github-actions github-actions Bot locked and limited conversation to collaborators May 27, 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