Contract builder MCP tool (simple|auto|llm) without execution
Project description
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(需主会话/用户准备或复用已有模板)
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_builder-0.0.3.tar.gz.
File metadata
- Download URL: mcp_contract_builder-0.0.3.tar.gz
- Upload date:
- Size: 3.0 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 |
504dfba51ddf59372480b59334ed14cea6055bc999e4ba1235673d1faf8b27da
|
|
| MD5 |
1270f04723bcfebf295310e64d194fb9
|
|
| BLAKE2b-256 |
34fb28a8fffc32d058cc8932ad3765066cdf0ad636444623dfda3acdd88b4952
|
File details
Details for the file mcp_contract_builder-0.0.3-py3-none-any.whl.
File metadata
- Download URL: mcp_contract_builder-0.0.3-py3-none-any.whl
- Upload date:
- Size: 4.3 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 |
1772cb103244cbf08f267a8bd7219c583a08b6a72237c246f0a86698c0acc1e6
|
|
| MD5 |
2f207e7192cc75f4ec923f29761fe581
|
|
| BLAKE2b-256 |
72009444f2e2318912137693dae06949384895f758ef4dd897926dd6f4c146bf
|