Before installing an npm or MCP package with network or token access, a version number is only a claim, and postinstall can fetch an unsigned tarball from a bare IP. $0.005 per call, USDC via x402 or MPP. Returns a pre-install report for an exact npm package version: tarball sha256, per-path hashes, whether a postinstall script is present and whether URLs it references are version-pinned, env key names referenced, and a tarball-versus-git diff. Scripts are not executed. An empty call reports left-pad 1.3.0 as a demo.
No account and no API key. Pay per successful call with MPP on Tempo (USDC.e or pathUSD). Invalid input or an upstream failure returns 402 and is not charged.
| Route | Price | What you get |
|---|---|---|
POST /v1/preinstall-report | $0.005 | npm Pre-Install Report Before installing an npm or MCP package with network or token access, a version number is only a claim, and postinstall can fetch an unsigned tarball from a bare IP. $0.005 per call, USDC via x402 or MPP. Returns a pre-install report for an exact npm package version: tarball sha256, per-path hashes, whether a postinstall script is present and whether URLs it references are version-pinned, env key names referenced, and a tarball-versus-git diff. Scripts are not executed. An empty call reports left-pad 1.3.0 as a demo. |
These call POST /v1/preinstall-report ($0.005) — npm Pre-Install Report. Swap the path for any other route in the table.
npx mppx https://npm-pre-install-report.fmf-x402.workers.dev/v1/preinstall-report -X POST -H 'content-type: application/json' -d '{"ecosystem":"npm","package":"left-pad","version":"1.3.0"}'
The CLI creates or reuses a Tempo account in your keychain and pays the 402 automatically. See mpp.dev/sdk.
curl -i -X POST https://npm-pre-install-report.fmf-x402.workers.dev/v1/preinstall-report -H 'content-type: application/json' -d '{"ecosystem":"npm","package":"left-pad","version":"1.3.0"}'
import { Mppx, tempo } from 'mppx/client'
import { privateKeyToAccount } from 'viem/accounts'
Mppx.create({
methods: [tempo({ account: privateKeyToAccount(process.env.TEMPO_PRIVATE_KEY) })],
})
// Global fetch now pays the 402 automatically.
const res = await fetch('https://npm-pre-install-report.fmf-x402.workers.dev/v1/preinstall-report', {
method: 'POST', headers: {
'content-type': 'application/json',
},
body: JSON.stringify({"ecosystem":"npm","package":"left-pad","version":"1.3.0"}),
})
console.log(await res.json())
# pip install pympp
# Docs: https://mpp.dev/sdk/python
import asyncio
from mpp.client import Mpp
from mpp.methods.tempo import TempoAccount
from mpp.methods.tempo import client as tempo
account = TempoAccount.from_key("0x...")
async def main():
async with Mpp(methods=[tempo.charge(account=account)]) as mpp:
response = await mpp.fetch("https://npm-pre-install-report.fmf-x402.workers.dev/v1/preinstall-report", method="POST", json={"ecosystem":"npm","package":"left-pad","version":"1.3.0"})
print(await response.json())
asyncio.run(main())
{
"mcpServers": {
"fmf-mpp-npm-pre-install-report": {
"url": "https://npm-pre-install-report.fmf-x402.workers.dev/mcp"
}
}
}
Transport is Streamable HTTP at https://npm-pre-install-report.fmf-x402.workers.dev/mcp. tools/list is free. Paid tools/call needs an MPP Payment header, or just use mppx against the HTTP route.
Operated by FMF Tools (fmf-tools@agentmail.to). Pay-per-call only; no API key and no account. Invalid input or an upstream failure returns 402 and is not charged.