File tree Expand file tree Collapse file tree 2 files changed +0
-16
lines changed Expand file tree Collapse file tree 2 files changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -689,7 +689,3 @@ func TestMCPResponseFormat(t *testing.T) {
689689 t .Errorf ("expected Content[0] to be TextContent" )
690690 }
691691}
692-
693- func requestFor [P mcp.Params ](ss * mcp.ServerSession , p P ) * mcp.ServerRequest [P ] {
694- return & mcp.ServerRequest [P ]{Session : ss , Params : p }
695- }
Original file line number Diff line number Diff line change @@ -27,18 +27,6 @@ type serverTool struct {
2727 handler ToolHandler
2828}
2929
30- func setSchema [T any ](sfield * * jsonschema.Schema , rfield * * jsonschema.Resolved ) error {
31- var err error
32- if * sfield == nil {
33- * sfield , err = jsonschema.For [T ](nil )
34- }
35- if err != nil {
36- return err
37- }
38- * rfield , err = (* sfield ).Resolve (& jsonschema.ResolveOptions {ValidateDefaults : true })
39- return err
40- }
41-
4230// unmarshalSchema unmarshals data into v and validates the result according to
4331// the given resolved schema.
4432func unmarshalSchema (data json.RawMessage , resolved * jsonschema.Resolved , v any ) error {
You can’t perform that action at this time.
0 commit comments