Skip to main content

DependencyProof MCP

DependencyProof proof ledger — declaration, observation, evidence, verdict

Do not install a package or trust a configuration just because an assistant suggested it. Verify the evidence first.

Source Local tests CI GitHub stars

Python MCP Runtime MIT

DependencyProof is a local evidence checker for coding agents and human reviewers. It compares explicit dependency declarations, imports, version observations and configuration claims. It is not a registry client. A missing record in a caller-provided version list never proves that a version does not exist.

The focus is motivated by developer feedback on generated code and dependency/configuration errors in the 2026 Stack Overflow Developer Survey — technology disruption data. This independent project does not claim to solve every hallucination or verify live package/API availability.

Evidence ledger

Verdict Meaning
supported The claim matches the explicit supplied declaration or observed metadata. This is not live verification.
contradicted The supplied evidence has a definite declaration/value mismatch, or a supported version predicate fails.
unknown Evidence or parser coverage is insufficient; do not invent an answer.
warning Review a possible conflict; deployment or dependency context may affect it.

The example npm review uses invented package names and illustrative metadata, not real registry records.

Claim Supplied evidence Result
example-ui at 1.2.0 exact declaration and listed version supported
example-ui at 1.3.0 declared 1.2.0, metadata lists 1.3.0 contradicted
example-router at 3.1.0 declared ^3.0.0; no npm range parser unknown
scripts.build exists absent from supplied package.json contradicted

See npm example input and Python example input.

Install and connect

Python 3.11 or newer is required for the standard-library TOML parser.

git clone https://github.com/ahmedsaeed1-eng/dependencyproof-mcp.git
cd dependencyproof-mcp
python -m pip install .

Installation uses the package manager; the MCP server itself never installs anything, invokes external commands or accesses a network.

Codex

codex mcp add dependencyproof -- dependencyproof-mcp
codex mcp list

If the entry point is not on PATH, use the absolute path of the Python interpreter in the environment containing this project:

[mcp_servers.dependencyproof]
command = "/absolute/path/to/python"
args = ["-m", "dependencyproof.server"]

Claude Desktop

{
  "mcpServers": {
    "dependencyproof": {
      "command": "/absolute/path/to/python",
      "args": ["-m", "dependencyproof.server"]
    }
  }
}

These are configuration examples; check the host's current MCP settings. The included protocol test uses the official MCP client, not a live Codex or Claude host.

Standalone CLI

dependencyproof < examples/npm-request.json
dependencyproof --fail-on-contradiction < examples/python-request.json

From the checkout with dependencies installed, use python -m dependencyproof as an alternative. The CLI accepts explicit request JSON on stdin and returns a JSON report on stdout. Exit codes: 0 (report produced), 1 (contradicted evidence, when the flag is enabled), 2 (invalid request). Unknowns are not counted as verified.

MCP tool: verify_dependencies

Argument Purpose
format package.json, requirements.txt, or pyproject.toml
manifest Complete manifest text in the chosen format
imports Python source/import statements or simple standalone JavaScript static statements; optional
metadata Caller-provided package information; optional
claims Explicit assertions to compare against supplied data; optional
local_modules Explicit local/workspace module names that should not be treated as external dependencies; optional

Claim and metadata examples

{
  "format":"requirements.txt",
  "manifest":"Pillow==10.4.0",
  "imports":"import PIL",
  "metadata":[
    {
      "name":"Pillow",
      "versions":["10.4.0"],
      "import_names":["PIL"],
      "provenance":"caller-supplied metadata"
    }
  ],
  "claims":[
    {"kind":"dependency","name":"Pillow","version":"10.4.0"}
  ]
}

The manifest declares a distribution named Pillow, whereas the import is PIL. Python imports are not assumed to share their distribution names. Only a supplied mapping can connect the two; otherwise the import is unresolved. Names are classified against the Python runtime's standard-library names or explicitly supplied local module labels.

A dependency claim may add:

  • section: exact manifest section or declaration group name.
  • constraint: expected declaration string. Python specifiers are represented using PyPA's parsed specifier string; npm constraints remain verbatim. This check is string equality, not mathematical range equivalence.
  • version: requested version. Status is supported only when that exact version appears in caller metadata and the supported constraint check passes. Contradiction comes from the manifest predicate, never absence from nonexhaustive metadata. Multiple mandatory Python constraints are checked conjunctively. Conditional requirements and direct references remain unresolved.

A config claim uses a path of object/table keys and optionally an expected JSON value:

{"kind":"config","path":["scripts","test"],"expected":"node --test"}

This checks key/value presence in the supplied manifest. It cannot determine whether a particular framework actually recognizes or supports that key.

Coverage by ecosystem

