make-fetch-happen 16.x
Use make-fetch-happen ^16.0.0 for fetch-compatible HTTP requests with caching, retries, proxy support, integrity verification, DNS caching, and Node.js transport options.
- For
make-fetch-happen@16.0.1- Verified
- 2026-09-08, 2 examples executed
- Package
@modootoday/pmcp-make-fetch-happen@16.0.0
What it covers
- Runtime and import
- Defaults and caching
- Retry behavior
- Integrity verification
- Other request options
- Standalone fetch-compatible classes
- Creating configured fetch functions without making a request
- What this skill does not cover
One example from this skill
This is the skill's own text, not a summary of it. It runs: that is what verifying means here.
import assert from 'node:assert/strict'
const {
Headers,
Request,
Response
} = require('make-fetch-happen')
const headers = new Headers({
'content-type': 'application/json',
'x-example': 'yes'
})
assert.equal(headers.get('content-type'), 'application/json')
assert.equal(headers.get('x-example'), 'yes')
const request = new Request('https://example.invalid/data', {
method: 'POST',
headers,
body: JSON.stringify({ input: 1 })
})
assert.equal(request.method, 'POST')
assert.equal(request.url, 'https://example.invalid/data')
assert.equal(request.headers.get('x-example'), 'yes')
const response = new Response(JSON.stringify({ ok: true }), {
status: 201,
headers: { 'content-type': 'application/json' }
})
assert.equal(response.status, 201)
assert.equal(response.headers.get('content-type'), 'application/json')
assert.deepEqual(await response.json(), { ok: true })
What it did in the sandbox
Verifying this skill meant installing the package and running code against it with no route out. Nothing was observed. The full ledger lists every package examined, including the ones that never became a skill.
Nothing observed is not a finding of safety. It means one run, under one policy, produced nothing to report.
Getting it
With a subscription:
npx -y @modootoday/pmcp login
npx -y @modootoday/pmcp install @modootoday/pmcp-make-fetch-happen
It installs as a dev dependency of your project, and the MCP server finds it there like any other skill.