Skip to content

Commit 9747156

Browse files
authored
delete ToolInputSchema Properties json omitempty tag
According to the mcp's structural definition of the tool, inputSchema.properties cannot be null
1 parent c3e793f commit 9747156

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mcp/tools.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func (t Tool) MarshalJSON() ([]byte, error) {
105105

106106
type ToolInputSchema struct {
107107
Type string `json:"type"`
108-
Properties map[string]interface{} `json:"properties,omitempty"`
108+
Properties map[string]interface{} `json:"properties"`
109109
Required []string `json:"required,omitempty"`
110110
}
111111

0 commit comments

Comments
 (0)