Repository navigation
fix(pricing): report unknown prices and limit regional requests - #72
Conversation
Signed-off-by: Emilio Castejón <107069576+ect2000@users.noreply.github.com>
|
Thanks, the fix itself looks right: the logic, the tests, and the eurozone default. While this was open, The fix is one line, line 18 of - register({ tool(...args: unknown[]) { handler = args[args.length - 1] as Handler; } } as unknown as McpServer);
+ register({ registerTool(...args: unknown[]) { handler = args[args.length - 1] as Handler; } } as unknown as McpServer);Your commit, merged with current 🤖 Generated with Claude Code |
|
Merged, thanks! Your commit 🤖 Generated with Claude Code |
The price tools infer
free: truewhenever Steam omitsprice_overview. That price-only response is also used for coming-soon, delisted and unavailable listings, so it cannot establish that an app is free.Closes #33.
Changes:
{ price_overview: null, reason: "no_price_listed" }in both tools. Successful paid-price payloads and region-lock errors keep their existing behavior.EUwithDE, including the tool's input description.The price-only endpoint also omits authoritative free-app metadata, so genuinely free apps get the same honest unknown-price result. The batch remains one request; this fix does not add up to fifty separate metadata lookups or claim a free status without evidence.
Verification on Node 24.13.1, after merging current main and reinstalling its SDK/Zod dependencies:
npm test: 140 passed, including free/coming-soon price-only fixtures, unavailable regions, paid prices, the default eurozone country, typed partial failures and a deterministic twenty-country concurrency test (peak four).npm run buildandgit diff --checkpass.