mcpdefaults

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package mcpdefaults defines platform defaults shared across the API, CLI, operator, and runtime services.

Index

Constants

View Source
const (
	MCPServerPort         = 8088
	MCPGatewayPort        = 8091
	MCPServersNamespace   = "mcp-servers"
	LogCollectorNamespace = "mcp-log-collector"

	AuthTokenHeader = "Authorization"

	// Enum values. Types that mirror these enums reference the value
	// constants below, never the defaults, so changing a default can never
	// change what "deny" or "allow-list" means.
	PolicyModeAllowList = "allow-list"
	PolicyModeObserve   = "observe"
	PolicyDecisionDeny  = "deny"
	PolicyDecisionAllow = "allow"

	// Defaults for an explicitly configured policy block (server init / grants).
	PolicyMode      = PolicyModeAllowList
	PolicyDecision  = PolicyDecisionDeny
	PolicyEnforceOn = "call_tool"
	PolicyVersion   = "v1"

	// Defaults when the gateway is on but spec.policy is omitted: observe tool
	// calls so metrics/analytics work without adapter grants.
	ObservabilityPolicyMode     = PolicyModeObserve
	ObservabilityPolicyDecision = PolicyDecisionAllow

	SessionStore    = "kubernetes"
	SessionMaxLife  = "24h"
	SessionIdleTime = "1h"
	SessionUpstream = AuthTokenHeader
)

Variables

This section is empty.

Functions

func DefaultIngressPath

func DefaultIngressPath(serverName string) string

DefaultIngressPath returns the default public MCP path for a server name.

func GatewayPolicyConfigMapName

func GatewayPolicyConfigMapName(serverName string) string

GatewayPolicyConfigMapName returns the ConfigMap name used by a server's gateway.

Types

This section is empty.

Jump to

Keyboard shortcuts

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