@shuji-bonji/pdf-reader-mcp 0.6.1 → 0.6.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 +17 -0
- package/README.ja.md +10 -0
- package/README.md +10 -0
- package/dist/constants.d.ts +2 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +5 -1
- package/dist/constants.js.map +1 -1
- package/dist/index.js +0 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,23 @@ 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.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.6.3] - 2026-07-14
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- **Claude Code plugin 対応** — `.claude-plugin/plugin.json` を追加。Claude Code の plugin として直接インストールできるようになりました。`mcpServers` エントリは `npx -y @shuji-bonji/pdf-reader-mcp@latest` を起動します。shuji 製 MCP 群 (epsg-mcp / houki-egov-mcp / pdf-spec-mcp / pdf-verify-mcp 等) の plugin.json と同じ構造に揃えてあります。
|
|
13
|
+
- **README に PDF family セクションを追加** (README.md / README.ja.md) — `pdf-spec-mcp` (仕様知識) / `pdf-reader-mcp` (構造の読取・検査) / `pdf-verify-mcp` (真正性検証) の役割分担を明示。`inspect_signatures` が署名の**構造**のみを検査し、**暗号学的**な署名検証・信頼/失効評価・PDF/A 準拠検証は `pdf-verify-mcp` の担当であることを追記しました。
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
|
|
17
|
+
- **`SERVER_VERSION` の version drift を解消**。0.6.2 リリース時に `src/constants.ts` の `SERVER_VERSION` が `0.6.1` のまま取り残されており、MCP handshake の `serverInfo.version` と `read_url` の `User-Agent` が実際のパッケージバージョンより古い値を報告していました。`createRequire` で `package.json` から動的に読むように変更し (shuji-mcp-patterns Pattern B: ESM での動的バージョン取得)、以後リリースのたびに手で同期する必要はありません。
|
|
18
|
+
|
|
19
|
+
## [0.6.2] - 2026-05-09
|
|
20
|
+
|
|
21
|
+
### Build
|
|
22
|
+
|
|
23
|
+
- **build script に `chmod +x dist/index.js` を追加**: local dev で `./dist/index.js` を直接実行した際の `permission denied` を回避。npm install / npx 経由の通常利用には影響なし (npm が install 時に bin を chmod するため)。shuji 製 MCP 全体で build script を統一。
|
|
24
|
+
|
|
8
25
|
## [0.6.1] - 2026-05-08
|
|
9
26
|
|
|
10
27
|
### Added
|
package/README.ja.md
CHANGED
|
@@ -10,6 +10,16 @@ PDF 内部構造解析に特化した MCP (Model Context Protocol) サーバー
|
|
|
10
10
|
|
|
11
11
|
既存の pdf-reader-mcp がテキスト抽出の薄いラッパーに留まるのに対し、本プロジェクトは **PDF の内部構造を読み解く** ことに焦点を当てています。[pdf-spec-mcp](https://github.com/shuji-bonji/pdf-spec-mcp) と組み合わせることで、仕様知識に基づいた構造解析・検証が可能になります。
|
|
12
12
|
|
|
13
|
+
### PDF family
|
|
14
|
+
|
|
15
|
+
| サーバー | 役割 |
|
|
16
|
+
|---------|------|
|
|
17
|
+
| [pdf-spec-mcp](https://github.com/shuji-bonji/pdf-spec-mcp) | PDF 仕様知識(ISO 32000・PDF/A・PDF/UA) |
|
|
18
|
+
| **pdf-reader-mcp**(本サーバー) | PDF 内部構造の読取・検査 — 「何があるか」 |
|
|
19
|
+
| [pdf-verify-mcp](https://github.com/shuji-bonji/pdf-verify-mcp) | 真正性検証 — 「それが本物か」: 電子署名の暗号学的検証・改ざん検知・PAdES レベル判定・PDF/A 検証・暗号化PDF復号 |
|
|
20
|
+
|
|
21
|
+
`pdf-reader-mcp` は署名の**構造**を検査します(`inspect_signatures`)。**暗号学的**な署名検証・信頼/失効評価・PDF/A 準拠検証は `pdf-verify-mcp` を使ってください。
|
|
22
|
+
|
|
13
23
|
## 機能
|
|
14
24
|
|
|
15
25
|
**16 ツール** を 3 層構成で提供します。
|
package/README.md
CHANGED
|
@@ -10,6 +10,16 @@ An MCP (Model Context Protocol) server specialized in **deciphering PDF internal
|
|
|
10
10
|
|
|
11
11
|
While typical PDF MCP servers are thin wrappers for text extraction, this project focuses on **reading and analyzing the internal structure** of PDF documents. Pair it with [pdf-spec-mcp](https://github.com/shuji-bonji/pdf-spec-mcp) for specification-aware structural analysis and validation.
|
|
12
12
|
|
|
13
|
+
### PDF family
|
|
14
|
+
|
|
15
|
+
| Server | Role |
|
|
16
|
+
|--------|------|
|
|
17
|
+
| [pdf-spec-mcp](https://github.com/shuji-bonji/pdf-spec-mcp) | PDF specification knowledge (ISO 32000, PDF/A, PDF/UA) |
|
|
18
|
+
| **pdf-reader-mcp** (this) | Read and inspect PDF internal structure — *what is in* a PDF |
|
|
19
|
+
| [pdf-verify-mcp](https://github.com/shuji-bonji/pdf-verify-mcp) | Authenticity verification — *whether it is genuine*: cryptographic signature verification, tamper detection, PAdES level, PDF/A validation, encrypted-PDF decryption |
|
|
20
|
+
|
|
21
|
+
`pdf-reader-mcp` inspects signature **structure** (`inspect_signatures`); for **cryptographic** signature verification, trust/revocation evaluation, and PDF/A conformance validation, use `pdf-verify-mcp`.
|
|
22
|
+
|
|
13
23
|
## Features
|
|
14
24
|
|
|
15
25
|
**16 tools** organized into three tiers:
|
package/dist/constants.d.ts
CHANGED
|
@@ -13,7 +13,8 @@ export declare const MAX_SEARCH_RESULTS = 100;
|
|
|
13
13
|
export declare const DEFAULT_SEARCH_CONTEXT = 80;
|
|
14
14
|
/** Server info */
|
|
15
15
|
export declare const SERVER_NAME = "pdf-reader-mcp";
|
|
16
|
-
|
|
16
|
+
/** Sourced from package.json so it cannot drift out of sync on release. */
|
|
17
|
+
export declare const SERVER_VERSION: string;
|
|
17
18
|
/**
|
|
18
19
|
* Default concurrency cap for remote PDF fetches (`read_url`).
|
|
19
20
|
* Can be overridden with the `PDF_READER_CONCURRENCY` environment variable.
|
package/dist/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;GAEG;
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AAOH,0CAA0C;AAC1C,eAAO,MAAM,eAAe,QAAS,CAAC;AAEtC,4CAA4C;AAC5C,eAAO,MAAM,aAAa,QAAmB,CAAC;AAE9C,6CAA6C;AAC7C,eAAO,MAAM,kBAAkB,KAAK,CAAC;AAErC,iDAAiD;AACjD,eAAO,MAAM,kBAAkB,MAAM,CAAC;AAEtC,uDAAuD;AACvD,eAAO,MAAM,sBAAsB,KAAK,CAAC;AAEzC,kBAAkB;AAClB,eAAO,MAAM,WAAW,mBAAmB,CAAC;AAE5C,2EAA2E;AAC3E,eAAO,MAAM,cAAc,QAAsB,CAAC;AAElD;;;;;;;GAOG;AACH,eAAO,MAAM,yBAAyB,IAAI,CAAC;AAE3C,0CAA0C;AAC1C,eAAO,MAAM,iBAAiB,QAC8D,CAAC;AAE7F,2BAA2B;AAC3B,oBAAY,cAAc;IACxB,QAAQ,aAAa;IACrB,IAAI,SAAS;CACd"}
|
package/dist/constants.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* pdf-reader-mcp shared constants
|
|
3
3
|
*/
|
|
4
|
+
import { createRequire } from 'node:module';
|
|
5
|
+
const require = createRequire(import.meta.url);
|
|
6
|
+
const packageJson = require('../package.json');
|
|
4
7
|
/** Maximum response size in characters */
|
|
5
8
|
export const CHARACTER_LIMIT = 25_000;
|
|
6
9
|
/** Maximum PDF file size in bytes (50MB) */
|
|
@@ -13,7 +16,8 @@ export const MAX_SEARCH_RESULTS = 100;
|
|
|
13
16
|
export const DEFAULT_SEARCH_CONTEXT = 80;
|
|
14
17
|
/** Server info */
|
|
15
18
|
export const SERVER_NAME = 'pdf-reader-mcp';
|
|
16
|
-
|
|
19
|
+
/** Sourced from package.json so it cannot drift out of sync on release. */
|
|
20
|
+
export const SERVER_VERSION = packageJson.version;
|
|
17
21
|
/**
|
|
18
22
|
* Default concurrency cap for remote PDF fetches (`read_url`).
|
|
19
23
|
* Can be overridden with the `PDF_READER_CONCURRENCY` environment variable.
|
package/dist/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,0CAA0C;AAC1C,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC;AAEtC,4CAA4C;AAC5C,MAAM,CAAC,MAAM,aAAa,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC;AAE9C,6CAA6C;AAC7C,MAAM,CAAC,MAAM,kBAAkB,GAAG,EAAE,CAAC;AAErC,iDAAiD;AACjD,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,CAAC;AAEtC,uDAAuD;AACvD,MAAM,CAAC,MAAM,sBAAsB,GAAG,EAAE,CAAC;AAEzC,kBAAkB;AAClB,MAAM,CAAC,MAAM,WAAW,GAAG,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,MAAM,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC/C,MAAM,WAAW,GAAG,OAAO,CAAC,iBAAiB,CAAwB,CAAC;AAEtE,0CAA0C;AAC1C,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC;AAEtC,4CAA4C;AAC5C,MAAM,CAAC,MAAM,aAAa,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC;AAE9C,6CAA6C;AAC7C,MAAM,CAAC,MAAM,kBAAkB,GAAG,EAAE,CAAC;AAErC,iDAAiD;AACjD,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,CAAC;AAEtC,uDAAuD;AACvD,MAAM,CAAC,MAAM,sBAAsB,GAAG,EAAE,CAAC;AAEzC,kBAAkB;AAClB,MAAM,CAAC,MAAM,WAAW,GAAG,gBAAgB,CAAC;AAE5C,2EAA2E;AAC3E,MAAM,CAAC,MAAM,cAAc,GAAG,WAAW,CAAC,OAAO,CAAC;AAElD;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC;AAE3C,0CAA0C;AAC1C,MAAM,CAAC,MAAM,iBAAiB,GAC5B,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,yBAAyB,CAAC;AAE7F,2BAA2B;AAC3B,MAAM,CAAN,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,uCAAqB,CAAA;IACrB,+BAAa,CAAA;AACf,CAAC,EAHW,cAAc,KAAd,cAAc,QAGzB"}
|
package/dist/index.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shuji-bonji/pdf-reader-mcp",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.3",
|
|
4
4
|
"description": "MCP server for PDF structure analysis - read, inspect, and validate PDF internals",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"scripts": {
|
|
21
21
|
"start": "node dist/index.js",
|
|
22
22
|
"dev": "tsx watch src/index.ts",
|
|
23
|
-
"build": "tsc",
|
|
23
|
+
"build": "tsc && chmod +x dist/index.js",
|
|
24
24
|
"clean": "rm -rf dist",
|
|
25
25
|
"test": "vitest run",
|
|
26
26
|
"test:watch": "vitest",
|