Help us shape the future of Go! Take the 2026 Go Developer Survey

mcp

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateGraphHTML

func GenerateGraphHTML(workspaceRoot string, nodes []db.VisNode, edges []db.VisEdge) (string, error)

GenerateGraphHTML creates a self-contained, interactive HTML visualization of the codebase graph.

Types

type CallChainArgs

type CallChainArgs struct {
	TargetFunction string `json:"target_function" jsonschema:"The name of the target function to trace callers for."`
	Depth          int    `json:"depth,omitempty" jsonschema:"Maximum traversal depth for callers (1-5, defaults to 3)."`
}

type FileStructureArgs

type FileStructureArgs struct {
	FilePath string `json:"file_path" jsonschema:"Absolute path of the file to inspect."`
}

type GetArchitectureReportArgs

type GetArchitectureReportArgs struct{}

type SearchArgs

type SearchArgs struct {
	Query string `json:"query" jsonschema:"The substring to match against names and docstrings of codebase entities."`
}

type Server

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

func NewServer

func NewServer(initializedHandler func(context.Context, *mcp.InitializedRequest)) *Server

NewServer initializes the MCP server and registers the tools.

func (*Server) GetMCPServer

func (s *Server) GetMCPServer() *mcp.Server

GetMCPServer returns the underlying MCP server.

func (*Server) SetDatabase

func (s *Server) SetDatabase(database *db.Database, workspaceRoot string)

SetDatabase sets the initialized database connection and unblocks pending tool calls.

type VisualizeArgs

type VisualizeArgs struct {
	WorkspaceRoot string `` /* 166-byte string literal not displayed */
}

Jump to

Keyboard shortcuts

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