Skip to content

Conversation

@jba
Copy link
Contributor

@jba jba commented Aug 21, 2025

Replace all occurrences of ServerRequest[*CallToolParams] and other concrete instantiations with CallToolRequest and the like.

Make the XXXRequest types aliases, to preserve the convenience of generics for the internal machinery (see shared.go, for example.)

I will expand the aliases in a followup PR.

Replace all occurrences of ServerRequest[*CallToolParams] and other
concrete instantiations with CallToolRequest and the like.

Make the XXXRequest types aliases, to preserve the convenience of
generics for the internal machinery (see shared.go, for example.)

TODO: either expand the aliases or unexport ServerRequest.
(The latter will be problematic for docs.)
@jba jba requested review from findleyr and samthanawalla August 21, 2025 14:25
@jba jba requested a review from findleyr August 21, 2025 16:07
@jba jba merged commit 6378df6 into modelcontextprotocol:main Aug 21, 2025
6 checks passed
yasomaru pushed a commit to yasomaru/go-sdk that referenced this pull request Aug 28, 2025
Replace all occurrences of ServerRequest[*CallToolParams] and other
concrete instantiations with CallToolRequest and the like.

Make the XXXRequest types aliases, to preserve the convenience of
generics for the internal machinery (see shared.go, for example.)

I will expand the aliases in a followup PR.
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