Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseGenerator ¶
type BaseGenerator struct {
*commongenerator.BaseGenerator
ToolTemplateName string
}
BaseGenerator for MCP projects
func NewBaseGenerator ¶
func NewBaseGenerator(templateFiles fs.FS, toolTemplateName string) *BaseGenerator
NewBaseGenerator creates a new MCP base generator
func (*BaseGenerator) GenerateProject ¶
func (g *BaseGenerator) GenerateProject(config mcp.ProjectConfig) error
GenerateProject generates a new project using the shared generator
func (*BaseGenerator) GenerateTool ¶
func (g *BaseGenerator) GenerateTool(projectRoot string, config mcp.ToolConfig) error
GenerateTool generates a new tool for a project.
func (*BaseGenerator) GenerateToolFile ¶
func (g *BaseGenerator) GenerateToolFile(filePath string, config mcp.ToolConfig) error
GenerateToolFile generates a new tool file from the unified template. This uses the shared generator's RenderTemplate method.
Click to show internal directories.
Click to hide internal directories.