Documentation
¶
Index ¶
- func AnalyzeProject(ctx context.Context, req *mcp.CallToolRequest, params AnalyzeProjectParams) (*mcp.CallToolResult, any, error)
- func ClearCache()
- func CreateAPIService(ctx context.Context, req *mcp.CallToolRequest, params CreateAPIServiceParams) (*mcp.CallToolResult, any, error)
- func CreateAPISpec(ctx context.Context, req *mcp.CallToolRequest, params CreateAPISpecParams) (*mcp.CallToolResult, any, error)
- func CreateRPCService(ctx context.Context, req *mcp.CallToolRequest, params CreateRPCServiceParams) (*mcp.CallToolResult, any, error)
- func GenerateAPIFromSpec(ctx context.Context, req *mcp.CallToolRequest, ...) (*mcp.CallToolResult, any, error)
- func GenerateConfigTemplate(ctx context.Context, req *mcp.CallToolRequest, params GenerateConfigParams) (*mcp.CallToolResult, any, error)
- func GenerateModel(ctx context.Context, req *mcp.CallToolRequest, params GenerateModelParams) (*mcp.CallToolResult, any, error)
- func GenerateTemplate(ctx context.Context, req *mcp.CallToolRequest, params GenerateTemplateParams) (*mcp.CallToolResult, any, error)
- func GetCacheStats() map[string]interface{}
- func QueryDocs(ctx context.Context, req *mcp.CallToolRequest, params QueryDocsParams) (*mcp.CallToolResult, any, error)
- func ValidateConfig(ctx context.Context, req *mcp.CallToolRequest, params ValidateConfigParams) (*mcp.CallToolResult, any, error)
- type AnalyzeProjectParams
- type CreateAPIServiceParams
- type CreateAPISpecParams
- type CreateRPCServiceParams
- type EndpointInput
- type GenerateAPIFromSpecParams
- type GenerateConfigParams
- type GenerateModelParams
- type GenerateTemplateParams
- type QueryDocsParams
- type ValidateConfigParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnalyzeProject ¶
func AnalyzeProject(ctx context.Context, req *mcp.CallToolRequest, params AnalyzeProjectParams) (*mcp.CallToolResult, any, error)
func CreateAPIService ¶
func CreateAPIService(ctx context.Context, req *mcp.CallToolRequest, params CreateAPIServiceParams) (*mcp.CallToolResult, any, error)
CreateAPIService creates a new go-zero API service
func CreateAPISpec ¶
func CreateAPISpec(ctx context.Context, req *mcp.CallToolRequest, params CreateAPISpecParams) (*mcp.CallToolResult, any, error)
func CreateRPCService ¶
func CreateRPCService(ctx context.Context, req *mcp.CallToolRequest, params CreateRPCServiceParams) (*mcp.CallToolResult, any, error)
func GenerateAPIFromSpec ¶
func GenerateAPIFromSpec(ctx context.Context, req *mcp.CallToolRequest, params GenerateAPIFromSpecParams) (*mcp.CallToolResult, any, error)
GenerateAPIFromSpec generates go-zero API code from API specification file (T044-T046)
func GenerateConfigTemplate ¶
func GenerateConfigTemplate(ctx context.Context, req *mcp.CallToolRequest, params GenerateConfigParams) (*mcp.CallToolResult, any, error)
GenerateConfigTemplate generates a configuration file template
func GenerateModel ¶
func GenerateModel(ctx context.Context, req *mcp.CallToolRequest, params GenerateModelParams) (*mcp.CallToolResult, any, error)
func GenerateTemplate ¶
func GenerateTemplate(ctx context.Context, req *mcp.CallToolRequest, params GenerateTemplateParams) (*mcp.CallToolResult, any, error)
GenerateTemplate generates code templates for common patterns
func GetCacheStats ¶
func GetCacheStats() map[string]interface{}
GetCacheStats returns cache statistics for monitoring
func QueryDocs ¶
func QueryDocs(ctx context.Context, req *mcp.CallToolRequest, params QueryDocsParams) (*mcp.CallToolResult, any, error)
QueryDocs queries go-zero framework documentation and migration guides
func ValidateConfig ¶
func ValidateConfig(ctx context.Context, req *mcp.CallToolRequest, params ValidateConfigParams) (*mcp.CallToolResult, any, error)
ValidateConfig validates a go-zero configuration file
Types ¶
type AnalyzeProjectParams ¶
type AnalyzeProjectParams struct {
ProjectPath string `json:"project_path"`
}
type CreateAPIServiceParams ¶
type CreateAPIServiceParams struct {
ServiceName string `json:"service_name"`
Port int `json:"port,omitempty"`
OutputDir string `json:"output_dir,omitempty"`
Style string `json:"style,omitempty"`
}
CreateAPIServiceParams defines the parameters for creating an API service
type CreateAPISpecParams ¶
type CreateRPCServiceParams ¶
type EndpointInput ¶
type GenerateAPIFromSpecParams ¶
type GenerateAPIFromSpecParams struct {
APIFile string `json:"api_file"`
OutputDir string `json:"output_dir,omitempty"`
Style string `json:"style,omitempty"`
}
GenerateAPIFromSpecParams defines the parameters for generate_api_from_spec tool (T040-T043)
type GenerateConfigParams ¶
type GenerateModelParams ¶
type GenerateTemplateParams ¶
type GenerateTemplateParams struct {
TemplateType string `json:"template_type"` // "middleware", "error_handler", "deployment"
TemplateName string `json:"template_name"` // specific template like "auth", "logging", etc.
Parameters string `json:"parameters,omitempty"` // JSON string of parameters
OutputPath string `json:"output_path,omitempty"`
}
type QueryDocsParams ¶
type QueryDocsParams struct {
Query string `json:"query"` // The documentation query
}
type ValidateConfigParams ¶
Click to show internal directories.
Click to hide internal directories.