tools

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCommentTool

func GetCommentTool() *mcp.Tool

func GetEpicTool

func GetEpicTool() *mcp.Tool

func GetFeatureTool

func GetFeatureTool() *mcp.Tool

func GetGoalTool

func GetGoalTool() *mcp.Tool

func GetIdeaTool

func GetIdeaTool() *mcp.Tool

func GetInitiativeTool

func GetInitiativeTool() *mcp.Tool

func GetKeyResultTool

func GetKeyResultTool() *mcp.Tool

func GetPersonaTool

func GetPersonaTool() *mcp.Tool

func GetReleaseTool

func GetReleaseTool() *mcp.Tool

func GetRequirementTool

func GetRequirementTool() *mcp.Tool

func GetTeamTool

func GetTeamTool() *mcp.Tool

func GetUserTool

func GetUserTool() *mcp.Tool

func GetWorkflowTool

func GetWorkflowTool() *mcp.Tool

func SearchDocumentsTool added in v0.5.0

func SearchDocumentsTool() *mcp.Tool

Types

type DocumentNode added in v0.5.0

type DocumentNode struct {
	Name           string `json:"name"`
	URL            string `json:"url"`
	SearchableID   string `json:"searchableId"`
	SearchableType string `json:"searchableType"`
}

type GetCommentParams

type GetCommentParams struct {
	CommentID string `json:"comment_id" description:"Comment ID to get"`
}

type GetEpicParams

type GetEpicParams struct {
	EpicID string `json:"epic_id" description:"Epic ID to get"`
}

type GetFeatureParams

type GetFeatureParams struct {
	FeatureID string `json:"feature_id" description:"Feature ID to get"`
}

type GetGoalParams

type GetGoalParams struct {
	GoalID string `json:"goal_id" description:"Goal ID to get"`
}

type GetIdeaParams

type GetIdeaParams struct {
	IdeaID string `json:"idea_id" description:"Idea ID to get"`
}

type GetInitiativeParams

type GetInitiativeParams struct {
	InitiativeID string `json:"initiative_id" description:"Initiative ID to get"`
}

type GetKeyResultParams

type GetKeyResultParams struct {
	KeyResultID string `json:"key_result_id" description:"Key Result ID to get"`
}

type GetPersonaParams

type GetPersonaParams struct {
	PersonaID string `json:"persona_id" description:"Persona ID to get"`
}

type GetReleaseParams

type GetReleaseParams struct {
	ReleaseID string `json:"release_id" description:"Release ID to get"`
}

type GetRequirementParams

type GetRequirementParams struct {
	RequirementID string `json:"requirement_id" description:"Requirement ID to get"`
}

type GetTeamParams

type GetTeamParams struct {
	TeamID string `json:"team_id" description:"Team ID to get"`
}

type GetUserParams

type GetUserParams struct {
	UserID string `json:"user_id" description:"User ID to get"`
}

type GetWorkflowParams

type GetWorkflowParams struct {
	WorkflowID string `json:"workflow_id" description:"Workflow ID to get"`
}

type GraphQLError added in v0.5.0

type GraphQLError struct {
	Message string `json:"message"`
}

type GraphQLRequest added in v0.5.0

type GraphQLRequest struct {
	Query     string                 `json:"query"`
	Variables map[string]interface{} `json:"variables,omitempty"`
}

type GraphQLResponse added in v0.5.0

type GraphQLResponse struct {
	Data   SearchData     `json:"data"`
	Errors []GraphQLError `json:"errors,omitempty"`
}

type SearchData added in v0.5.0

type SearchData struct {
	Search SearchResults `json:"search"`
}

type SearchDocumentsParams added in v0.5.0

type SearchDocumentsParams struct {
	Query          string `json:"query" description:"Search query string"`
	SearchableType string `json:"searchable_type,omitempty" description:"Type of document to search for (defaults to Page)"`
}

type SearchResults added in v0.5.0

type SearchResults struct {
	Nodes       []DocumentNode `json:"nodes"`
	CurrentPage int            `json:"currentPage"`
	TotalCount  int            `json:"totalCount"`
	TotalPages  int            `json:"totalPages"`
	IsLastPage  bool           `json:"isLastPage"`
}

type ToolsClient

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

func NewToolsClient

func NewToolsClient(ahaSubdomain, ahaAPIKey string) (*ToolsClient, error)

func (*ToolsClient) AddTools

func (tc *ToolsClient) AddTools(svr *mcp.Server)

func (*ToolsClient) GetComment

func (tc *ToolsClient) GetComment(ctx context.Context, req *mcp.CallToolRequest, params GetCommentParams) (*mcp.CallToolResult, any, error)

func (*ToolsClient) GetEpic

func (tc *ToolsClient) GetEpic(ctx context.Context, req *mcp.CallToolRequest, params GetEpicParams) (*mcp.CallToolResult, any, error)

func (*ToolsClient) GetFeature

func (tc *ToolsClient) GetFeature(ctx context.Context, req *mcp.CallToolRequest, params GetFeatureParams) (*mcp.CallToolResult, any, error)

func (*ToolsClient) GetGoal

func (tc *ToolsClient) GetGoal(ctx context.Context, req *mcp.CallToolRequest, params GetGoalParams) (*mcp.CallToolResult, any, error)

func (*ToolsClient) GetIdea

func (tc *ToolsClient) GetIdea(ctx context.Context, req *mcp.CallToolRequest, params GetIdeaParams) (*mcp.CallToolResult, any, error)

func (*ToolsClient) GetInitiative

func (tc *ToolsClient) GetInitiative(ctx context.Context, req *mcp.CallToolRequest, params GetInitiativeParams) (*mcp.CallToolResult, any, error)

func (*ToolsClient) GetKeyResult

func (tc *ToolsClient) GetKeyResult(ctx context.Context, req *mcp.CallToolRequest, params GetKeyResultParams) (*mcp.CallToolResult, any, error)

func (*ToolsClient) GetPersona

func (tc *ToolsClient) GetPersona(ctx context.Context, req *mcp.CallToolRequest, params GetPersonaParams) (*mcp.CallToolResult, any, error)

func (*ToolsClient) GetRelease

func (tc *ToolsClient) GetRelease(ctx context.Context, req *mcp.CallToolRequest, params GetReleaseParams) (*mcp.CallToolResult, any, error)

func (*ToolsClient) GetRequirement

func (tc *ToolsClient) GetRequirement(ctx context.Context, req *mcp.CallToolRequest, params GetRequirementParams) (*mcp.CallToolResult, any, error)

func (*ToolsClient) GetTeam

func (tc *ToolsClient) GetTeam(ctx context.Context, req *mcp.CallToolRequest, params GetTeamParams) (*mcp.CallToolResult, any, error)

func (*ToolsClient) GetUser

func (tc *ToolsClient) GetUser(ctx context.Context, req *mcp.CallToolRequest, params GetUserParams) (*mcp.CallToolResult, any, error)

func (*ToolsClient) GetWorkflow

func (tc *ToolsClient) GetWorkflow(ctx context.Context, req *mcp.CallToolRequest, params GetWorkflowParams) (*mcp.CallToolResult, any, error)

func (*ToolsClient) SearchDocuments added in v0.5.0

func (tc *ToolsClient) SearchDocuments(ctx context.Context, req *mcp.CallToolRequest, params SearchDocumentsParams) (*mcp.CallToolResult, any, error)

Jump to

Keyboard shortcuts

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