Skip to content

Enforce MCP initialization phases and server capabilities - #4940

Draft
Widthdom wants to merge 4 commits into
mainfrom
fix-issue4848
Draft

Enforce MCP initialization phases and server capabilities#4940
Widthdom wants to merge 4 commits into
mainfrom
fix-issue4848

Conversation

@Widthdom

Copy link
Copy Markdown
Owner

Summary

  • enforce explicit MCP session phases and reject duplicate initialize requests without replacing accepted session state
  • advertise only server-provided capabilities and negotiate client roots after notifications/initialized only for supported clients/protocols
  • coalesce and drain the handshake roots refresh, retain late stdio writer resources through bounded teardown, and release late initialization claims safely
  • add transcript, concurrency, teardown, audit, bilingual documentation, and changelog coverage

Validation

Documentation and changelog

  • Updated the English and Japanese MCP lifecycle/testing guidance.
  • Added changelog.d/unreleased/4848.fixed.md.

Follow-up

Fixes #4848

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.

Enforce MCP initialization phases and advertise only server capabilities

1 participant