mcpserver

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2026 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Overview

Package mcpserver exposes a Halos policy repo to agents over MCP.

Design rule: the server can inspect everything and propose changes, but it can never take an irreversible step. It does not publish releases, retag registry rings, merge, or push to a default branch; those stay with a human. Write tools exist only when Options.AllowWrites is set, default to dry_run, and require a reason that lands in the commit message.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(o Options) (*mcp.Server, error)

New builds the MCP server. It registers tools, resources and prompts.

Types

type Options

type Options struct {
	PolicyDir   string
	AllowWrites bool
	// ClickHouse, when non-nil, enables analyze_experiment and lets
	// propose_promotion check the verdict before opening a PR.
	ClickHouse *promote.ClickHouse
	// SchemaDir holds *.schema.json; auto-detected near PolicyDir when empty.
	SchemaDir string
	Version   string
	// Upgrade, when set, supplies upgrade_candidates' Registry, Models and
	// Verifier (tests); nil = npm and the vendors' release metadata.
	Upgrade *upgrade.Watcher
	// Onboard, when set, is the machine the onboarding tools probe (tests);
	// nil = the real one.
	Onboard *onboard.Env
}

Options configures New.

Jump to

Keyboard shortcuts

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