mcp

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package mcp exposes runeward's governed tools over the Model Context Protocol, going through the same policy/guardrails/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"
)
View Source
const Version = "0.1.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