Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Loading