mcp

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package mcp exposes a memgraph-docs Builder as a Model Context Protocol server. The tool surface mirrors DESIGN.md.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Server)

func WithName

func WithName(name string) Option

func WithVersion

func WithVersion(version string) Option

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server wraps a docs.Builder and a memgraph.Store for serving docs_* tools. The Builder is constructed lazily from the Store.

func New

func New(store memgraph.Store, opts ...Option) *Server

func (*Server) Serve

func (s *Server) Serve(ctx context.Context) error

Serve runs the MCP server on stdio. Blocks until ctx is cancelled or the transport closes.

Jump to

Keyboard shortcuts

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