mcp

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package mcp exposes a memgraph.Store as a Model Context Protocol server.

Tool surface mirrors §8 of PRD.md: read tools (list_graphs, get_node, history, traverse, search, symlink_manifest) and write tools (create_graph, put_node, put_edge, delete_edge). Graphs and lineages are also exposed as MCP resources under the memgraph:// scheme.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Server)

Option configures a Server.

func WithName

func WithName(name string) Option

WithName overrides the MCP server name advertised to clients.

func WithVersion

func WithVersion(version string) Option

WithVersion overrides the MCP server version advertised to clients.

type Server

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

Server adapts a memgraph.Store to the MCP transport.

func New

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

New returns a new MCP server bound to the given store.

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