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:
Guglielmo Colombo 2026-08-24 10:14:28 +02:00 • committed by GitHub
commit 6f0a645c20
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)
}