mcp

package
v0.17.4 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImpactRef added in v0.6.2

type ImpactRef struct {
	FilePath      string `json:"filePath"`
	QualifiedName string `json:"qualifiedName"`
	Kind          string `json:"kind"`
	Line          int    `json:"line"`
}

ImpactRef is the minimal blast-radius entry: enough to locate the dependent and look it up, nothing more. Impact lists run long (capped at 50 of potentially thousands), so every field is paid 50×.

type Server

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

func NewServer

func NewServer(root string, codeGraph *graph.CodeGraph, engine *parser.Engine, st *store.Store) *Server

func (*Server) Serve

func (s *Server) Serve(r io.Reader, w io.Writer) error

type SlimSymbol added in v0.6.2

type SlimSymbol struct {
	ID            string `json:"id"`
	FilePath      string `json:"filePath"`
	Kind          string `json:"kind"`
	Name          string `json:"name"`
	QualifiedName string `json:"qualifiedName"`
	Signature     string `json:"signature,omitempty"`
	Docstring     string `json:"docstring,omitempty"`
	SpanStart     int    `json:"spanStart"`
	SpanEnd       int    `json:"spanEnd"`
	Exported      bool   `json:"exported"`
}

SlimSymbol is the MCP wire shape for a symbol: everything an agent needs to locate and reason about it, none of the bulk. Full bodies (RawText) made a single grove_query response cost ~10k tokens; agents that want a body should read the file (or use Prism, which compresses re-reads).

Jump to

Keyboard shortcuts

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