Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnvironmentTool ¶
type EnvironmentTool struct {
// contains filtered or unexported fields
}
EnvironmentTool handles environment-related MCP operations
func NewEnvironmentTool ¶
func NewEnvironmentTool(client client.Client, name string) *EnvironmentTool
NewEnvironmentTool creates a new environment tool
func (*EnvironmentTool) Definition ¶
func (t *EnvironmentTool) Definition() ToolDefinition
Definition returns the tool definition for MCP
func (*EnvironmentTool) Execute ¶
func (t *EnvironmentTool) Execute(ctx context.Context, params json.RawMessage) (string, error)
Execute runs the tool with given parameters
type ExtendedTool ¶ added in v1.9.0
type ExtendedTool struct {
// contains filtered or unexported fields
}
ExtendedTool handles additional typed environment/API MCP operations.
func NewExtendedTool ¶ added in v1.9.0
func NewExtendedTool(client client.Client, name string) *ExtendedTool
NewExtendedTool creates a typed MCP tool for the given name.
func (*ExtendedTool) Definition ¶ added in v1.9.0
func (t *ExtendedTool) Definition() ToolDefinition
Definition returns the MCP tool definition.
func (*ExtendedTool) Execute ¶ added in v1.9.0
func (t *ExtendedTool) Execute(ctx context.Context, params json.RawMessage) (string, error)
Execute runs the named tool.
type LogsTool ¶
type LogsTool struct {
// contains filtered or unexported fields
}
LogsTool handles log-related MCP operations
func NewLogsTool ¶
NewLogsTool creates a new logs tool
func (*LogsTool) Definition ¶
func (t *LogsTool) Definition() ToolDefinition
Definition returns the tool definition for MCP
type OrgTool ¶
type OrgTool struct {
// contains filtered or unexported fields
}
OrgTool handles organization-related MCP operations
func NewOrgTool ¶
NewOrgTool creates a new organization tool
func (*OrgTool) Definition ¶
func (t *OrgTool) Definition() ToolDefinition
Definition returns the tool definition for MCP
type ServiceTool ¶
type ServiceTool struct {
// contains filtered or unexported fields
}
ServiceTool handles service-related MCP operations
func NewServiceTool ¶
func NewServiceTool(client client.Client, name string) *ServiceTool
NewServiceTool creates a new service tool. Exec stays disabled: use NewServiceToolWithExec for the exec tool itself.
func NewServiceToolWithExec ¶ added in v1.9.0
func NewServiceToolWithExec(apiClient client.Client, name string, allowExec bool) *ServiceTool
NewServiceToolWithExec creates a service tool, saying whether running commands in a customer's containers is permitted. Off unless the operator turned it on: every other tool here reads or restarts something Shipyard owns, while this one runs arbitrary code inside a running container.
func (*ServiceTool) Definition ¶
func (t *ServiceTool) Definition() ToolDefinition
Definition returns the tool definition for MCP
func (*ServiceTool) Execute ¶
func (t *ServiceTool) Execute(ctx context.Context, params json.RawMessage) (string, error)
Execute runs the tool with given parameters
type TelepresenceTool ¶
type TelepresenceTool struct {
// contains filtered or unexported fields
}
TelepresenceTool handles telepresence operations
func NewTelepresenceTool ¶
func NewTelepresenceTool(client client.Client, name string) *TelepresenceTool
NewTelepresenceTool creates a new telepresence tool
func (*TelepresenceTool) Definition ¶
func (t *TelepresenceTool) Definition() ToolDefinition
Definition returns the tool definition for MCP
func (*TelepresenceTool) Execute ¶
func (t *TelepresenceTool) Execute(ctx context.Context, params json.RawMessage) (string, error)
Execute runs the tool with given parameters
type Tool ¶
type Tool interface {
Definition() ToolDefinition
Execute(ctx context.Context, params json.RawMessage) (string, error)
}
Tool interface for MCP tools
type ToolDefinition ¶
type ToolDefinition struct {
Name string `json:"name"`
Description string `json:"description"`
InputSchema interface{} `json:"inputSchema"`
}
ToolDefinition describes an MCP tool
type VolumeTool ¶
type VolumeTool struct {
// contains filtered or unexported fields
}
VolumeTool handles volume-related MCP operations
func NewVolumeTool ¶
func NewVolumeTool(client client.Client, name string) *VolumeTool
NewVolumeTool creates a new volume tool
func (*VolumeTool) Definition ¶
func (t *VolumeTool) Definition() ToolDefinition
Definition returns the tool definition for MCP
func (*VolumeTool) Execute ¶
func (t *VolumeTool) Execute(ctx context.Context, params json.RawMessage) (string, error)
Execute runs the tool with given parameters