refactor(mcpserver): update tool IDs from string UUIDs to integers
Some checks failed
CI / build-and-test (push) Failing after -31m3s

This commit is contained in:
2026-05-03 17:26:41 +02:00
parent a8214aaa8b
commit d6bf0b20d0
3 changed files with 23 additions and 12 deletions

View File

@@ -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")
}
}