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
8This package implements the six-layer pipeline described in the
9Secure MCP Architecture Blueprint (Phase 5A read-only tools +
10Phase 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
20Entry point: ``python -m oct.mcp [--project-root PATH] [--profile PROFILE]``
21"""
22
23from oct.mcp.config import McpConfig, load_config
24from oct.mcp.safety import SafetyGate, SafetyDecision
25
26__all__ = ["McpConfig", "load_config", "SafetyGate", "SafetyDecision"]