Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildImportPath ¶
BuildImportPath finds the module root and builds the import path for mcptools
Types ¶
type Generator ¶
type Generator struct { PackageName string // contains filtered or unexported fields }
func NewGenerator ¶
func (*Generator) GenerateHTTPClient ¶
func (*Generator) GenerateHelpers ¶
GenerateHelpers creates a helpers.go file with utility functions for MCP tools
func (*Generator) GenerateMCP ¶
GenerateMCP generates the MCP tool files while preserving existing handler implementations and imports
func (*Generator) GenerateServerFile ¶
GenerateServerFile creates a server.go file in the same package as the tools
type ToolTemplateData ¶
type ToolTemplateData struct { ToolNameOriginal string ToolNameGo string ToolHandlerName string ToolDescription string RawInputSchema string ResponseTemplate []converter.ResponseTemplate InputSchemaConst string ResponseTemplateConst string }
ToolTemplateData holds the data to pass to the template for a single tool
Click to show internal directories.
Click to hide internal directories.