From c71b9d50745e006efc06971b25fddfdc86a56a28 Mon Sep 17 00:00:00 2001 From: Valentino Zegna Date: Fri, 8 May 2026 09:48:55 -0700 Subject: [PATCH 1/2] Add v1.2.4 changelog --- CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b88b4c3..552d358 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/). +## [1.2.4] - 2026-05-08 + +### Fixed +- HTTP `/analyze` endpoint now validates request bodies against the same `AnalyzePdfInputSchema` used by the MCP path. Previously a hand-rolled truthy check accepted malformed `pdf_source` values (numbers, objects, etc.), which then crashed inside `validateLocalPath` with `Cannot read properties of undefined (reading 'trim')`. Malformed bodies now return `400` with zod's path-aware error details. (#42) + +### Changed +- `src/types.ts` exports a shared `AnalyzePdfInputShape` consumed by both the MCP tool registration and the HTTP `/analyze` handler, eliminating the duplicated inline schema definitions. + ## [1.2.3] - 2026-04-18 ### Added From 1ab9817c7a7b80566c4328b7bf048d1ce7bfb695 Mon Sep 17 00:00:00 2001 From: Valentino Zegna Date: Fri, 8 May 2026 09:49:01 -0700 Subject: [PATCH 2/2] v1.2.4 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f1ab4d9..468d711 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@intelligentelectron/pdf-analyzer", - "version": "1.2.3", + "version": "1.2.4", "description": "MCP server for analyzing PDF documents using AI (Google Gemini, Anthropic Claude, OpenAI)", "type": "module", "main": "dist/index.js",