mcp

package
v0.0.0-beta.32 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server wraps the MCP server.

func New

func New(st *store.Store, prov llm.Provider, emb *embedder.Embedder, cfg *config.Config, registry *project.Registry) *Server

New creates and registers all docs + notes MCP tools.

Phase-2 signature change: takes *project.Registry so notes tools can resolve per-project DB handles. A nil registry is tolerated; notes tools that need one return a clear error at call time.

func (*Server) Close

func (s *Server) Close() error

Close releases all per-project note store handles.

func (*Server) Handler

func (s *Server) Handler() http.Handler

Handler returns an http.Handler for the Streamable HTTP MCP transport.

Jump to

Keyboard shortcuts

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