Skip to main content

Minimal contract-first MCP server

Project description

mcp-contract-executor

极简版 contract-first MCP server。仅四个核心文件:server.pyworker.pydispatch.pycontract.py

工作流:

  1. 主会话生成并覆盖写 /.codex/contract.json(questions 需为空)。
  2. 调用 squad_start(cwd, query, options?) 启动一次执行;返回 ≤3 行 digest。
  3. forced_wait_s 轮询 squad_status(run_id, options={"cwd":...}) 续租;需要时 cancel=true
  4. 断联超过 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

mcp_contract_executor-0.0.4.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_contract_executor-0.0.4-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file mcp_contract_executor-0.0.4.tar.gz.

File metadata

  • Download URL: mcp_contract_executor-0.0.4.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

Hashes for mcp_contract_executor-0.0.4.tar.gz
Algorithm Hash digest
SHA256 191feefc677baa5ccdc0332259c6971a562fbc6add4176f19a1df768d05eb8c4
MD5 232da206089cae42d0136ad6282a8280
BLAKE2b-256 3749ccab3bb0bbecae0c5e40d8e3624b5d0ff87583c3d0014535bee75888ed8a

See more details on using hashes here.

File details

Details for the file mcp_contract_executor-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_contract_executor-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e1c5d4ae1c494f2e35de9dad7e560f3c74e24d7de03b6918b3c758dad8ddc1a1
MD5 e2e0309fae60c86fe9e6fa884203efb7
BLAKE2b-256 08352acd9699e347bc4f2b49a4295be0cda45de9977dd1f672a4137fba67f8e1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page