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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package server exposes plan 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) (*plan.Plan, error)

Read returns a plan's text from an inline value or a file.

Types

type CompareInput

type CompareInput struct {
	Before     string `json:"before,omitempty" jsonschema:"EXPLAIN output before the change"`
	BeforePath string `json:"before_path,omitempty" jsonschema:"Path to a file with the plan before the change"`
	After      string `json:"after,omitempty" jsonschema:"EXPLAIN output after the change"`
	AfterPath  string `json:"after_path,omitempty" jsonschema:"Path to a file with the plan after the change"`
}

CompareInput is the input of postgres_plan_compare.

type ReviewInput

type ReviewInput struct {
	Plan string `json:"plan,omitempty" jsonschema:"EXPLAIN output as text or JSON. Give this or path"`
	Path string `json:"path,omitempty" jsonschema:"Path to a file holding EXPLAIN output. Give this or plan"`
}

ReviewInput is the input of postgres_plan_review.

Jump to

Keyboard shortcuts

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