mcp: add ServerSession.NotifyElicitationComplete (#1194)
Adds: ```go func (ss *ServerSession) NotifyElicitationComplete(ctx context.Context, params *ElicitationCompleteParams) error ``` As according to [spec](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/main/schema/2025-11-25/schema.ts#L2493-L2501)
This commit is contained in:
parent
3d6450fccf
commit
6f0a645c20
1 changed files with 53 additions and 6 deletions
|
|
@ -300,10 +300,9 @@ func TestURLElicitationRequired(t *testing.T) {
|
|||
// In a real scenario, this would happen out-of-band after the user
|
||||
// completes the form submission.
|
||||
go func() {
|
||||
err := handleNotify(ctx, notificationElicitationComplete,
|
||||
newServerRequest(ss, &ElicitationCompleteParams{
|
||||
ElicitationID: elicitID,
|
||||
}))
|
||||
err := ss.NotifyElicitationComplete(ctx, &ElicitationCompleteParams{
|
||||
ElicitationID: elicitID,
|
||||
})
|
||||
if err != nil {
|
||||
t.Errorf("failed to send elicitation complete notification: %v", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue