refactor(mcpserver): update tool IDs from string UUIDs to integers
Some checks failed
CI / build-and-test (push) Failing after -31m3s
Some checks failed
CI / build-and-test (push) Failing after -31m3s
This commit is contained in:
@@ -31,7 +31,7 @@ func TestSetToolSchemasAddsEmptyPropertiesForNoArgInput(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestSetToolSchemasUsesStringUUIDsInListOutput(t *testing.T) {
|
||||
func TestSetToolSchemasUsesIntegerIDsInListOutput(t *testing.T) {
|
||||
tool := &mcp.Tool{Name: "list_thoughts"}
|
||||
|
||||
if err := setToolSchemas[tools.ListInput, tools.ListOutput](tool); err != nil {
|
||||
@@ -55,11 +55,8 @@ func TestSetToolSchemasUsesStringUUIDsInListOutput(t *testing.T) {
|
||||
if idSchema == nil {
|
||||
t.Fatal("missing id schema")
|
||||
}
|
||||
if idSchema.Type != "string" {
|
||||
t.Fatalf("id schema type = %q, want %q", idSchema.Type, "string")
|
||||
}
|
||||
if idSchema.Format != "uuid" {
|
||||
t.Fatalf("id schema format = %q, want %q", idSchema.Format, "uuid")
|
||||
if idSchema.Type != "integer" {
|
||||
t.Fatalf("id schema type = %q, want %q", idSchema.Type, "integer")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user