mcp

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2026 License: Apache-2.0 Imports: 12 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 mcp exposes runeward's governed tools over the Model Context Protocol, going through the same policy/guardrails/Chronicle (audit) path as the REST API. A policy deny surfaces as a tool error; require-approval returns guidance telling the agent to pause for a human rather than retry.

Index

Constants

View Source
const (
	// EnvMCPDefaultPrincipal names the stdio principal to use when no HTTP
	// request context exists.
	EnvMCPDefaultPrincipal = "RUNEWARD_MCP_DEFAULT_PRINCIPAL"
	// EnvMCPDefaultToken maps stdio sessions to an authz principal when
	// RUNEWARD_AUTHZ_FILE is configured.
	EnvMCPDefaultToken = "RUNEWARD_MCP_DEFAULT_TOKEN" // #nosec G101 -- environment variable name, not a credential value
)
View Source
const Version = "0.3.0"

Version is the reported MCP server implementation version.

Variables

This section is empty.

Functions

func NewServer

func NewServer(mgr *controlplane.Manager) *sdk.Server

NewServer builds an MCP server with runeward's governed tools registered against mgr.

Types

This section is empty.

Jump to

Keyboard shortcuts

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