Skip to content

mcp: document and test explicit subscriptions/listen calls - #1475

Closed
IAmSurajBobade wants to merge 1 commit into
modelcontextprotocol:mainfrom
IAmSurajBobade:issue/1474
Closed

IAmSurajBobade wants to merge 1 commit into
modelcontextprotocol:mainfrom
IAmSurajBobade:issue/1474

Conversation

@IAmSurajBobade

Copy link
Copy Markdown
Contributor

CallCustomMethod already supports registered standard requests, but its documentation requires custom registration, which rejects standard method names. Document explicit subscriptions/listen invocation using native SDK types, acknowledgement middleware, cancellation, and interaction with automatic subscriptions.

Add regression test coverage for notification delivery, subscription identity, cancellation without closing the session, successful completion, and JSON-RPC errors. No runtime implementation, exported signatures, or dependencies change.

Validation: go test -race ./... -timeout=5m, focused tests repeated ten times, go vet ./..., and documentation regeneration passed.

Fixes #1474

@github-actions github-actions Bot added the missing-issue-link Auto-closed: PR needs a linked issue assigned to its author (see CONTRIBUTING.md) label Oct 29, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This PR has been closed automatically. This repo only keeps pull requests open when they come from a maintainer, or from a contributor a maintainer has assigned to the linked issue, and you aren't currently assigned to #1474.

You're welcome to keep pushing commits here (just avoid force-pushing, since GitHub can't reopen a rewritten branch), but that on its own won't get the PR reviewed or the issue assigned. There's no need to open a new PR either way.

Maintainers: reopen, remove missing-issue-link, or add bypass-issue-check to override.

@github-actions github-actions Bot closed this Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

missing-issue-link Auto-closed: PR needs a linked issue assigned to its author (see CONTRIBUTING.md)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

mcp: document explicit subscriptions/listen calls through CallCustomMethod

1 participant