pmcp

negotiator 1.x

Use negotiator 1.x to select preferred media types, languages, charsets, and encodings from request headers, including the 1.0.0 options-object form for preferred encoding order.

For
negotiator@1.1.0
Verified
2026-09-08, 4 examples executed
Package
@modootoday/pmcp-negotiator@1.0.0

What it covers

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'
import Negotiator from 'negotiator'

const negotiator = new Negotiator({
  headers: {
    accept: 'text/html, application/json;q=0.8'
  }
})

assert.deepEqual(negotiator.mediaTypes(), ['text/html', 'application/json'])
assert.deepEqual(
  negotiator.mediaTypes(['application/json', 'text/plain', 'text/html']),
  ['text/html', 'application/json']
)
assert.equal(
  negotiator.mediaType(['application/json', 'text/plain', 'text/html']),
  'text/html'
)
assert.equal(negotiator.mediaType(), 'text/html')

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-negotiator

It installs as a dev dependency of your project, and the MCP server finds it there like any other skill.