Documentation
¶
Overview ¶
Package completions provides a CompletionHandler for GitLab-aware autocomplete of prompt arguments and resource URI template parameters.
search.go implements GitLab API search functions used by the completion handler. Each function queries a specific GitLab API endpoint and returns formatted string entries suitable for MCP completion results.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler provides GitLab-aware completion for prompt arguments and resource parameters.
func NewHandler ¶
func NewHandler(client *gitlabclient.Client) *Handler
NewHandler creates a completion handler backed by the given GitLab client.
func (*Handler) Complete ¶
func (h *Handler) Complete(ctx context.Context, req *mcp.CompleteRequest) (*mcp.CompleteResult, error)
Complete dispatches completion requests based on reference type and argument name. It returns empty results on errors to avoid blocking the client.