Option C Tools
Loading...
Searching...
No Matches
oct.mcp.config.McpConfig Class Reference

Static Public Attributes

str profile = "default"
int rate_limit_per_minute = 30
int timeout_default_seconds = 60
int timeout_test_seconds = 300
int max_output_bytes = 1_048_576
int max_jobs = 4
bool auto_approve_read_tools = True
bool dry_run_default_for_writes = True
bool redaction_always_on = False
str audit_log_path = str(Path.home() / ".oct-mcp" / "audit.log")
int audit_log_max_files = 20
float audit_log_max_size_mb = 5.0
bool trust_repo_config = False
bool safe_mode = False
str sandbox_backend = "auto"
int memory_limit_mb = 512
int metrics_port = None
str policy_source = None

Detailed Description

Runtime configuration for the ``oct-mcp`` server.

All fields have safe, conservative defaults that work without any
config file present. Fields loaded from JSON are clamped to the
valid ranges defined by the module-level constants.

``trust_repo_config`` defaults to ``False`` — repo-level config
(``debug_config.json``, ``.octrc.json``) is untrusted by default per
blueprint §8.1. Set to ``True`` via ``OCT_TRUST_REPO_CONFIG=1`` or
the config file field ``trust_repo_config: true``.

Definition at line 97 of file config.py.

Member Data Documentation

◆ audit_log_max_files

int oct.mcp.config.McpConfig.audit_log_max_files = 20
static

Definition at line 140 of file config.py.

◆ audit_log_max_size_mb

float oct.mcp.config.McpConfig.audit_log_max_size_mb = 5.0
static

Definition at line 143 of file config.py.

◆ audit_log_path

str oct.mcp.config.McpConfig.audit_log_path = str(Path.home() / ".oct-mcp" / "audit.log")
static

Definition at line 137 of file config.py.

◆ auto_approve_read_tools

bool oct.mcp.config.McpConfig.auto_approve_read_tools = True
static

Definition at line 128 of file config.py.

◆ dry_run_default_for_writes

bool oct.mcp.config.McpConfig.dry_run_default_for_writes = True
static

Definition at line 131 of file config.py.

◆ max_jobs

int oct.mcp.config.McpConfig.max_jobs = 4
static

Definition at line 125 of file config.py.

◆ max_output_bytes

int oct.mcp.config.McpConfig.max_output_bytes = 1_048_576
static

Definition at line 122 of file config.py.

◆ memory_limit_mb

int oct.mcp.config.McpConfig.memory_limit_mb = 512
static

Definition at line 158 of file config.py.

◆ metrics_port

int oct.mcp.config.McpConfig.metrics_port = None
static

Definition at line 163 of file config.py.

◆ policy_source

str oct.mcp.config.McpConfig.policy_source = None
static

Definition at line 168 of file config.py.

◆ profile

str oct.mcp.config.McpConfig.profile = "default"
static

Definition at line 110 of file config.py.

◆ rate_limit_per_minute

int oct.mcp.config.McpConfig.rate_limit_per_minute = 30
static

Definition at line 113 of file config.py.

◆ redaction_always_on

bool oct.mcp.config.McpConfig.redaction_always_on = False
static

Definition at line 134 of file config.py.

◆ safe_mode

bool oct.mcp.config.McpConfig.safe_mode = False
static

Definition at line 149 of file config.py.

◆ sandbox_backend

str oct.mcp.config.McpConfig.sandbox_backend = "auto"
static

Definition at line 152 of file config.py.

◆ timeout_default_seconds

int oct.mcp.config.McpConfig.timeout_default_seconds = 60
static

Definition at line 116 of file config.py.

◆ timeout_test_seconds

int oct.mcp.config.McpConfig.timeout_test_seconds = 300
static

Definition at line 119 of file config.py.

◆ trust_repo_config

bool oct.mcp.config.McpConfig.trust_repo_config = False
static

Definition at line 146 of file config.py.


The documentation for this class was generated from the following file:
  • G:/PythonApps/Option_C/oct/oct/mcp/config.py