Skip to content

Commit e4ecf40

Browse files
committed
fix: add warning against using 'any' type in API specs
The 'any' type is not supported in go-zero .api files. Updated tool description to guide AI agents to use concrete types.
1 parent b6ddf50 commit e4ecf40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func main() {
4242
// Register create_api_spec tool (T081 - User Story 5)
4343
mcp.AddTool(server, &mcp.Tool{
4444
Name: "create_api_spec",
45-
Description: "Create a sample API specification file for go-zero",
45+
Description: "Create a sample API specification file for go-zero. IMPORTANT: Always define concrete types for request and response - do NOT use 'any' type in .api files as it's not supported by go-zero",
4646
}, tools.CreateAPISpec)
4747

4848
// Register analyze_project tool (T097 - User Story 6)

0 commit comments

Comments
 (0)