Versions in this module Expand all Collapse all v1 v1.1.0 Sep 28, 2026 v1.0.0 Sep 27, 2026 Changes in this version + const CallTimeout + const Protocol + var ErrClosed = errors.New("the server closed the connection") + func Encode(args map[string]any) string + func Environ(base []string, extra ...string) []string + type Config struct + Args []string + Env []string + Timeout time.Duration + type RPCError struct + Code int + Message string + Method string + func (e *RPCError) Error() string + type Session struct + func Start(binary string, cfg Config) (*Session, error) + func (s *Session) Await(method string, id int) (map[string]any, error) + func (s *Session) CallTool(name string, args map[string]any) (ToolResult, error) + func (s *Session) Close() error + func (s *Session) Initialize(protocol, clientName string) (map[string]any, error) + func (s *Session) ListTools() ([]Tool, error) + func (s *Session) Notify(method string, params any) error + func (s *Session) OnCall(f func(tool string, args map[string]any)) + func (s *Session) Options() map[string][]string + func (s *Session) ReadResource(uri string) (text, mime string, err error) + func (s *Session) Request(method string, params any) (map[string]any, error) + func (s *Session) Send(frame any) error + func (s *Session) StderrTail(n int) []string + func (s *Session) Stray() []string + type Tool struct + Name string + Options []string + Raw map[string]any + type ToolResult struct + IsError bool + Structured json.RawMessage + Text string Other modules containing this package github.com/mmedum/gitlab-mcp/v2 github.com/mmedum/gitlab-mcp/v3 github.com/mmedum/gitlab-mcp/v4