mcpserver

package
v0.0.0-...-268c28e Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: MIT Imports: 20 Imported by: ? 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 mcpserver exposes the monitor to agents and IDEs over MCP (stdio). It is a thin adapter over package ops, which owns validation, access control and audit, so an agent can do exactly what the CLI can and no more.

Read tools are always on. Tools that change state are off unless the operator starts the server with allow-write, because marking something fixed changes what the team believes is patched, and a refresh contacts the network and may alert Slack. Every call opens the data directory afresh and releases it again, so a running daemon is never blocked for longer than one call.

Index

Constants

This section is empty.

Variables

View Source
var Version = "dev"

Version is what the server reports to its client; the program sets it at start.

Functions

func Serve

func Serve(ctx context.Context, root string, log *slog.Logger, allowWrite bool) error

Serve runs the MCP server on stdin/stdout until ctx ends or the client disconnects.

Types

This section is empty.

Jump to

Keyboard shortcuts

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