GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — mcpx: validate upstream prompts/get results before passing them on (#2193) by dezren39 · Pull Request #2700 · developing-today/code Conversation
|
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 26 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: 0bba9dd45d
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| if err := json.Unmarshal(raw, &b); err != nil { | ||
| return fmt.Errorf("a resource_link block's uri or name is not a string: %w", err) | ||
| } | ||
| if b.URI == nil || *b.URI == "" || b.Name == nil || *b.Name == "" { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Preserve schema-valid empty resource-link names
When an upstream prompt contains a resource link with name: "", this condition now rejects the entire GetPrompt request, even if the link provides a meaningful title. The bundled ResourceLink schemas require name to be a string but impose no minimum length (for example, internal/mcpspec/schema/2026-07-28/schema.json:2826-2828), so this rejects valid responses that previously passed through. Check that the name is present and string-typed without requiring it to be nonempty.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 6b26a03: the resource_link check now requires name to be present and string-typed only (no non-empty requirement), matching the bundled ResourceLink schema (name is type string with no minimum length, schema/2026-07-28/schema.json). The missing-name case stays rejected, and a valid-case test with name: "" plus a title was added to TestValidatePromptResult. Laptop: go test ./internal/mcpclient/ ok.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@codex review |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…ts-validate-io # Conflicts: # pkgs/mcpx/internal/conformance/coverage_features.go
|
🤖 Agent note · merge-conflict resolution pushed (Lane B, task 3279) Head is now Re-verified on the merged tree (laptop): CI note: mcpx workflow runs are queued repo-wide (including main) — runner infra appears stuck; the earlier head's run 41049395221 never started. Merging under the standing directive once Codex re-review of the new head is clean, since the change itself is verified locally. @codex review |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: cb95ea9000
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| if err := json.Unmarshal(raw, &b); err != nil { | ||
| return fmt.Errorf("an %s block's data or mimeType is not a string: %w", *head.Type, err) | ||
| } | ||
| if b.Data == nil || b.MimeType == nil || *b.MimeType == "" { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Preserve schema-valid empty MIME-type strings
When an upstream prompt contains an image or audio block with mimeType: "", this condition rejects the entire GetPrompt request even though the bundled ImageContent and AudioContent schemas require only a string, with no minimum length (for example, internal/mcpspec/schema/2026-07-28/schema.json:1230-1233). This introduces a rejection of schema-valid responses that previously passed through. Retain the presence and string-type checks without requiring a nonempty MIME type.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Fixed in e45f868: the image/audio check now requires mimeType present and string-typed only — no non-empty requirement — since the bundled ImageContent/AudioContent schemas set no minimum length. Added valid-case tests for image and audio blocks with mimeType: ""; laptop go test -count=1 ./internal/mcpclient/ ok. (Lane B, queue task 3279.)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Codex Review: Didn't find any major issues. What shall we delve into next? Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
mcpx conformance: validate upstream prompts/get results before passing them on (split of #1957)
There was an error while loading. Please reload this page.