mcp

package
v0.2.0-beta Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package mcp exposes the Model Context Protocol server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FindArchitectureViolationsArgs added in v0.1.8

type FindArchitectureViolationsArgs struct {
	ConfigPath string `json:"config_path" jsonschema:"description=Path to architecture YAML config"`
}

FindArchitectureViolationsArgs defines the input for the find_architecture_violations tool.

type FindNeighborsArgs added in v0.1.8

type FindNeighborsArgs struct {
	SymbolID string `json:"symbol_id" jsonschema:"description=The unique symbol ID"`
}

FindNeighborsArgs defines the input for the find_neighbors tool.

type GetSymbolContextArgs added in v0.1.8

type GetSymbolContextArgs struct {
	SymbolID string `json:"symbol_id" jsonschema:"description=The unique symbol ID (e.g. func:path:name)"`
}

GetSymbolContextArgs defines the input for the get_symbol_context tool.

type Server

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

Server exposes MCP tools backed by the graph store.

func NewServer

func NewServer(store contracts.Store) *Server

NewServer creates a new MCP server instance.

func (*Server) Start

func (s *Server) Start() error

Start registers all MCP tools and starts the stdio transport server.

type TraceCallsArgs added in v0.1.8

type TraceCallsArgs struct {
	SymbolID string `json:"symbol_id" jsonschema:"description=The root symbol ID"`
	Depth    int    `json:"depth" jsonschema:"description=Maximum traversal depth,default=3"`
}

TraceCallsArgs defines the input for the trace_calls tool.

type TraceExecutionPathArgs added in v0.1.8

type TraceExecutionPathArgs struct {
	SymbolID string `json:"symbol_id" jsonschema:"description=The root symbol ID"`
}

TraceExecutionPathArgs defines the input for the trace_execution_path tool.

Jump to

Keyboard shortcuts

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