Skip to main content

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_pathused_llmdifficultyevent_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

mcp_contract_builder-0.0.7.tar.gz (3.3 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_builder-0.0.7-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file mcp_contract_builder-0.0.7.tar.gz.

File metadata

  • Download URL: mcp_contract_builder-0.0.7.tar.gz
  • Upload date:
  • Size: 3.3 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_builder-0.0.7.tar.gz
Algorithm Hash digest
SHA256 73003b3068cf18cee519f17dedb0c68411b3c9eb53cf4b50813ce6a2f3372cde
MD5 08deb5102dc393c0d18341c9757b3ea3
BLAKE2b-256 b28f0ea7fd221f355843fcd3059ec6db964d5761fefbeef19c6fb235e49c159e

See more details on using hashes here.

File details

Details for the file mcp_contract_builder-0.0.7-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_contract_builder-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 3fa14ede03f03bd92070f2dab9b484107ad51c16ddf876e506a3ee3acf90d500
MD5 b7d62baf155c2af3f93646284cf00edb
BLAKE2b-256 af39c589893145bf29a0ae8d58efd8f681abd9bf0c25eb1908a1b2a3c110f690

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