Skip to content

Merge resources/create and resources/update into resources/write - #6

Open
jayzuccarelli wants to merge 1 commit into
modelcontextprotocol:mainfrom
jayzuccarelli:resources-write
Open

jayzuccarelli wants to merge 1 commit into
modelcontextprotocol:mainfrom
jayzuccarelli:resources-write

Conversation

@jayzuccarelli

Copy link
Copy Markdown
Contributor

Follow-up to #2, per Daniel's review comment: same guarantees, fewer methods.

resources/write requires exactly one of ifMatch: "<revision>" or ifNoneMatch: "*", as with HTTP PUT. Neither or both is invalid params. stat, delete, results, and errors are unchanged. Spec, decision log (new 2026-11-15 entry), prototype, and conformance updated; the prototype drops create/update with no aliases.

Tests: create/update tests now use write; a new test sends neither, both, and a bad ifNoneMatch and expects -32602. pytest, ruff, mypy pass.

Prepared with Claude Code; I reviewed the changes.

One write method that requires exactly one of ifMatch (replace at that
revision) or ifNoneMatch: "*" (create if absent), as with HTTP PUT.
Neither or both is invalid params. Errors, results, and delete are
unchanged. Follow-up to the review on modelcontextprotocol#2.

Spec, decision log entry, prototype, tests, and conformance scenarios.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@jayzuccarelli
jayzuccarelli requested a review from a team as a code owner November 18, 2026 22:01
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-18T22:02:28.856708Z 9793c90 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@rafe-walker

This comment was marked as spam.

@jayzuccarelli

Copy link
Copy Markdown
Contributor Author

@rafe-walker thanks, that's a useful data point. It backs keeping the conflict error to the revision only: if a current-content field is ever added, it should stay structured and separate from currentRevision, never inlined as text.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants