mcp-prompt-optimizer 3.7.1 → 3.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,20 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [3.7.3] - 2026-07-16
9
+
10
+ ### Fixed
11
+ - **Stale free-tier quota in README**: docs said 7 optimizations/month, live enforcement is 20. Docs-only fix, no code change.
12
+
13
+ ## [3.7.2] - 2026-07-05
14
+
15
+ ### Fixed
16
+ - **Stdout JSON-RPC corruption risk**: MCP server startup logs (banner, status lines, key validation, mode indicators) now route to **stderr** instead of stdout. On stdio transports, stdout is the JSON-RPC channel — any non-protocol writes from the server can corrupt the stream and cause client-side parse failures. All server-side logging in `startValidatedMCPServer` and `CloudApiKeyManager._log` (`success`/`info` levels) is now stderr-safe.
17
+
18
+ ### Internal
19
+ - **Contract test** (`tests/contract-check.js` + `tests/fixtures/optimize-response.json`): pins the `/optimize` response shape against the backend Pydantic model (`OptimizeResponse`), including runtime-injected fields (`quota_used`, `quota_limit`) and metadata (`ai_context`, `routing_score`, `routing_tier`, `model_used`). Catches backend response drift before publish. Runs with no network/API key via `npm run test:contract`.
20
+ - **CI workflow** (`.github/workflows/ci.yml`): runs `npm ci`, health check, and the contract check on push/PR across Node 18, 20, and 22. The contract check is the publish gate.
21
+
8
22
  ## [3.6.0] - 2026-06-11
9
23
 
10
24
  ### Fixed
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # MCP Prompt Optimizer v3.6.0
1
+ # MCP Prompt Optimizer v3.7.2
2
2
 
3
3
  [![NPM Version](https://img.shields.io/npm/v/mcp-prompt-optimizer)](https://www.npmjs.com/package/mcp-prompt-optimizer)
4
4
  [![License](https://img.shields.io/badge/license-Commercial-blue.svg)](LICENSE)
@@ -26,7 +26,7 @@
26
26
 
27
27
  **1. Get your API key:**
28
28
 
29
- - **🆓 Free Tier** (`sk-opt-*`): 7 LLM optimizations/month, 1 API key — no credit card required
29
+ - **🆓 Free Tier** (`sk-opt-*`): 20 LLM optimizations/month, 1 API key — no credit card required
30
30
  - **⭐ Pro** (`sk-opt-*`): 500 optimizations/month, full model config, Context Engineer
31
31
  - **🏢 Enterprise** (`sk-team-*`): Unlimited optimizations, team keys, shared quotas
32
32
 
@@ -352,7 +352,7 @@ Configure custom models in the WebUI and the MCP server uses them automatically.
352
352
 
353
353
  | Plan | Price | Optimizations/month | CE Credits | API Keys |
354
354
  |---|---|---|---|---|
355
- | 🆓 Free | $0 | 7 LLM | — | 1 |
355
+ | 🆓 Free | $0 | 20 LLM | — | 1 |
356
356
  | ⭐ Pro | $19/mo | 500 | 5 | 1 |
357
357
  | 🏢 Enterprise | Custom | Unlimited | 50 | 10 (shared) |
358
358
 
@@ -438,6 +438,11 @@ Windsurf, Cline, VS Code, Zed, Replit, JetBrains IDEs, and Neovim are all suppor
438
438
 
439
439
  ## 📦 Changelog
440
440
 
441
+ ### v3.7.2
442
+ - **Stdout / JSON-RPC safety** — All MCP server startup logs (banner, status, mode indicators, key validation) now route to **stderr** instead of stdout. On stdio transports stdout is the JSON-RPC channel; previously any non-protocol writes there risk corrupting the stream. No user-facing change beyond logging.
443
+ - **Contract test** — `npm run test:contract` pins the `/optimize` response shape (Pydantic fields + runtime-injected `quota_used`/`quota_limit` + metadata `routing_score`/`routing_tier`/`model_used`) against a canonical fixture. Catches backend drift before publish.
444
+ - **CI workflow** — `.github/workflows/ci.yml` runs `npm ci` + health check + contract check on push/PR across Node 18, 20, and 22.
445
+
441
446
  ### v3.6.0
442
447
  - **Free tier MCP access** — Free users can now create an API key (`sk-opt-*`) and use the MCP server for 7 LLM optimizations/month at no cost. Previously, key creation was blocked in the live service due to a bug introduced when the free-tier launch landed in an unused module. Keys with `subscription_status: NULL` (all free accounts) now validate correctly.
443
448
  - **`connect` wizard** — `npx mcp-prompt-optimizer connect` interactively writes your API key to Claude Desktop config on macOS, Windows, and Linux. Replaces manual JSON editing for new users.
@@ -496,4 +501,4 @@ Windsurf, Cline, VS Code, Zed, Replit, JetBrains IDEs, and Neovim are all suppor
496
501
 
497
502
  ---
498
503
 
499
- *Start free at [promptoptimizer.xyz](https://promptoptimizer.xyz) — 7 LLM optimizations/month, no credit card required.*
504
+ *Start free at [promptoptimizer.xyz](https://promptoptimizer.xyz) — 20 LLM optimizations/month, no credit card required.*