Documentation
¶
Index ¶
- func CreateHandler(tool Tool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error)
- func GenerateMetadata(tool Tool) mcp.Tool
- type ChalkApplyParams
- type ChalkApplyTool
- type ChalkConfigParams
- type ChalkConfigTool
- type ChalkEnvironmentOperation
- type ChalkEnvironmentParams
- type ChalkEnvironmentTool
- type ChalkFeaturesParams
- type ChalkFeaturesTool
- type ChalkLintParams
- type ChalkLintTool
- type ChalkLogsParams
- type ChalkLogsTool
- type ChalkQueryParams
- type ChalkQueryTool
- type CommandExecutor
- type DefaultCommandExecutor
- type MockCommandExecutor
- type Tool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateHandler ¶
func CreateHandler(tool Tool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error)
func GenerateMetadata ¶
Types ¶
type ChalkApplyParams ¶
type ChalkApplyTool ¶
type ChalkApplyTool struct {
// contains filtered or unexported fields
}
func NewChalkApplyTool ¶
func NewChalkApplyTool(executor CommandExecutor) *ChalkApplyTool
func (*ChalkApplyTool) Description ¶
func (t *ChalkApplyTool) Description() string
func (*ChalkApplyTool) Execute ¶
func (t *ChalkApplyTool) Execute(ctx context.Context, args any) (*mcp.CallToolResult, error)
func (*ChalkApplyTool) Name ¶
func (t *ChalkApplyTool) Name() string
func (*ChalkApplyTool) ParamsType ¶
func (t *ChalkApplyTool) ParamsType() reflect.Type
type ChalkConfigParams ¶
type ChalkConfigParams struct {
ProjectRepository string `` /* 146-byte string literal not displayed */
}
type ChalkConfigTool ¶
type ChalkConfigTool struct {
// contains filtered or unexported fields
}
func NewChalkConfigTool ¶
func NewChalkConfigTool(executor CommandExecutor) *ChalkConfigTool
func (*ChalkConfigTool) Description ¶
func (t *ChalkConfigTool) Description() string
func (*ChalkConfigTool) Execute ¶
func (t *ChalkConfigTool) Execute(ctx context.Context, args any) (*mcp.CallToolResult, error)
func (*ChalkConfigTool) Name ¶
func (t *ChalkConfigTool) Name() string
func (*ChalkConfigTool) ParamsType ¶
func (t *ChalkConfigTool) ParamsType() reflect.Type
type ChalkEnvironmentOperation ¶
type ChalkEnvironmentOperation string
const ( ChalkEnvironmentOperationSet ChalkEnvironmentOperation = "set" ChalkEnvironmentOperationGet ChalkEnvironmentOperation = "get" )
type ChalkEnvironmentParams ¶
type ChalkEnvironmentTool ¶
type ChalkEnvironmentTool struct {
// contains filtered or unexported fields
}
func NewChalkEnvironmentTool ¶
func NewChalkEnvironmentTool(executor CommandExecutor) *ChalkEnvironmentTool
func (*ChalkEnvironmentTool) Description ¶
func (t *ChalkEnvironmentTool) Description() string
func (*ChalkEnvironmentTool) Execute ¶
func (t *ChalkEnvironmentTool) Execute(ctx context.Context, args any) (*mcp.CallToolResult, error)
func (*ChalkEnvironmentTool) Name ¶
func (t *ChalkEnvironmentTool) Name() string
func (*ChalkEnvironmentTool) ParamsType ¶
func (t *ChalkEnvironmentTool) ParamsType() reflect.Type
type ChalkFeaturesParams ¶
type ChalkFeaturesParams struct {
ProjectRepository string `` /* 168-byte string literal not displayed */
}
type ChalkFeaturesTool ¶
type ChalkFeaturesTool struct {
// contains filtered or unexported fields
}
func NewChalkFeaturesTool ¶
func NewChalkFeaturesTool(executor CommandExecutor) *ChalkFeaturesTool
func (*ChalkFeaturesTool) Description ¶
func (t *ChalkFeaturesTool) Description() string
func (*ChalkFeaturesTool) Execute ¶
func (t *ChalkFeaturesTool) Execute(ctx context.Context, args any) (*mcp.CallToolResult, error)
func (*ChalkFeaturesTool) Name ¶
func (t *ChalkFeaturesTool) Name() string
func (*ChalkFeaturesTool) ParamsType ¶
func (t *ChalkFeaturesTool) ParamsType() reflect.Type
type ChalkLintParams ¶
type ChalkLintParams struct {
ProjectRepository string `` /* 154-byte string literal not displayed */
}
type ChalkLintTool ¶
type ChalkLintTool struct {
// contains filtered or unexported fields
}
func NewChalkLintTool ¶
func NewChalkLintTool(executor CommandExecutor) *ChalkLintTool
func (*ChalkLintTool) Description ¶
func (t *ChalkLintTool) Description() string
func (*ChalkLintTool) Execute ¶
func (t *ChalkLintTool) Execute(ctx context.Context, args any) (*mcp.CallToolResult, error)
func (*ChalkLintTool) Name ¶
func (t *ChalkLintTool) Name() string
func (*ChalkLintTool) ParamsType ¶
func (t *ChalkLintTool) ParamsType() reflect.Type
type ChalkLogsParams ¶
type ChalkLogsTool ¶
type ChalkLogsTool struct {
// contains filtered or unexported fields
}
func NewChalkLogsTool ¶
func NewChalkLogsTool(executor CommandExecutor) *ChalkLogsTool
func (*ChalkLogsTool) Description ¶
func (t *ChalkLogsTool) Description() string
func (*ChalkLogsTool) Execute ¶
func (t *ChalkLogsTool) Execute(ctx context.Context, args any) (*mcp.CallToolResult, error)
func (*ChalkLogsTool) Name ¶
func (t *ChalkLogsTool) Name() string
func (*ChalkLogsTool) ParamsType ¶
func (t *ChalkLogsTool) ParamsType() reflect.Type
type ChalkQueryParams ¶
type ChalkQueryParams struct {
ProjectRepository string `` /* 146-byte string literal not displayed */
InputFeatures map[string]string `` /* 162-byte string literal not displayed */
OutputFeatures []string `` /* 127-byte string literal not displayed */
BranchName string `json:"branch_name" mcp:"description=Name of the branch to query against. If not provided, uses the mainline deployment."`
}
type ChalkQueryTool ¶
type ChalkQueryTool struct {
// contains filtered or unexported fields
}
func NewChalkQueryTool ¶
func NewChalkQueryTool(executor CommandExecutor) *ChalkQueryTool
func (*ChalkQueryTool) Description ¶
func (t *ChalkQueryTool) Description() string
func (*ChalkQueryTool) Execute ¶
func (t *ChalkQueryTool) Execute(ctx context.Context, args any) (*mcp.CallToolResult, error)
func (*ChalkQueryTool) Name ¶
func (t *ChalkQueryTool) Name() string
func (*ChalkQueryTool) ParamsType ¶
func (t *ChalkQueryTool) ParamsType() reflect.Type
type CommandExecutor ¶
type DefaultCommandExecutor ¶
type DefaultCommandExecutor struct{}
DefaultCommandExecutor calls chalk command with the given args
type MockCommandExecutor ¶
MockCommandExecutor for testing
type Tool ¶
type Tool interface {
// Name returns the tool name
Name() string
// Description returns the tool description
Description() string
// Execute runs the tool with parsed arguments
Execute(ctx context.Context, args any) (*mcp.CallToolResult, error)
// ParamsType returns the type of the params struct
ParamsType() reflect.Type
}
Click to show internal directories.
Click to hide internal directories.