mcp: validate user-provided output schemas (#408)

toolForErr was ignoring the output schema if the output type was any.
That neglected the case where the user provided their own output schema.

Fixes #371.
This commit is contained in:
Jonathan Amsterdam 2025-09-04 14:04:27 -04:00 • committed by GitHub
commit 30261728f7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,7 +9,6 @@ import (
"context"
"encoding/json"
"fmt"
// "log"
"github.com/google/jsonschema-go/jsonschema"
)