Option C Tools
Loading...
Searching...
No Matches
__init__.py
Go to the documentation of this file.
1
#!/usr/bin/env python3
2
# -*- coding: utf-8 -*-
3
# oct/mcp/__init__.py
4
5
"""
6
``oct.mcp`` — Secure MCP server package for Option C Tools.
7
8
This package implements the six-layer pipeline described in the
9
Secure MCP Architecture Blueprint (Phase 5A read-only tools +
10
Phase 5B write tools with HITL consent):
11
12
Layer 1 — Gateway (workspace binding, rate limiting)
13
Layer 2 — Input Validator (Pydantic models, path containment)
14
Layer 2.5 — Safety Gate (HITL consent + dry-run enforcement, Phase 5B)
15
Layer 3 — Policy Engine (tool allowlist, profile enforcement)
16
Layer 4 — Execution Sandbox (env sanitisation, subprocess isolation)
17
Layer 5 — Output Redactor (secret patterns, path anonymisation)
18
Layer 6 — Audit Logger (JSONL at ~/.oct-mcp/audit.log)
19
20
Entry point: ``python -m oct.mcp [--project-root PATH] [--profile PROFILE]``
21
"""
22
23
from
oct.mcp.config
import
McpConfig, load_config
24
from
oct.mcp.safety
import
SafetyGate, SafetyDecision
25
26
__all__ = [
"McpConfig"
,
"load_config"
,
"SafetyGate"
,
"SafetyDecision"
]
oct.mcp.config
Definition
config.py:1
oct.mcp.safety
Definition
safety.py:1
oct
mcp
__init__.py
Generated by
1.15.0