Documentation
¶
Index ¶
- func EqualsCachedTodos(todos []*client.AgentTodoAttributes) bool
- func GetCachedTodos() []*client.AgentTodoFragment
- func HasCachedTodos() bool
- func MarkCachedTodoItem(title string, done bool) bool
- func MarkCachedTodoItems(items []*client.AgentTodoFragment)
- func UpdateCachedTodos(todos []*client.AgentTodoFragment)
- type ConsoleTool
- type CreateBranch
- type CreateCommit
- type CreatePullRequest
- type DownloadManifests
- type FetchTodos
- type GetCILogs
- type GetPRState
- type ID
- type ReactToComment
- type Tool
- func NewCreateBranch(client console.Client, agentRunID string) Tool
- func NewCreateCommit(client console.Client, agentRunID string) Tool
- func NewCreatePullRequest(client console.Client, agentRunID string) Tool
- func NewDownloadManifests(client console.Client) Tool
- func NewFetchTodos(client console.Client, agentRunID string) Tool
- func NewGetCILogs() Tool
- func NewGetPRState() Tool
- func NewReactToComment() Tool
- func NewUpdateAnalysis(client console.Client, agentRunID string) Tool
- func NewUpdateTodos(client console.Client, agentRunID string) Tool
- type UpdateAnalysis
- type UpdateTodos
- type UpdateTodosInputSchema
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 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 DownloadManifests ¶ added in v0.6.40
type DownloadManifests struct {
ConsoleTool
}
DownloadManifests is an MCP tool that fetches the rendered Kubernetes manifests for a Plural service via the service files GraphQL API and writes them to a local subdirectory so the agent can inspect them.
func (*DownloadManifests) Install ¶ added in v0.6.40
func (in *DownloadManifests) Install(s *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.
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" DownloadManifestsTool ID = "downloadServiceManifests" )
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 ¶
Tool is an MCP tool that can be installed on the MCP server
func NewCreatePullRequest ¶
func NewDownloadManifests ¶ added in v0.6.40
func NewGetCILogs ¶
func NewGetCILogs() Tool
func NewGetPRState ¶
func NewGetPRState() Tool
func NewReactToComment ¶
func NewReactToComment() 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