Minimal contract-first MCP server
Project description
mcp-contract-executor
极简版 contract-first MCP server。仅四个核心文件:server.py、worker.py、dispatch.py、contract.py。
工作流:
- 主会话生成并覆盖写
/.codex/contract.json(questions 需为空)。 - 调用
squad_start(cwd, query, options?)启动一次执行;返回 ≤3 行 digest。 - 按
forced_wait_s轮询squad_status(run_id, options={"cwd":...})续租;需要时cancel=true。 - 断联超过 lease_ttl(默认 120s)自动中止 codex;终态包含 artifact 提示(diffstat/report)。
存储:<repo>/.codex/contract-executor/runs/<run_id>/(state.json、artifacts/diffstat.txt、report.md、jobs/*)。
Project details
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 mcp_contract_executor-0.0.3.tar.gz.
File metadata
- Download URL: mcp_contract_executor-0.0.3.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.14.2 Darwin/24.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6e244d50deee5230587e234c7e5761b42133ae19abc8829f4f417cfe8709330
|
|
| MD5 |
5ec6a77df18b37657a202d3f82dda601
|
|
| BLAKE2b-256 |
137ed88bdb3b5ef3a0ba8d2de80abb1d556900f5e958b42e7bd7acb1a7be4240
|
File details
Details for the file mcp_contract_executor-0.0.3-py3-none-any.whl.
File metadata
- Download URL: mcp_contract_executor-0.0.3-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.14.2 Darwin/24.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c22646a72db9155c0a62ae77428c70f1e387acb6348619d3f4b0d792b3e8ee5
|
|
| MD5 |
e1341a477b0b6604fc2e986bab697adb
|
|
| BLAKE2b-256 |
c5d1d341c513cad011e2fc06ffc5b51e77fda150c66b83809048c5ec33ea8413
|