# Occp Core

> OCCP — OpenCloud Control Plane: Governance-first AI agent orchestration with Verified Autonomy Pipeline. Policy-gated, audit-logged, kill-switch protected. 14 MCP tools, 8 specialist agents, Telegram integration.

- **Type:** MCP server
- **Install:** `agentstack add mcp-azar-management-consulting-occp-core`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [azar-management-consulting](https://agentstack.voostack.com/s/azar-management-consulting)
- **Installs:** 0
- **Category:** [Communication](https://agentstack.voostack.com/c/communication)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [azar-management-consulting](https://github.com/azar-management-consulting)
- **Source:** https://github.com/azar-management-consulting/occp-core
- **Website:** https://occp.ai

## Install

```sh
agentstack add mcp-azar-management-consulting-occp-core
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

OpenCloud Control Plane (OCCP)

  Governance-first AI agent orchestration with Verified Autonomy Pipeline
  Policy-gated, audit-logged, kill-switch protected. Built for production AI agent systems.

  
  
  
  
  
  
  
  
  
  

---

## What is OCCP?

OCCP is an open-source **AI Agent Control Plane** that ensures autonomous AI agents operate safely, auditably, and within policy boundaries. Every agent task flows through the **5-stage Verified Autonomy Pipeline**:

```
Plan → Gate → Execute → Validate → Ship
```

Unlike chatbot frameworks, OCCP is a **governance-first runtime** — it controls *what agents can do*, *who approves it*, *how it's audited*, and *how to stop it*.

### Key Capabilities

- **Verified Autonomy Pipeline (VAP)** — 5-stage immutable execution sequence with skip detection
- **5 Policy Guards** — PII detection, prompt injection defense, resource limits, output sanitization, human oversight
- **Kill Switch** — hard-stop with state capture, drill mode, and automatic pipeline refusal
- **14 built-in + 21 external MCP Tools** — WordPress REST API, SSH node execution, filesystem sandbox, SSRF-guarded HTTP client; external adapters: GitHub, Cloudflare, Slack, Supabase, Playwright, WordPress multi-site
- **8 Specialist Agents** — eng-core, wp-web, infra-ops, design-lab, content-forge, social-growth, intel-research, biz-strategy
- **Telegram Integration** — bi-directional voice + text, owner DM bypass, real-time milestone reporting
- **OpenClaw Bridge** — WebSocket connection to 94-method execution gateway
- **Self-Improvement Pipeline** — autodev propose→build→verify→approve→merge with git worktree isolation
- **Architecture Memory** — 8 YAML files describing the system to itself (services, agents, tools, dataflows, boundaries, governance)
- **Observability** — Prometheus-compatible metrics, anomaly detection, behavior digest, readiness markers
- **Feature Flags** — JSON-persistent, gated deployment for safe capability rollout
- **Drift Detection** — architecture YAML vs code cross-reference validation

---

## Quick Start

```bash
git clone https://github.com/azar-management-consulting/occp-core.git
cd occp-core
pip install -e ".[dev]"
occp demo
```

### Docker Compose (Production)

```bash
docker compose up -d
# API:       http://localhost:8000
# Dashboard: http://localhost:3000
```

---

## Architecture

```
┌─────────────────────────────────────────────────┐
│                    OCCP Brain                    │
│           (Brian the Brain orchestrator)          │
├─────────────┬───────────────┬───────────────────┤
│  Telegram   │   REST API    │   CloudCode CLI   │
│  (voice+text)│  (103 endpoints)│                  │
├─────────────┴───────────────┴───────────────────┤
│              Verified Autonomy Pipeline           │
│         Plan → Gate → Execute → Validate → Ship   │
├─────────────────────────────────────────────────┤
│  PolicyEngine (5 guards)  │  AgentToolGuard (21) │
├─────────────────────────────────────────────────┤
│  OpenClaw Executor  │  MCP Bridge (14 tools)     │
├─────────────────────────────────────────────────┤
│  Observability │ Evaluation │ Governance │ AutoDev│
├─────────────────────────────────────────────────┤
│  SQLite (9 tables)  │  Audit Hash Chain (374+)   │
└─────────────────────────────────────────────────┘
```

| Module | Description |
|--------|-------------|
| `orchestrator/` | VAP engine, BrainFlow 7-phase conversation, multi-agent DAG workflows |
| `policy_engine/` | 5 guards, ABAC rules, SHA-256 audit chain, policy-as-code |
| `api/` | FastAPI — 31 routers, 122 endpoints, JWT (RS256 default + HS256 backward-compat) + RBAC (Casbin) |
| `adapters/` | 33 modules — planners (Claude/OpenAI/Ollama), executors (OpenClaw/sandbox), MCP bridge + 6 external adapters, Telegram, Whisper |
| `security/` | 21 modules — agent allowlist, break-glass, vault, signing, SBOM, provenance, SSRF guard, JWT keys, dispatch HMAC signer |
| `observability/` | Prometheus metrics, anomaly detector, behavior digest, readiness markers |
| `evaluation/` | Feature flags, replay harness, canary engine, kill switch (Redis-persistent factory), self-modifier, proposal generator, drift detector |
| `autodev/` | Safe self-improvement — sandbox worktree, verification gate, approval queue, budget tracker |
| `architecture/` | 8 YAML self-model files (services, agents, tools v2, dataflows, boundaries, governance) |
| `dash/` | Next.js 15.5 + React 19 dashboard |
| `store/` | SQLAlchemy 2.0 async — 9 tables, 18 store modules |
| `tests/` | 3170 tests passing |

---

## Infrastructure

| Node | Role | Status |
|------|------|--------|
| Hetzner Brain (195.201.238.144) | API + Dashboard + DB + Telegram | Production |
| Hetzner OpenClaw (95.216.212.174) | 88-method execution gateway | Production |
| iMac (Tailscale mesh) | Storage + secondary control | Connected |
| MacBook Pro (Tailscale mesh) | Secondary dev | Connected |
| MacBook Air | Claude Code host + primary control | Active |

---

## L6 Readiness (Self-Improving AI)

OCCP implements bounded architectural self-redesign at **96% readiness**:

| Marker | Status |
|--------|--------|
| Architecture memory complete | ✅ |
| Telemetry active | ✅ |
| Observability interpretation | ✅ |
| Kill switch tested (E2E drill) | ✅ |
| Governance runtime enforced | ✅ |
| Self-modifier runtime | ✅ |
| Feature flags persistent | ✅ |
| Proposal engine ready | ✅ |
| Canary engine ready | ✅ |
| Drift detector ready | ✅ |
| AutoDev pipeline (safe self-improvement) | ✅ |

---

## Monitoring

Single-call daily health check:

```bash
curl -H "Authorization: Bearer $TOKEN" https://api.occp.ai/api/v1/daily-check
```

Returns: `healthy`, `score` (0-10), `alerts`, autodev state, budget, anomalies, governance, kill switch.

---

## Security

- **Immutable zones**: `security/`, `policy_engine/`, `api/auth.py` — cannot be modified by autonomous agents
- **Kill switch**: hard-stop at pipeline entry, tested via E2E drill
- **Agent allowlist**: 21 agents with per-tool permissions
- **Prompt injection guard**: 20+ regex patterns, brain-dispatched trust bypass
- **Audit trail**: hash-chained, tamper-evident, 374+ entries
- **RBAC**: 4-tier role hierarchy (viewer → operator → org_admin → system_admin)

---

## License

MIT License — see [LICENSE](LICENSE) for details.

**Built by [Azar Management Consulting](https://azar.hu)** | [occp.ai](https://occp.ai) | [dash.occp.ai](https://dash.occp.ai)

## Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [azar-management-consulting](https://github.com/azar-management-consulting)
- **Source:** [azar-management-consulting/occp-core](https://github.com/azar-management-consulting/occp-core)
- **License:** MIT
- **Homepage:** https://occp.ai

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** yes
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/mcp-azar-management-consulting-occp-core
- Seller: https://agentstack.voostack.com/s/azar-management-consulting
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
