{"id":51594374,"url":"https://github.com/drbaher/contract-ops-mcp","last_synced_at":"2026-07-11T17:02:16.985Z","repository":{"id":359945059,"uuid":"1247572210","full_name":"DrBaher/contract-ops-mcp","owner":"DrBaher","description":"One MCP server for the whole contract-ops CLI suite — connect once, drive all nine local-first CLIs as agent tools. Signing stays human-gated.","archived":false,"fork":false,"pushed_at":"2026-06-21T11:33:48.000Z","size":108,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-06T19:03:19.234Z","etag":null,"topics":["agent-first","cli","contract-ops","legal-tech","mcp","model-context-protocol"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DrBaher.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-05-23T13:50:19.000Z","updated_at":"2026-06-21T11:33:50.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/DrBaher/contract-ops-mcp","commit_stats":null,"previous_names":["drbaher/contract-ops-mcp"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/DrBaher/contract-ops-mcp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrBaher%2Fcontract-ops-mcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrBaher%2Fcontract-ops-mcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrBaher%2Fcontract-ops-mcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrBaher%2Fcontract-ops-mcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DrBaher","download_url":"https://codeload.github.com/DrBaher/contract-ops-mcp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrBaher%2Fcontract-ops-mcp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35368768,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-11T02:00:05.354Z","response_time":104,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agent-first","cli","contract-ops","legal-tech","mcp","model-context-protocol"],"created_at":"2026-07-11T17:02:15.115Z","updated_at":"2026-07-11T17:02:16.980Z","avatar_url":"https://github.com/DrBaher.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# contract-ops-mcp\n\nOne [MCP](https://modelcontextprotocol.io) server for the whole **[contract-ops CLI suite](https://cli.drbaher.com/)** — wire it up once and an agent (Claude, Cursor, Codex, …) gets all nine local-first CLIs as tools: extract, draft, lint, compare, convert, review, and the template + signed-contract vaults. **Signing stays human-gated.**\n\n## Run this\n\n```jsonc\n// e.g. Claude Desktop / Cursor MCP config\n{\n  \"mcpServers\": {\n    \"contract-ops\": { \"command\": \"npx\", \"args\": [\"-y\", \"contract-ops-mcp\"] }\n  }\n}\n```\n\nThe CLIs themselves must be installed (the server shells out to them). Fastest way to get all nine:\n\n```bash\ncurl -fsSL https://cli.drbaher.com/install.sh | sh     # local\n# …or run the server + CLIs in one container: ghcr.io/drbaher/contract-ops\n```\n\nCall **`suite_status`** any time to see which CLIs are present and how to install any that aren't.\n\n## Tools\n\nCurated, ergonomic tools (typed inputs, JSON out) for the common operations, plus two escape hatches for the long tail:\n\n| Tool | What it does |\n|---|---|\n| `extract_contract` | Any contract (.md/.txt/.html/.docx/.pdf) → structured JSON (parties, dates, clauses, …) |\n| `lint_contract` | Internal-consistency findings (placeholders, broken refs, defined-term/numbering/date defects) |\n| `compare_versions` | Clause-aware drift between two versions (exit 0 clean · 2 substantive · 3 cosmetic · 4 moved) |\n| `fill_template` | Fill a template's placeholders with typed params (deterministic) |\n| `convert_to_pdf` | DOCX → PDF (needs a PDF backend, e.g. LibreOffice) |\n| `review_nda` | Score an NDA against a house playbook, with evidence |\n| `template_vault_find` / `template_vault_get` | Search / resolve versioned templates (read-only) |\n| `contract_vault_query` / `contract_vault_due` / `contract_vault_risk` | Query the signed-contract register; project renewal/notice deadlines; renewal-exposure (read-only) |\n| `verify_signature` / `verify_receipt` / `audit_show` | Verify a signed PDF / a receipt bundle / walk the audit log (**read-only**) |\n| `catalog(cli)` | Return any CLI's full `--catalog json` — discover the long tail |\n| `run(cli, args)` | Escape hatch: run any suite CLI with raw args (no shell) |\n| `suite_status` | Which CLIs are installed (+ versions) and how to install the rest |\n\nThe curated set and `catalog`/`run` are **discovery-driven** — they ride the suite's uniform `--catalog json` contract, so they stay in sync as the CLIs evolve.\n\n## Safety\n\n- **Signing is human-gated.** Only sign-cli's **read/verify** operations are exposed (`verify_signature`, `verify_receipt`, `audit_show`) — never request-create or sign. This is enforced: the `run`/`catalog` escape hatches reject any `sign` subcommand outside a read-only allowlist, so request-create/send/sign/approve can't be reached here. Those stay behind [sign-cli](https://github.com/DrBaher/sign-cli)'s own MCP server with its per-signer approval tokens, so this server can't become an unguarded signing path.\n- **Filesystem lockdown.** File-path arguments to the curated tools are confined to `CONTRACT_OPS_MCP_BASE_DIR` (default: the working directory). Set it to widen the sandbox.\n- **No shell.** CLIs are invoked with `execFile` (no shell interpolation).\n\n## License\n\nMIT. Part of the [contract-ops CLI suite](https://cli.drbaher.com/). See [`AGENTS.md`](AGENTS.md) for the agent contract.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrbaher%2Fcontract-ops-mcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrbaher%2Fcontract-ops-mcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrbaher%2Fcontract-ops-mcp/lists"}