mcpserver

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package mcpserver implements the Model Context Protocol (stdio) server for honey.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer added in v0.3.6

func NewServer(cfg *config.File, enf *policy.Enforcer, searchReg *searchrun.Registry, execReg hostexec.Registry) *mcp.Server

NewServer builds the honey MCP server with its tools registered and the given config and (optional) policy enforcer wired in. Transport is the caller's choice — Run uses stdio; tests use an in-memory transport. A nil enforcer leaves OPA opt-in; built-in critical command-risk denies always apply.

func Run

func Run(ctx context.Context, cfg *config.File, cfgPath string, searchReg *searchrun.Registry, execReg hostexec.Registry) error

Run starts the MCP server on stdio until the client disconnects. cfg and cfgPath are the honey config already loaded by the CLI root PersistentPreRunE.

Types

This section is empty.

Jump to

Keyboard shortcuts

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