gatewaysurface

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package gatewaysurface declares the public surface (flags and MCP inputs) of the `klausctl gateway` command group.

Both the Cobra command (cmd/gateway.go) and the MCP tool registration (internal/tools/gateway) consume this package so the two surfaces cannot drift. A parity test in cmd/gateway_parity_test.go asserts every CLI flag has an MCP equivalent and vice versa.

Index

Constants

This section is empty.

Variables

View Source
var StartFlags = []Flag{
	{CLIFlag: "with-agentgateway", MCPKey: "withAgentgateway", Kind: "bool", Description: "Also start agentgateway in front of klaus-gateway."},
	{CLIFlag: "port", MCPKey: "port", Kind: "int", Description: "Override the klaus-gateway listen port."},
	{CLIFlag: "agentgateway-port", MCPKey: "agentgatewayPort", Kind: "int", Description: "Override the agentgateway listen port."},
	{CLIFlag: "klaus-gateway-bin", MCPKey: "klausGatewayBin", Kind: "string", Description: "Path to the klaus-gateway host binary (overrides KLAUS_GATEWAY_BIN)."},
	{CLIFlag: "agentgateway-bin", MCPKey: "agentgatewayBin", Kind: "string", Description: "Path to the agentgateway host binary (overrides KLAUS_AGENTGATEWAY_BIN)."},
	{CLIFlag: "log-level", MCPKey: "logLevel", Kind: "string", Description: "Gateway log level (debug, info, warn, error)."},
}

StartFlags lists the inputs accepted by `gateway start` and the `klaus_gateway_start` MCP tool.

View Source
var StatusFlags = []Flag{
	{CLIFlag: "output", MCPKey: "output", Kind: "string", Description: `Output format: "text" (default) or "json".`},
}

StatusFlags lists the inputs accepted by `gateway status` and the `klaus_gateway_status` MCP tool.

Functions

This section is empty.

Types

type Flag

type Flag struct {
	CLIFlag     string
	MCPKey      string
	Kind        string
	Description string
}

Flag is a single CLI/MCP surface entry. CLIFlag is the Cobra flag name (kebab-case), MCPKey is the MCP input parameter name (camelCase), Kind names the value type ("bool", "int", "string"), and Description is the human-readable summary shown in both surfaces.

Jump to

Keyboard shortcuts

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