Fix Mcp Patterns
Automatically fix common MCP Go SDK pattern violations in your code.
<!-- fake-claude-plugins/commands/fix-mcp-patterns.md -->
description: Auto-fix common MCP Go SDK pattern violations in current file
@mcp-dev-go-sdk-agent Scan the current file and fix these common violations:
Fixes to Apply
- Missing CallToolResult: Add
&mcp.CallToolResult{}to returns - Handler Signatures: Correct to
func(context.Context, *mcp.CallToolRequest, In) (*mcp.CallToolResult, Out, error) - Missing Context: Add
context.Contextas first parameter - Jsonschema Tags: Add missing
descriptiontags to all input fields - Error Returns: Ensure all errors are properly returned, never ignored
Show clear before/after diff for each fix made.
If no issues found, confirm file follows all MCP Go SDK best practices.