Documentation
¶
Overview ¶
Package tools implements MCP tool handlers for mtb.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ChecklistInput ¶ added in v0.5.0
type ChecklistInput struct {
Project string `json:"project" jsonschema:"description of the project being evaluated"`
}
type ChecklistItem ¶ added in v0.5.0
type ChecklistOutput ¶ added in v0.5.0
type ChecklistOutput struct {
Items []ChecklistItem `json:"items"`
Guidance string `json:"guidance"`
}
func HandleChecklist ¶ added in v0.5.0
func HandleChecklist(ctx context.Context, req *mcp.CallToolRequest, input ChecklistInput) (*mcp.CallToolResult, ChecklistOutput, error)
type CompareInput ¶ added in v0.8.0
type CompareInput struct {
Project string `json:"project" jsonschema:"description of the project being evaluated"`
}
type CompareOutput ¶ added in v0.8.0
type CompareOutput struct {
Guidance string `json:"guidance"`
}
func HandleCompare ¶ added in v0.8.0
func HandleCompare(ctx context.Context, req *mcp.CallToolRequest, input CompareInput) (*mcp.CallToolResult, CompareOutput, error)
type ConsultInput ¶ added in v0.4.0
type ConsultInput struct {
Problem string `json:"problem" jsonschema:"what the user wants to build or the problem they want to solve"`
Path string `json:"path,omitempty" jsonschema:"project directory to scan for existing dependencies"`
Language string `json:"language,omitempty" jsonschema:"filter GitHub search by programming language"`
}
type ConsultOutput ¶ added in v0.4.0
type ConsultOutput struct {
Questions []string `json:"questions"`
Guidance string `json:"guidance"`
}
func HandleConsult ¶ added in v0.4.0
func HandleConsult(ctx context.Context, req *mcp.CallToolRequest, input ConsultInput) (*mcp.CallToolResult, ConsultOutput, error)
type DepsInput ¶
type DepsInput struct {
Path string `json:"path" jsonschema:"path to directory to scan for dependencies"`
}
type DepsOutput ¶
type DepsOutput struct {
Guidance string `json:"guidance"`
}
func HandleDeps ¶
func HandleDeps(ctx context.Context, req *mcp.CallToolRequest, input DepsInput) (*mcp.CallToolResult, DepsOutput, error)
type LanguageSummary ¶
type StatsInput ¶
type StatsInput struct {
Path string `json:"path" jsonschema:"path to directory or file to analyze"`
Cocomo *bool `json:"cocomo,omitempty" jsonschema:"include COCOMO cost estimates (default true)"`
Complexity *bool `json:"complexity,omitempty" jsonschema:"include complexity metrics (default true)"`
ExcludeDir []string `json:"exclude_dir,omitempty" jsonschema:"directories to exclude from analysis"`
ExcludeExtensions []string `json:"exclude_ext,omitempty" jsonschema:"file extensions to exclude (e.g. min.js)"`
IncludeExtensions []string `json:"include_ext,omitempty" jsonschema:"only include these file extensions"`
}
type StatsOutput ¶
type StatsOutput struct {
LanguageSummary []LanguageSummary `json:"languageSummary"`
EstimatedCost float64 `json:"estimatedCost"`
EstimatedScheduleMonths float64 `json:"estimatedScheduleMonths"`
EstimatedPeople float64 `json:"estimatedPeople"`
}
func HandleStats ¶
func HandleStats(ctx context.Context, req *mcp.CallToolRequest, input StatsInput) (*mcp.CallToolResult, StatsOutput, error)
Click to show internal directories.
Click to hide internal directories.