Generate Mcp Tool
Quickly generate a new MCP tool file from a predefined template.
<!-- fake-claude-plugins/commands/generate-mcp-tool.md -->
description: Generate a new MCP tool file from template argument-hint: [entity-name]
@mcp-dev-go-sdk-agent Create a new tool file at internal/tools/$1.go for the entity '$1'.
Include these operations:
create_$1get_$1update_$1list_$1delete_$1
Follow the exact pattern from internal/tools/people.go:
- Proper Input/Output structs with jsonschema tags
- Type-safe handlers using
mcp.AddTool[In, Out] - Integration with twentyClient
Register$1Tools(server, client)function
Create the complete implementation and then remind me to:
- Add the entity model to
internal/models/types.go - Register tools in
internal/server/server.go - Add Twenty CRM client methods in
internal/client/twenty_client.go