Enterprise-grade AI engineering governance MCP server
Project description
AI Project OS
Version 2.5 – Governance Kernel (Spec Frozen)
This release represents a frozen governance kernel. Core governance semantics, lifecycle rules, audit invariants, and freeze mechanics are considered stable and MUST NOT be modified without a new major version.
This version prioritizes governance correctness over extensibility, performance, or usability.
AI Project Operating System
Turn AI coding into real, auditable software engineering.
Core Governance Principles
AI Project OS v2.5 implements a non-bypassable, auditable, and evolvable governance system with the following core invariants:
- Single Entry Point: GovernanceEngine is the sole entry for all AI governance operations
- Actor Mandatory: No anonymous AI behavior is permitted
- Event Closure: All events produce governance outcomes
- Violation Enforcement: Violations trigger defined actions
- Freeze Irreversibility: Freeze state is irreversible within the same stage
- State Integrity: No direct state modification
- Audit Completeness: All actions produce append-only audit records
- Policy Priority: System policies override project policies
- CI Enforcement: Governance invariants are automatically verified in CI
For the complete governance constitution, see GOVERNANCE_INVARIANTS.md.
Quick Start
5-Minute Governance Test Drive
# Install the package
pip install ai-project-os-mcp
# Run the minimal governance example
python -c "from ai_project_os_mcp.core import GovernanceEngine; print('✅ GovernanceEngine loaded')"
# Run the complete governance flow example
git clone https://github.com/wuxiaolong123121/ai-project-os-mcp.git
cd ai-project-os-mcp
python examples/minimal_governance.py
Installation
pip install ai-project-os-mcp
Usage
-
Initialize a new project:
ai-project-os init my-project cd my-project
-
Start with S1 Scope stage:
ai-project-os s1 -
Follow the 5S workflow:
# After completing S1, move to S2 ai-project-os s2 # Then S3, S4, and finally S5 ai-project-os s3 ai-project-os s4 ai-project-os s5
-
Check project status:
ai-project-os status
For Non-Technical Users
If you don't want to use the command line, check out our Zero-Code Guide to use AI Project OS with just your AI tool.
Status
⚠️ AI Project OS v2.5 is currently in Spec-Frozen / Implementation-in-Progress state.
- Architecture and module design are frozen
- Core governance engine implementation is ongoing
- APIs, modules, and governance behaviors may change until v2.5.0 release
- Not yet suitable for production use
For stable v1.x version, please check the v1 branch.
What is this?
AI Project OS is an engineering-grade operating system for AI-driven software projects.
It does not try to make AI "smarter".
It makes AI obedient to real-world engineering rules.
AI Project OS enforces:
- Clear project stages
- Frozen decisions
- Guarded code generation
- Mandatory audit trails
No freeze, no code.
No audit, no ship.
What AI Project OS is NOT
- ❌ Not an AI code quality checker
- ❌ Not responsible for business logic correctness
- ❌ Not a replacement for human review
Why AI Project OS?
AI coding fails in real projects because:
- AI skips steps
- AI rewrites architecture
- AI patches instead of redesigning
- Humans cannot tell when AI crossed the line
AI Project OS fixes this by introducing engineering governance.
Core Concepts
1. State over Prompt
Project truth lives in state.json, not in conversation memory.
2. Freeze over Generate
All decisions must be frozen before execution.
3. Audit over Output
Code without audit is not considered done.
The 5S Workflow
| Stage | Meaning | Code Allowed |
|---|---|---|
| S1 | Scope | ❌ |
| S2 | Spec | ❌ |
| S3 | Structure | ❌ |
| S4 | Schedule | ❌ |
| S5 | Ship | ✅ |
MCP-Based Governance
AI Project OS is implemented as a Model Context Protocol (MCP) server.
This allows:
- Claude
- Cursor
- Trae
- Local agents
To act as governed engineering executors, not free-form chatbots.
S5 Stability Guard (Mandatory)
Every S5 task must include:
- Context Refresh
- Change Fuse
- Pseudo-TDD
- Audit Record
No exception.
Approval Field
Approval MUST be provided by a human reviewer. In audit logs:
- AI may suggest content
- Human reviewer must explicitly sign off
AI self-approval is forbidden for compliance reasons.
Who is this for?
- Non-technical founders
- Product managers using AI coding
- Teams tired of AI-generated mess
- Anyone who wants AI to behave like a real engineer
License
MIT License
MCP Server Runtime Modes
| Mode | Usage | Security Features |
|---|---|---|
| STDIO | Claude / Cursor / Trae | Lightweight, for development |
| HTTP | Dashboard / Enterprise | Supports authentication, for production |
Core Principle
拒绝违规执行 比勉强完成任务更正确
AI Project OS believes that refusing to execute violations is more correct than勉强 completing tasks.
Version Semantics
We follow Semantic Versioning:
- MAJOR (x.0.0): Governance model or MCP protocol changes
- MINOR (1.x.0): New governance capabilities, backward compatible
- PATCH (1.0.x): Bug fixes, documentation, or non-behavioral changes
Release & Rollback Policy
- Release: Git tags trigger GitHub Actions for automatic PyPI publishing
- Rollback: Never delete published versions, only release fix versions (e.g., v1.0.1)
LTS Support
v2.5.x will maintain backward compatibility for governance schemas.
Enterprise Edition Roadmap
The following capabilities are reserved for future enterprise editions:
- Multi-project isolation
- Centralized audit logging
- Private MCP Registry
- SSO / RBAC support
Philosophy
AI should not be creative about structure.
AI should be creative only within frozen boundaries.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ai_project_os_mcp-2.5.0.tar.gz.
File metadata
- Download URL: ai_project_os_mcp-2.5.0.tar.gz
- Upload date:
- Size: 112.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6481c308b63444e2602511612064bc46100d134f2533df99d3f7111777a74a74
|
|
| MD5 |
fd8207f0a8c2efe94bd885b99168284c
|
|
| BLAKE2b-256 |
da4af160ffe8aa6878fda65cc4a1dc8679313fbf8f059b1c974b80837e239817
|
File details
Details for the file ai_project_os_mcp-2.5.0-py3-none-any.whl.
File metadata
- Download URL: ai_project_os_mcp-2.5.0-py3-none-any.whl
- Upload date:
- Size: 132.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b8613d63ff4987ecafd511cb84daa7b17b3ab7d47af2de72541e3bd5175d8b9
|
|
| MD5 |
9972a14322f251d1d634176f1203b682
|
|
| BLAKE2b-256 |
3e06474c398a676f81a65dc5a698da1171e11e9fb03d942bc2f036acfb6b4d54
|