Repository avatar
AI Tools
v0.1.0
active

pricegap

io.github.CloudCorpRecords/pricegap

Check a supplier price increase against Eurostat producer and labour cost indices, Germany.

Documentation

pricegap

A supplier announces a price increase and you need to know, with evidence, whether it is justified. pricegap is a small forwarding client for the hosted KULIC Advisory price-increase check for Germany: the tool list is answered from your own machine using captured definitions, and each call travels upstream, with the service's answer handed back exactly as it arrived.

Both of the service's captured tools are exposed. The check compares the increase a supplier requests with what official market data actually did since your last price agreement — the Eurostat producer price index for goods, or the services producer price index plus the labour cost index for services — and returns the market change, the gap in percentage points, a band verdict (in line, slightly above, clearly above, or market fell), an evidence-based counter-offer level and the source. The second tool lists the Eurostat NACE categories the check covers, with German and English names, so you can pick the right category code. The computation is deterministic and takes no personal data.

The tools

  • check_price_increase — Judge a requested increase against the market. Required: the category code (or its German or English name), the last_agreement month in YYYY-MM form, and the requested_increase_percent. An optional annual_volume_eur expresses the gap in euros, and language picks de or en for the answer (default German).
  • list_categories — The goods and service categories the check covers, as Eurostat NACE codes with German and English names. An optional language (de or en) sets the answer language.

Install and run

As an MCP server via npm:

npx -y @reneturcios/pricegap mcp

MCP client configuration:

{
  "mcpServers": {
    "pricegap": {
      "command": "npx",
      "args": ["-y", "@reneturcios/pricegap", "mcp"]
    }
  }
}

As a container:

docker run -i ghcr.io/cloudcorprecords/pricegap
docker run --rm ghcr.io/cloudcorprecords/pricegap list_categories '{}'

CLI

A single binary covers both the command line and the MCP server. Every tool is a subcommand whose one argument is a JSON string of that tool's inputs:

pricegap check_price_increase '{"category":"C17","last_agreement":"2024-01","requested_increase_percent":9.5}'
pricegap list_categories '{"language":"en"}'
pricegap --version

Exit codes: 0 for a successful forwarded call, 1 when the result that comes back is an error, and 2 for usage mistakes like an unknown subcommand or a JSON argument that does not parse.

Configuration

  • KULICADVISORY_MCP_URL — Replaces the upstream endpoint. Defaults to the pinned hosted endpoint, https://www.kulicadvisory.com/mcp. (This override variable is a reconstruction introduced by this rebuild.)

The KULIC Advisory registry record lists no headers for its remote, so pricegap never attaches an authentication header — every call goes upstream keyless.

When the upstream cannot answer — it returns a JSON-RPC error, answers with a non-2xx status, sends a body that cannot be read, or the request itself fails — the caller receives an error result whose text begins with pricegap error:.

How forwarding works

The first call of a process opens a session against the upstream: an initialize request (protocol version 2025-03-26), a notifications/initialized notification, and then the tools/call. If the service issues an Mcp-Session-Id header during initialize, pricegap repeats it on subsequent requests and keeps reusing that one session until the process ends. Replies are understood in both plain JSON and server-sent-events framing. Successful results are passed through untouched, isError flag and any extra fields included.

Development

npm install
npm run build   # tsc -> dist/ (dist/cli.js is the bin)
npm test        # tsx --test test/*.test.ts — stubbed upstream, no network
npm run dev     # run the CLI from source

The suite compares the served tool list against the captured surface tool for tool, walks the session handshake and its reuse, proves no Authorization header is sent under any environment, and confirms that arguments travel upstream unchanged and results return unchanged for both tools.

License

MIT — see LICENSE. Copyright (c) 2026 Rene Turcios.

NPM
@reneturcios/pricegap
Install Command
npm install @reneturcios/pricegap
Runtime: npx
OCI
ghcr.io/cloudcorprecords/pricegap:0.1.0
Install Command
docker pull ghcr.io/cloudcorprecords/pricegap:0.1.0:undefined
Runtime: docker