Documentation
¶
Overview ¶
Package groupanalytics implements MCP tools for GitLab group activity analytics, providing counts of recently created issues, merge requests, and new members.
markdown.go provides human-readable Markdown formatters for group activity analytics.
register.go wires group activity analytics MCP tools to the MCP server.
Index ¶
- func FormatIssuesCountMarkdown(out IssuesCountOutput) string
- func FormatMRCountMarkdown(out MRCountOutput) string
- func FormatMembersCountMarkdown(out MembersCountOutput) string
- func RegisterTools(server *mcp.Server, client *gitlabclient.Client)
- type IssuesCountInput
- type IssuesCountOutput
- type MRCountInput
- type MRCountOutput
- type MembersCountInput
- type MembersCountOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatIssuesCountMarkdown ¶
func FormatIssuesCountMarkdown(out IssuesCountOutput) string
FormatIssuesCountMarkdown formats a recently created issues count as Markdown.
func FormatMRCountMarkdown ¶
func FormatMRCountMarkdown(out MRCountOutput) string
FormatMRCountMarkdown formats a recently created merge requests count as Markdown.
func FormatMembersCountMarkdown ¶
func FormatMembersCountMarkdown(out MembersCountOutput) string
FormatMembersCountMarkdown formats a recently added members count as Markdown.
func RegisterTools ¶
func RegisterTools(server *mcp.Server, client *gitlabclient.Client)
RegisterTools registers MCP tools for GitLab group activity analytics.
Types ¶
type IssuesCountInput ¶
type IssuesCountInput struct {
GroupPath string `json:"group_path" jsonschema:"Full path of the group (e.g. my-group or parent/child),required"`
}
IssuesCountInput holds parameters for retrieving recently created issues count.
type IssuesCountOutput ¶
type IssuesCountOutput struct {
toolutil.HintableOutput
GroupPath string `json:"group_path"`
IssuesCount int64 `json:"issues_count"`
}
IssuesCountOutput represents the count of recently created issues in a group.
func GetIssuesCount ¶
func GetIssuesCount(ctx context.Context, client *gitlabclient.Client, in IssuesCountInput) (IssuesCountOutput, error)
GetIssuesCount retrieves the count of recently created issues for a group.
type MRCountInput ¶
type MRCountInput struct {
GroupPath string `json:"group_path" jsonschema:"Full path of the group (e.g. my-group or parent/child),required"`
}
MRCountInput holds parameters for retrieving recently created merge requests count.
type MRCountOutput ¶
type MRCountOutput struct {
toolutil.HintableOutput
GroupPath string `json:"group_path"`
MergeRequestsCount int64 `json:"merge_requests_count"`
}
MRCountOutput represents the count of recently created merge requests in a group.
func GetMRCount ¶
func GetMRCount(ctx context.Context, client *gitlabclient.Client, in MRCountInput) (MRCountOutput, error)
GetMRCount retrieves the count of recently created merge requests for a group.
type MembersCountInput ¶
type MembersCountInput struct {
GroupPath string `json:"group_path" jsonschema:"Full path of the group (e.g. my-group or parent/child),required"`
}
MembersCountInput holds parameters for retrieving recently added members count.
type MembersCountOutput ¶
type MembersCountOutput struct {
toolutil.HintableOutput
GroupPath string `json:"group_path"`
NewMembersCount int64 `json:"new_members_count"`
}
MembersCountOutput represents the count of recently added members in a group.
func GetMembersCount ¶
func GetMembersCount(ctx context.Context, client *gitlabclient.Client, in MembersCountInput) (MembersCountOutput, error)
GetMembersCount retrieves the count of recently added members for a group.