Check npm Python
Declared dependencies dependencies, devDependencies, peerDependencies, optionalDependencies PEP 508 requirements and PEP 621 project dependencies/optional groups
Imports standalone static import, export-from, simple require assignment built-in AST, including relative imports
Versions plain stable exact numeric versions only PEP 440 parsed predicates using packaging
Conflicts warning for multiple distinct exact declarations contradiction for distinct unconditional nonoptional exact pins
Config values package.json pyproject.toml

Not supported: JavaScript multiline/dynamic import syntax, project resolution aliases unless supplied, npm version range intersection, workspace resolution, resolved lockfiles, Python installer flags/includes, dynamic dependency declarations, optional group selection, registry existence, dependency graph or API symbol compatibility.

The report gives declaration records, per-import status, claim detail, provenance labels, observations with source locations and recommended next actions. Manifest locations identify logical JSON/TOML keys, while requirements/import locations include line numbers; no source file is opened.

Agent workflow

Paste this into project-specific instructions to encourage evidence-based changes:

Before adding or changing a dependency or configuration:
1. Provide the relevant manifest text and proposed import/claim to DependencyProof.
2. For Python imports, provide a verified import-to-distribution mapping.
3. For version claims, provide trusted metadata separately and identify its provenance.
4. Investigate contradicted and unknown results. Do not invent a package,
   version, or API example to resolve them.
5. If necessary, consult official documentation through the normal authorized
   workflow and run the project's existing tests. DependencyProof itself never
   installs dependencies, modifies files, or executes tests.

Evidence boundary

  • Inputs are explicit text. No implicit repository traversal, filesystem reads, registry access, telemetry, credentials, mutation or external command execution.
  • Text limit: 256 KiB and 10,000 LF characters per source; 300 records per list; up to 300 findings. Auxiliary evidence is limited by a 1 MiB serialized size check. The CLI request itself is limited to 256 KiB.
  • Caller metadata is not independently verified. Presence is not proof that a package exists in a registry or that a declared dependency is installed.
  • A declaration can be conditional, optional or supplied in distinct contexts; a missing declaration in supplied text is not proof that software cannot run.
  • PEP 508 markers are not evaluated, and direct references are not followed. Python standard-library classification uses the running Python version's module names, not an arbitrary target runtime. Node builtin classification uses a fixed name list and does not verify target-version availability.
  • No security or vulnerability assessment. Do not supply credential-bearing URLs or confidential manifest values.

Reproduce the tests

python -m pip install ".[test]"
ruff check dependencyproof tests
black --check dependencyproof tests
python -m unittest discover -s tests -v

Local tests cover malformed/duplicate JSON, PEP 440 version evidence, name normalization, ambiguous Python mapping, missing declarations, incomplete installer configurations, nested config value mismatch, exact npm versions, unknown ranges and prereleases, CLI behavior, and a real official MCP stdio client session. 19 local tests (including 75 generated property examples), Ruff and Black passed on Linux/Python 3.12. CI is configured for Python 3.11/3.12 on Linux, macOS and Windows, but passing results on those hosts must be established by the workflow itself.

MIT license. See LICENSE and THIRD_PARTY.md.

Distribution

A release workflow is prepared for future PyPI Trusted Publishing and requires explicit dispatch with publishing enabled plus configured publisher authorization. The package is not yet published; use the source installation above. The included MCP server metadata prepares its registry entry, not a claim that it is already listed.

Metadata

Release files for dependencyproof-mcp 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dependencyproof-mcp 0.1.1
File Size Uploaded Provenance Actions
dependencyproof_mcp-0.1.1.tar.gz 24.4 kB With provenance Details for dependencyproof_mcp-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dependencyproof-mcp 0.1.1
File Interpreter ABI Platform Actions
dependencyproof_mcp-0.1.1-py3-none-any.whl Python 3 none any Details for dependencyproof_mcp-0.1.1-py3-none-any.whl

Total release size: 40.8 kB

Release files / dependencyproof_mcp-0.1.1.tar.gz

Download URL dependencyproof_mcp-0.1.1.tar.gz
Size 24.4 kB
Tags Source
SHA-256 checksum
How to use checksums
eb8afdb15af285fb4cdf2e173c3eb273ad349105859507957bfb43cdea32e535
BLAKE2b-256 checksum
How to use checksums
66cb49731fdf9fc66a38e5207eea6665eaf65fd216f31d1cecb5b30318141a48
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / dependencyproof_mcp-0.1.1-py3-none-any.whl

Download URL dependencyproof_mcp-0.1.1-py3-none-any.whl
Size 16.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f7ed90075b7245b14d90bdbfbd9580cd4f1a6dff1e46697286c9da5064aefb20
BLAKE2b-256 checksum
How to use checksums
6be22488ca5a16e878b32e54a1544994e72d3deee0d23f21642494c36b002051
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Security for dependencyproof-mcp 0.1.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for dependencyproof_mcp-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page