Documentation
¶
Overview ¶
Package mcp provides MCP server integration for Aha Studio using OmniSkill.
Index ¶
- func RunServer(ctx context.Context, opts *ServerOptions) error
- type AhaSkill
- type Config
- type ServerOptions
- type ToolHandlers
- func (h *ToolHandlers) AddFeatureComment(ctx context.Context, params map[string]any) (any, error)
- func (h *ToolHandlers) AddIdeaComment(ctx context.Context, params map[string]any) (any, error)
- func (h *ToolHandlers) AssignFeatureRelease(ctx context.Context, params map[string]any) (any, error)
- func (h *ToolHandlers) AssignUserToFeature(ctx context.Context, params map[string]any) (any, error)
- func (h *ToolHandlers) BrowserCreateTemplate(ctx context.Context, params map[string]any) (any, error)
- func (h *ToolHandlers) ChangeFeatureStatus(ctx context.Context, params map[string]any) (any, error)
- func (h *ToolHandlers) CreateFeature(ctx context.Context, params map[string]any) (any, error)
- func (h *ToolHandlers) DescribeAQL(ctx context.Context, params map[string]any) (any, error)
- func (h *ToolHandlers) GetComment(ctx context.Context, params map[string]any) (any, error)
- func (h *ToolHandlers) GetEpic(ctx context.Context, params map[string]any) (any, error)
- func (h *ToolHandlers) GetFeature(ctx context.Context, params map[string]any) (any, error)
- func (h *ToolHandlers) GetGoal(ctx context.Context, params map[string]any) (any, error)
- func (h *ToolHandlers) GetIdea(ctx context.Context, params map[string]any) (any, error)
- func (h *ToolHandlers) GetInitiative(ctx context.Context, params map[string]any) (any, error)
- func (h *ToolHandlers) GetKeyResult(ctx context.Context, params map[string]any) (any, error)
- func (h *ToolHandlers) GetPersona(ctx context.Context, params map[string]any) (any, error)
- func (h *ToolHandlers) GetRelease(ctx context.Context, params map[string]any) (any, error)
- func (h *ToolHandlers) GetRequirement(ctx context.Context, params map[string]any) (any, error)
- func (h *ToolHandlers) GetTeam(ctx context.Context, params map[string]any) (any, error)
- func (h *ToolHandlers) GetUser(ctx context.Context, params map[string]any) (any, error)
- func (h *ToolHandlers) GetWorkflow(ctx context.Context, params map[string]any) (any, error)
- func (h *ToolHandlers) GraphFindPath(ctx context.Context, params map[string]any) (any, error)
- func (h *ToolHandlers) GraphInitiativeImpact(ctx context.Context, params map[string]any) (any, error)
- func (h *ToolHandlers) GraphQuery(ctx context.Context, params map[string]any) (any, error)
- func (h *ToolHandlers) GraphReleaseDeps(ctx context.Context, params map[string]any) (any, error)
- func (h *ToolHandlers) GraphSearch(ctx context.Context, params map[string]any) (any, error)
- func (h *ToolHandlers) GraphSync(ctx context.Context, params map[string]any) (any, error)
- func (h *ToolHandlers) Init(ctx context.Context) error
- func (h *ToolHandlers) ListIdeas(ctx context.Context, params map[string]any) (any, error)
- func (h *ToolHandlers) ListPredefinedTemplates(ctx context.Context, params map[string]any) (any, error)
- func (h *ToolHandlers) ListProducts(ctx context.Context, params map[string]any) (any, error)
- func (h *ToolHandlers) ListReleases(ctx context.Context, params map[string]any) (any, error)
- func (h *ToolHandlers) ListWorkflowStatuses(ctx context.Context, params map[string]any) (any, error)
- func (h *ToolHandlers) Query(ctx context.Context, params map[string]any) (any, error)
- func (h *ToolHandlers) SearchDocuments(ctx context.Context, params map[string]any) (any, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AhaSkill ¶
AhaSkill implements the skill.Skill interface for Aha.io operations.
func NewAhaSkill ¶
NewAhaSkill creates a new AhaSkill with the given configuration.
func (*AhaSkill) Description ¶
Description returns a human-readable description of the skill.
type Config ¶
type Config struct {
// Subdomain is the Aha.io account subdomain.
Subdomain string
// APIKey is the Aha.io API key.
APIKey string
// DefaultProduct is the default product ID for queries.
DefaultProduct string
// BrowserEmail is the email for browser automation login.
BrowserEmail string
// BrowserPassword is the password for browser automation login.
BrowserPassword string
}
Config holds configuration for the Aha MCP skill.
func ConfigFromEnv ¶
ConfigFromEnv creates a Config from environment variables.
type ServerOptions ¶
type ServerOptions struct {
// Transport is the transport mode: "stdio" or "http"
Transport string
// HTTPAddr is the HTTP server address (for http transport)
HTTPAddr string
// Config is the Aha configuration
Config *Config
}
ServerOptions configures the MCP server.
type ToolHandlers ¶
type ToolHandlers struct {
// contains filtered or unexported fields
}
ToolHandlers provides handler functions for Aha MCP tools.
func NewToolHandlers ¶
func NewToolHandlers(cfg *Config) *ToolHandlers
NewToolHandlers creates a new ToolHandlers instance.
func (*ToolHandlers) AddFeatureComment ¶
AddFeatureComment adds a comment to a feature.
func (*ToolHandlers) AddIdeaComment ¶
AddIdeaComment adds a comment to an idea.
func (*ToolHandlers) AssignFeatureRelease ¶
func (h *ToolHandlers) AssignFeatureRelease(ctx context.Context, params map[string]any) (any, error)
AssignFeatureRelease assigns a feature to a release.
func (*ToolHandlers) AssignUserToFeature ¶
AssignUserToFeature assigns a user to a feature.
func (*ToolHandlers) BrowserCreateTemplate ¶
func (h *ToolHandlers) BrowserCreateTemplate(ctx context.Context, params map[string]any) (any, error)
BrowserCreateTemplate creates a strategic model template via browser automation.
func (*ToolHandlers) ChangeFeatureStatus ¶
ChangeFeatureStatus changes the workflow status of a feature.
func (*ToolHandlers) CreateFeature ¶
CreateFeature creates a new feature.
func (*ToolHandlers) DescribeAQL ¶
DescribeAQL returns AQL syntax help.
func (*ToolHandlers) GetComment ¶
GetComment retrieves a comment by ID.
func (*ToolHandlers) GetFeature ¶
GetFeature retrieves a feature by reference number.
func (*ToolHandlers) GetInitiative ¶
GetInitiative retrieves an initiative by reference number.
func (*ToolHandlers) GetKeyResult ¶
GetKeyResult retrieves a key result by ID.
func (*ToolHandlers) GetPersona ¶
GetPersona retrieves a persona by ID.
func (*ToolHandlers) GetRelease ¶
GetRelease retrieves a release by reference number.
func (*ToolHandlers) GetRequirement ¶
GetRequirement retrieves a requirement by ID.
func (*ToolHandlers) GetWorkflow ¶
GetWorkflow retrieves a workflow by ID.
func (*ToolHandlers) GraphFindPath ¶
GraphFindPath finds the shortest path between two entities.
func (*ToolHandlers) GraphInitiativeImpact ¶
func (h *ToolHandlers) GraphInitiativeImpact(ctx context.Context, params map[string]any) (any, error)
GraphInitiativeImpact returns the impact analysis of an initiative.
func (*ToolHandlers) GraphQuery ¶
GraphQuery executes a Cypher query against Neo4j.
func (*ToolHandlers) GraphReleaseDeps ¶
GraphReleaseDeps returns feature dependencies for a release.
func (*ToolHandlers) GraphSearch ¶
GraphSearch performs full-text search across graph entities.
func (*ToolHandlers) Init ¶
func (h *ToolHandlers) Init(ctx context.Context) error
Init initializes the handlers with an Aha client.
func (*ToolHandlers) ListPredefinedTemplates ¶
func (h *ToolHandlers) ListPredefinedTemplates(ctx context.Context, params map[string]any) (any, error)
ListPredefinedTemplates returns all available strategic model templates.
func (*ToolHandlers) ListProducts ¶
ListProducts lists all accessible Aha.io products.
func (*ToolHandlers) ListReleases ¶
ListReleases lists all releases for a product.
func (*ToolHandlers) ListWorkflowStatuses ¶
func (h *ToolHandlers) ListWorkflowStatuses(ctx context.Context, params map[string]any) (any, error)
ListWorkflowStatuses lists all workflow statuses for a product.
func (*ToolHandlers) SearchDocuments ¶
SearchDocuments searches for Aha! documents using GraphQL.