package

A command for inspecting a local AI-Package, which is a portable bundle containing an agent, team, server, or workflow. It opens the bundle offline and displays its type and key fields.

In plain words
What is it for?
Examining local .pmcp bundles and seeing whether their contents and integrity checks are valid.
Why use it?
It lets you check what a package contains without uploading it or depending on a remote service.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/paiml/rust-mcp-sdk/package
Clone the repo
git clone --depth 1 https://github.com/paiml/rust-mcp-sdk
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 622 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00622
Opus 5 $0.00000 $0.00311
Sonnet 5 $0.00000 $0.00124
Haiku 4.5 $0.00000 $0.00062

Measured 2d ago against content hash 9325acd15b7b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

package scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

cargo-pmcp/docs/commands/package.md · 76 lines

How it starts

The opening of the file, as written. The whole thing — 76 lines — stays where its author put it; the contents beside it link to each section on GitHub.

cargo pmcp package

Inspect portable AI-Package bundles locally.

Usage

cargo pmcp package <SUBCOMMAND>

Description

An AI-Package is a portable, OCI image-layout bundle of an agent, team, server, or workflow (the pmcp-package format). cargo pmcp package inspect opens one locally and offline and prints its kind and key fields.

Scope note. This CLI ships only the local inspect verb. The verbs show and capture are reserved for the pmcp.run platform's remote capture service (remote manifest fetch / dependency-graph capture) and will land as a coordinated thin client against the platform contract — they are deliberately not defined here, to avoid one word meaning two opposite things.

Subcommands

Subcommand Description
inspect Show the kind and key fields of a local AI-Package, fully offline

package inspect

Open a local OCI image-layout .pmcp package, resolve its kind (agent / team / server / workflow), and render its key fields. Digest verification runs during unpack and surfaces verbatim — it is never bypassed.

cargo pmcp package inspect <PATH>

Options

Option Description
<PATH> Path to the AI-Package (OCI image-layout directory) to inspect (positional, required)

Example

$ cargo pmcp package inspect ./some-agent.pmcp

Package
  Kind:          agent
  Name:          demo-agent
  Version:       1.0.0
  Instructions:  You are a concise, helpful assistant. Use tools when helpful.
  Max tokens:    100000
  Max iterations: 5
  Connectors:    0

Where do .pmcp layouts come from?

inspect consumes an OCI image-layout directory (one with an index.json). Note that agent new and team dev emit plain JSON manifests (agent.package.json, team.package.json), not an OCI layout — packing a manifest tree into an OCI .pmcp layout is done by the pmcp-package pack_* API (and, on the platform side, by the capture service). A local package pack verb is a candidate follow-on; today, produce a layout via the pmcp-package library.

Read the full file on GitHub · 76 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 76 lines · 0 tokens per session scan A 9325acd15b7b

Subscribe to this mod's changes

package is a command published in the GitHub repository paiml/rust-mcp-sdk (53 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 622 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.