We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1655059 commit 3f69455Copy full SHA for 3f69455
2 files changed
internal/mcp/mcp_parse.go
@@ -67,7 +67,11 @@ type parser struct {
67
errors []error
68
}
69
70
-func LoadToolDefinitions(data []byte) (map[string]*MCPToolDef, error) {
+func LoadToolDefinitions() (map[string]*MCPToolDef, error) {
71
+ return loadToolDefinitions(mcpToolListJSON)
72
+}
73
+
74
+func loadToolDefinitions(data []byte) (map[string]*MCPToolDef, error) {
75
defs := struct {
76
Tools []struct {
77
Name string `json:"name"`
internal/mcp/mcp_parse_test.go
@@ -37,7 +37,7 @@ func TestLoadToolDefinitions(t *testing.T) {
37
]
38
}`)
39
40
- tools, err := LoadToolDefinitions(toolJSON)
+ tools, err := loadToolDefinitions(toolJSON)
41
if err != nil {
42
t.Fatalf("Failed to load tool definitions: %v", err)
43
0 commit comments