tool

package
v0.6.39 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2026 License: AGPL-3.0, Apache-2.0, MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EqualsCachedTodos

func EqualsCachedTodos(todos []*client.AgentTodoAttributes) bool

func GetCachedTodos

func GetCachedTodos() []*client.AgentTodoFragment

func HasCachedTodos

func HasCachedTodos() bool

func MarkCachedTodoItem

func MarkCachedTodoItem(title string, done bool) bool

func MarkCachedTodoItems

func MarkCachedTodoItems(items []*client.AgentTodoFragment)

func UpdateCachedTodos

func UpdateCachedTodos(todos []*client.AgentTodoFragment)

Types

type ConsoleTool

type ConsoleTool struct {
	// contains filtered or unexported fields
}

func (*ConsoleTool) ID

func (t *ConsoleTool) ID() ID

type CreateBranch

type CreateBranch struct {
	ConsoleTool
	CommitMessage string
	BranchName    string
}

func (*CreateBranch) Install

func (in *CreateBranch) Install(server *server.MCPServer)

type CreateCommit

type CreateCommit struct {
	ConsoleTool
	CommitMessage string
}

CreateCommit is an MCP tool that stages all changes, commits them with the provided message, and pushes to the current branch.

func (*CreateCommit) Install

func (in *CreateCommit) Install(s *server.MCPServer)

type CreatePullRequest

type CreatePullRequest struct {
	ConsoleTool
}

CreatePullRequest is an MCP tool that creates a pull request for a given agent run

func (*CreatePullRequest) Install

func (in *CreatePullRequest) Install(server *server.MCPServer)

type FetchTodos

type FetchTodos struct {
	ConsoleTool
}

FetchTodos is an MCP tool that gets the todos for a given agent run

func (*FetchTodos) Install

func (in *FetchTodos) Install(server *server.MCPServer)

type GetCILogs

type GetCILogs struct {
	// contains filtered or unexported fields
}

GetCILogs is an MCP tool that fetches the raw log output for a single failed GitHub Actions job identified by its check run ID.

func (*GetCILogs) ID

func (in *GetCILogs) ID() ID

func (*GetCILogs) Install

func (in *GetCILogs) Install(s *server.MCPServer)

type GetPRState

type GetPRState struct {
	// contains filtered or unexported fields
}

GetPRState is an MCP tool that fetches live PR state (comments + CI checks) directly from the SCM provider using the GIT_ACCESS_TOKEN available to the harness.

func (*GetPRState) ID

func (in *GetPRState) ID() ID

func (*GetPRState) Install

func (in *GetPRState) Install(s *server.MCPServer)

type ID

type ID string
const (
	CreateBranchTool      ID = "createBranch"
	CreateCommitTool      ID = "createCommit"
	CreatePullRequestTool ID = "agentPullRequest"
	FetchTodosTool        ID = "fetchAgentRunTodos"
	UpdateAnalysisTool    ID = "updateAgentRunAnalysis"
	UpdateTodosTool       ID = "updateAgentRunTodos"
	GetPRStateTool        ID = "getPRState"
	GetCILogsTool         ID = "getCILogs"
	ReactToCommentTool    ID = "reactToComment"
)

func ToID

func ToID(id string) (ID, error)

func (ID) String

func (tn ID) String() string

type ReactToComment

type ReactToComment struct {
	// contains filtered or unexported fields
}

ReactToComment is an MCP tool that adds an emoji reaction to a PR comment. The agent calls it with state "working" when it starts addressing a comment, and "complete" when it has finished.

func (*ReactToComment) ID

func (in *ReactToComment) ID() ID

func (*ReactToComment) Install

func (in *ReactToComment) Install(s *server.MCPServer)

type Tool

type Tool interface {
	ID() ID
	Install(server *server.MCPServer)
}

Tool is an MCP tool that can be installed on the MCP server

func NewCreateBranch

func NewCreateBranch(client console.Client, agentRunID string) Tool

func NewCreateCommit

func NewCreateCommit(client console.Client, agentRunID string) Tool

func NewCreatePullRequest

func NewCreatePullRequest(client console.Client, agentRunID string) Tool

func NewFetchTodos

func NewFetchTodos(client console.Client, agentRunID string) Tool

func NewGetCILogs

func NewGetCILogs() Tool

func NewGetPRState

func NewGetPRState() Tool

func NewReactToComment

func NewReactToComment() Tool

func NewUpdateAnalysis

func NewUpdateAnalysis(client console.Client, agentRunID string) Tool

func NewUpdateTodos

func NewUpdateTodos(client console.Client, agentRunID string) Tool

type UpdateAnalysis

type UpdateAnalysis struct {
	ConsoleTool
}

UpdateAnalysis is an MCP tool that updates the analysis for a given agent run

func (*UpdateAnalysis) Install

func (in *UpdateAnalysis) Install(server *server.MCPServer)

type UpdateTodos

type UpdateTodos struct {
	ConsoleTool
}

UpdateTodos is an MCP tool that updates the todos for a given agent run

func (*UpdateTodos) Install

func (in *UpdateTodos) Install(server *server.MCPServer)

type UpdateTodosInputSchema

type UpdateTodosInputSchema struct {
	Todos []client.AgentTodoAttributes `json:"todos"`
}

UpdateTodosInputSchema is the input schema for the UpdateTodos tool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL