Skip to content

Test MCP HTTP protocol fallback and cap inspect events - #78329

Merged
pelikhan merged 2 commits into
mainfrom
copilot/go-fan-go-module-review
Nov 16, 2026
Merged

pelikhan merged 2 commits into
mainfrom
copilot/go-fan-go-module-review

Conversation

@gh-aw-bot

@gh-aw-bot gh-aw-bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

The MCP SDK review called for coverage of stateful HTTP protocol renegotiation and an explicit event-size limit in the inspect client.

  • Stateful HTTP negotiation: Share the handler setup with a regression test that verifies fallback to 2025-11-25.
  • Inspect event bound: Set the streamable HTTP client’s event limit explicitly:
MaxEventSize: mcp.DefaultMaxEventSize,

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
@gh-aw-bot gh-aw-bot changed the title [WIP] Review Go module github.com/modelcontextprotocol/go-sdk Test MCP HTTP protocol fallback and cap inspect events Nov 16, 2026
@pelikhan
pelikhan marked this pull request as ready for review November 16, 2026 15:28
Copilot AI adaptive review requested due to automatic review settings November 16, 2026 15:28
@pelikhan
pelikhan merged commit 25e7cc0 into main Nov 16, 2026
64 checks passed
@pelikhan
pelikhan deleted the copilot/go-fan-go-module-review branch November 16, 2026 15:29
@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

✅ Test Quality Sentinel completed test quality analysis.

Test Quality Sentinel

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

🧪 Test quality analysis by Test Quality Sentinel · copilot · routed: haiku55 xhigh · ~1 AIC · ⌖ ~2 AIC · ⊞ 7.2K · ◷

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Specification Reviewer completed successfully!

PR Specification Reviewer

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated by PR Specification Reviewer for #78329 · copilot · gpt56 · ~2 AIC · ⌖ ~2 AIC · ⊞ 1.6K · ◷

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Code Quality Reviewer completed the code quality review.

PR Code Quality Reviewer

Outcome: reported_action

The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt56 · ~2 AIC · ⌖ ~1 AIC · ⊞ 1.5K · ◷

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~5 AIC · ⌖ ~2 AIC · ⊞ 6.6K · ◷

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

✅ Ponytail Reviewer completed successfully!

Ponytail Reviewer

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated by Ponytail Reviewer for #78329 · codex · routed: gpt61 medium · ~3 AIC · ⌖ ~1 AIC · ⊞ 185 · ◷

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues were identified in the MCP HTTP coverage and inspect-client event-size limit changes.

No open issues 🎉

What changed in this PR

This PR strengthens MCP HTTP coverage and explicitly configures the inspect client’s event-size limit, addressing two recommendations from #78314.

Changes:

  • Extracts shared stateful HTTP handler setup for production and tests.
  • Adds a regression test asserting negotiation to protocol version 2025-11-25.
  • Sets the inspect HTTP client’s event limit to mcp.DefaultMaxEventSize.
File Description
pkg/​cli/​mcp_server_http.go Extracts handler construction while preserving existing settings.
pkg/​cli/​mcp_server_http_test.go Adds stateful HTTP protocol negotiation coverage.
pkg/​cli/​mcp_inspect_mcp.go Explicitly sets the SDK’s default event-size limit.

Review effort: Balanced (dynamic)

@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v1.3.1

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.

[go-fan] Go Module Review: github.com/modelcontextprotocol/go-sdk

4 participants