# Claimed package version does not exist

> ax-check rule: A manifest or install command pins a package version the registry does not have.

Section: ax-check rule · Drift and facts  
Canonical: https://agentexperience.tech/checks/axc-f005/

A manifest or install command pins a package version the registry does not have.

- **How serious**: **error** Something is broken or missing.
- **Kind of check**: **[Observed](https://agentexperience.tech/checks/#kinds)** Depends on the program and environment at run time.
- **ax-check command**: `ax-check drift`
- **Where it applies**: Instruction files and manifests
- **Topics**: [drift](https://agentexperience.tech/evidence/#pattern-drift), [server-cards](https://agentexperience.tech/evidence/#pattern-server-cards)
- **Rule text from**: ax-check 0.2.0Documented ahead of release

**Fix in one line** Pin a published version, or publish the version before the manifest that names it.

The file pins an exact version of a package, and the package exists, but the registry has no such version. This happens when a manifest is written before a release, or when a release is yanked or mistyped. An install that uses the pin fails.

## What it checks

ax-check finds exact version pins in three places:

- npm: `name@1.2.3` in install and run commands, for example `npx invoicekit-mcp@2.4.0`.
- PyPI: `name==1.2.3` in install and run commands.
- Manifests: `packages[].version` in a `server.json`, next to `registryType` and `identifier`.

For each pin it asks the npm registry or the PyPI JSON API for the package’s published versions. The rule fires when the package exists and the pinned version is not among them. If the package itself is missing, the finding is [Claimed npm package does not exist](https://agentexperience.tech/checks/axc-f003/) or [Claimed PyPI package does not exist](https://agentexperience.tech/checks/axc-f004/) instead.

## Why it matters

A pinned version is a promise that a specific release exists. A server card or MCP manifest is read by tools that install the package for the agent, so a wrong pin breaks setup before the agent does anything. The agent may then fall back to the newest version, which can differ from what the file author tested. Pins also drift naturally: a file is written for 2.4.0, the release plan changes, and the file stays behind.

## How to fix

- Pin a version that is published. Look it up on the registry.
- If the version is not yet released, publish it before you publish the manifest that names it.
- If you do not need an exact pin, remove it and let the install use the latest release, accepting that later releases may behave differently.

## Example

Find it:

```bash
ax-check drift --online server.json
```

### Before

```json
{
  "name": "io.example/invoicekit",
  "description": "Create and list invoices.",
  "version": "2.4.0",
  "packages": [
    {
      "registryType": "npm",
      "identifier": "invoicekit-mcp",
      "version": "2.4.0"
    }
  ]
}
```

The registry lists 2.3.0 and 2.3.1 for `invoicekit-mcp`, but not 2.4.0.

### After

```json
{
  "name": "io.example/invoicekit",
  "description": "Create and list invoices.",
  "version": "2.3.1",
  "packages": [
    {
      "registryType": "npm",
      "identifier": "invoicekit-mcp",
      "version": "2.3.1"
    }
  ]
}
```

## How ax-check detects it

The extraction and the rule logic are deterministic, but the result depends on what the registry answers at the time of the run, so the same file can give different findings on another day. JSON and SARIF reports record when and where the check ran. It looks only at exact versions. For npm it accepts `MAJOR.MINOR.PATCH` with an optional pre-release or build suffix, so `2.4.0` and `2.4.0-beta.1` are checked. Ranges and tags such as `^2.4.0`, `~2.4`, `latest` and `next` are ignored. For PyPI it reads the value after `==`. For `server.json` it reads the `version` next to a package whose `registryType` is `npm` or `pypi`. It compares the pin with the versions that the registry lists: the keys of `versions` in the npm metadata, and the keys of `releases` in the PyPI JSON answer. The comparison happens only when the package was found; if the lookup failed, the result is [Claimed URL could not be verified](https://agentexperience.tech/checks/axc-f002/).

Known limits:

- A version that was published and later deleted or yanked may still be listed, depending on the registry.
- Pins in other registries, such as OCI images or NuGet, are not read.
- The top-level `version` of a `server.json` is the server’s own version, not a package pin, and is not checked.

Offline runs do not look up versions; [Claims extracted but not verified](https://agentexperience.tech/checks/axc-f011/) reports the count. To silence this rule, use `--disable <rule-id>`.

## Sources

- Specification: npm registry package metadata. [https://registry.npmjs.org/](https://registry.npmjs.org/) . Lists the published versions of a package.
- Specification: PyPI JSON API documentation. [https://docs.pypi.org/api/json/](https://docs.pypi.org/api/json/) . Lists the published releases of a package.

## Related evidence

Records in the [AX evidence register](https://agentexperience.tech/evidence/) about the same pattern as this rule. They don’t test the rule itself.

- [Launch post and documentation disagree on agent output format](https://agentexperience.tech/evidence/ev-0039/): Cloudflare's cf launch post says JSON output is 'condensed for agents', but the cf documentation says JSON output is indented whether or not output is a terminal, and a public issue reports byte-identical output with an agent detected. Independent measurement: no stake in the product
- [Agent skills recommended a package that does not exist](https://agentexperience.tech/evidence/ev-0040/): Merged pull requests in Vercel's agent plugin repository corrected skill instructions that recommended an npm package that is not published, and plugin guidance that advertised deployment cards the production MCP server does not expose. Vendor measurement: the vendor’s own, with its method

## Related guides

- [Keep agent instructions true](https://agentexperience.tech/insights/keep-agent-instructions-true/): Agent instructions in AGENTS.md, llms.txt, skills and MCP servers drift from production. How to check every package, tool, flag and URL they name in CI. Guide
- [Write agent-readable documentation](https://agentexperience.tech/insights/make-documentation-legible/): Agent-readable documentation in practice: what documentation for AI agents must answer, how to shape a page around one decision, and how to keep it true. Guide
- [Agentic Resource Discovery, implemented](https://agentexperience.tech/insights/agentic-resource-discovery/): Agentic Resource Discovery explained: what ARD is, how /.well-known/ard.json relates to MCP's ai-catalog.json, and a worked example you can copy to publish your own. Guide

## Go here next

- [Keep agent instructions true](https://agentexperience.tech/insights/keep-agent-instructions-true/): How to catch drift between what AGENTS.md, llms.txt, skills and MCP instructions say and what production does. Guide
- [Launch post and documentation disagree on agent output format](https://agentexperience.tech/evidence/ev-0039/): Cloudflare's cf launch post says JSON output is 'condensed for agents', but the cf documentation says JSON output is indented whether or not output is a terminal, and a public issue reports byte-identical output with an agent detected. Evidence
- [Claimed MCP tool is not served](https://agentexperience.tech/checks/axc-f006/): The file names an MCP tool that the live server's tools/list does not return. Rule

## About this rule text

[Claimed PyPI package does not exist](https://agentexperience.tech/checks/axc-f004/)

[Claimed MCP tool is not served](https://agentexperience.tech/checks/axc-f006/)

[All ax-check rules](https://agentexperience.tech/checks/)

Rule text from ax-check 0.2.0, by Himadri Mishra. The licence will be confirmed before the source repository is published.
