mcp: add return type to subscriptions/listen (#1088)

This PR adds the expected return type to `subscriptions/listen` rpc
This commit is contained in:
Guglielmo Colombo 2026-07-15 14:37:19 +02:00 • committed by GitHub
commit 8baa4ccebe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1443,7 +1443,7 @@ func (cs *ClientSession) cancelAllResourceSubscriptions() {
// usual handlers registered in [ClientOptions].
func (cs *ClientSession) subscriptionsListen(ctx context.Context, params *SubscriptionsListenParams) error {
params = injectRequestMeta(cs, params)
_, err := handleSend[*emptyResult](ctx, methodSubscriptionsListen, newClientRequest(cs, orZero[Params](params)))
_, err := handleSend[*SubscriptionsListenResult](ctx, methodSubscriptionsListen, newClientRequest(cs, orZero[Params](params)))
return err
}