completions

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package completions provides a CompletionHandler for GitLab-aware autocomplete of prompt arguments and resource URI template parameters.

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.

Jump to

Keyboard shortcuts

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