@shuji-bonji/pdf-reader-mcp 0.9.1 → 0.9.2
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 +16 -0
- package/dist/index.js +27 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,22 @@ 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.9.2] - 2026-07-25
|
|
9
|
+
|
|
10
|
+
### Documentation
|
|
11
|
+
|
|
12
|
+
- **The server now sends `instructions` on `initialize`.** A client loads them into its system
|
|
13
|
+
context before calling a single tool, which makes it the earliest point at which this server's
|
|
14
|
+
scope can be stated — earlier than any tool description.
|
|
15
|
+
|
|
16
|
+
What it states: **everything this server returns is an observation, not a verdict.** Extracted
|
|
17
|
+
text, tables, the structure tree, fonts and the *structure* of signature fields are evidence.
|
|
18
|
+
Whether a signature is mathematically valid, or whether a file conforms to anything, is
|
|
19
|
+
pdf-verify-mcp's answer. Where an observation here disagrees with a verdict there, the verdict
|
|
20
|
+
wins — this server reads the file, the validator applies the rules.
|
|
21
|
+
|
|
22
|
+
Behaviour is unchanged; no tool was added, removed or altered.
|
|
23
|
+
|
|
8
24
|
## [0.9.1] - 2026-07-20
|
|
9
25
|
|
|
10
26
|
### Fixed
|
package/dist/index.js
CHANGED
|
@@ -16,10 +16,36 @@ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
|
16
16
|
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
17
17
|
import { SERVER_NAME, SERVER_VERSION } from './constants.js';
|
|
18
18
|
import { registerAllTools } from './tools/index.js';
|
|
19
|
+
/**
|
|
20
|
+
* `initialize` の応答としてクライアントへ返す説明(family 規約: PDFfamily specs/06)。
|
|
21
|
+
*
|
|
22
|
+
* **reader の出力は「観測」であって「判定」ではない。** ツール説明にも書いてあるが、
|
|
23
|
+
* `instructions` はクライアントのシステムコンテキストに直接載るため、ツールを 1 つも
|
|
24
|
+
* 呼ばないうちに読まれる — 射程を伝える位置としてはここが最も早い。
|
|
25
|
+
* 先例は pdf-spec-mcp v0.4.5(Issue #13)。
|
|
26
|
+
*/
|
|
27
|
+
const INSTRUCTIONS = `This server OBSERVES what is inside a PDF. It does not judge whether it is correct.
|
|
28
|
+
|
|
29
|
+
Everything it returns is an observation: extracted text, tables, the structure tree, fonts,
|
|
30
|
+
annotations, images, and the *structure* of signature fields. Treat the output as evidence,
|
|
31
|
+
never as a verdict.
|
|
32
|
+
|
|
33
|
+
What it does NOT do:
|
|
34
|
+
- No cryptographic verification. inspect_signatures reads signature fields structurally and
|
|
35
|
+
says so explicitly; whether a signature is mathematically valid is pdf-verify-mcp's answer
|
|
36
|
+
(verify_signatures / verify_integrity).
|
|
37
|
+
- No conformance judgement. validate_tagged / validate_metadata are deprecated in favour of
|
|
38
|
+
pdf-verify-mcp's validate_conformance, which delegates to veraPDF.
|
|
39
|
+
- No incremental-update history, no object-ID-to-coordinate mapping, no OCR.
|
|
40
|
+
|
|
41
|
+
Where an observation here and a verdict from pdf-verify-mcp disagree, the verdict wins —
|
|
42
|
+
this server reads the file, the validator applies the rules.
|
|
43
|
+
|
|
44
|
+
For what the specification *requires*, ask pdf-spec-mcp. This server never quotes ISO clauses.`;
|
|
19
45
|
const server = new McpServer({
|
|
20
46
|
name: SERVER_NAME,
|
|
21
47
|
version: SERVER_VERSION,
|
|
22
|
-
});
|
|
48
|
+
}, { instructions: INSTRUCTIONS });
|
|
23
49
|
// Register all tools
|
|
24
50
|
registerAllTools(server);
|
|
25
51
|
// Start the server with stdio transport
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src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