cfg

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package cfg defines MCP server defaults and limits.

These constants are used exclusively by the MCP server (internal/mcp) and are not configurable via .ctxrc. The truncation lengths (TruncateLen, TruncateContentLen) mirror values used in compact CLI output; if those become configurable, they should be unified into a shared location.

Index

Constants

View Source
const (
	// ScanMaxSize is the maximum scanner buffer size for MCP messages (1 MB).
	ScanMaxSize = 1 << 20

	// DefaultRecallLimit is the max sessions returned by ctx_recall.
	DefaultRecallLimit = 5
	// MinWordLen is the shortest word considered for overlap matching.
	MinWordLen = 4
	// MinWordOverlap is the minimum word matches to signal task completion.
	MinWordOverlap = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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