server

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package server exposes goroutine dump review as MCP tools.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(version string) *mcp.Server

New returns the MCP server.

func Read

func Read(inline, path string) (*dump.Dump, error)

Read returns a dump from an inline value or a file.

Types

type CompareInput

type CompareInput struct {
	Before     string `json:"before,omitempty" jsonschema:"The earlier goroutine dump's text"`
	BeforePath string `json:"before_path,omitempty" jsonschema:"Path to a file with the earlier dump"`
	After      string `json:"after,omitempty" jsonschema:"The later goroutine dump's text"`
	AfterPath  string `json:"after_path,omitempty" jsonschema:"Path to a file with the later dump"`
}

CompareInput is the input of go_goroutine_compare.

type ReviewInput

type ReviewInput struct {
	Dump string `json:"dump,omitempty" jsonschema:"Goroutine dump text. Give this or path"`
	Path string `json:"path,omitempty" jsonschema:"Path to a file holding a goroutine dump. Prefer this for large dumps. Give this or dump"`
}

ReviewInput is the input of go_goroutine_review.

Jump to

Keyboard shortcuts

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