mcp-contract-builder
Contract 生成工具(simple|auto|llm),不执行代码。输出仅短 digest,生成/覆盖 /.codex/contract.json。
工具:
contract_build(cwd, query, mode):mode必填(simple|auto|llm)。返回contract_path、used_llm、difficulty、event_lines<=3,必要时返回need_input(不写文件)。
行为:
- simple:零 LLM,用规则生成合同(goal=用户一句;scope_allow 基于关键词匹配文件/目录;scope_deny=通用禁区;acceptance=通用 2–3 条;questions 为空)。
- llm:调用一次 LLM 生成完整合同(goal/scope_allow/scope_deny/acceptance/questions/risk_flags/context_budget),若 questions 非空则返回 need_input。
- auto:根据关键词/长度判定简单/复杂,选择 simple 或 llm。
存储:
- 合同写入
/.codex/contract.json - 模板示例:
/.codex/contract.template.json(需主会话/用户准备或复用已有模板)
Metadata
Release files for mcp-contract-builder 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| mcp_contract_builder-0.0.7.tar.gz | 3.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mcp_contract_builder-0.0.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.2 kB
Release files / mcp_contract_builder-0.0.7.tar.gz
| Download URL | mcp_contract_builder-0.0.7.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
73003b3068cf18cee519f17dedb0c68411b3c9eb53cf4b50813ce6a2f3372cde
|
|
BLAKE2b-256 checksum How to use checksums |
b28f0ea7fd221f355843fcd3059ec6db964d5761fefbeef19c6fb235e49c159e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.14.2 Darwin/24.6.0
|
Release files / mcp_contract_builder-0.0.7-py3-none-any.whl
| Download URL | mcp_contract_builder-0.0.7-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3fa14ede03f03bd92070f2dab9b484107ad51c16ddf876e506a3ee3acf90d500
|
|
BLAKE2b-256 checksum How to use checksums |
af39c589893145bf29a0ae8d58efd8f681abd9bf0c25eb1908a1b2a3c110f690
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.14.2 Darwin/24.6.0
|
Security for mcp-contract-builder 0.0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.