mcp

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: MIT Imports: 9 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 and exposes transport methods.

func NewServer

func NewServer(cfg ServerConfig) *Server

NewServer wires all use cases and registers tools with the MCP server.

func (*Server) RunStdio

func (s *Server) RunStdio() error

RunStdio starts the MCP server using stdio transport (blocking).

type ServerConfig

type ServerConfig struct {
	Config      *config.Config
	RepoRoot    string
	IndexerSvc  *indexer.Service
	Pool        *pgxpool.Pool
	Searcher    *vector.Searcher // nil if vector search disabled
	GraphClient *graph.Client    // nil if graph disabled
}

ServerConfig holds all dependencies for the MCP server.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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