apex-psi-mcp 1.2.1 → 1.2.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/dist/index.js +35 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -125,7 +125,13 @@ const server = new McpServer({
|
|
|
125
125
|
// Tool: seal
|
|
126
126
|
server.registerTool("seal", {
|
|
127
127
|
title: "Seal content",
|
|
128
|
-
description: "Record content in the APEX PSI append-only ledger and return a receipt: SHA-256 hash, an Ed25519 signature over the Merkle leaf, and post-quantum ML-DSA-65 (plus LMS-W4-SHA256 when a slot is available — the receipt's own algorithm field states which). Proves that this content existed and has not changed since the timestamp. It never proves the contents are true. Free tier: 20 operations/minute, 100/day, no account needed.",
|
|
128
|
+
description: "Record content in the APEX PSI append-only ledger and return a receipt: SHA-256 hash, an Ed25519 signature over the Merkle leaf, and post-quantum ML-DSA-65 (plus LMS-W4-SHA256 when a slot is available — the receipt's own algorithm field states which). Proves that this content existed and has not changed since the timestamp. It never proves the contents are true. Free tier: 20 operations/minute, 100/day, no account needed. Side effect: it appends one record to the public ledger; nothing is edited or deleted. Output: a receipt in JSON, with the hash, the signature algorithms that receipt carries, and a URL anyone can check. A failure returns a tool error whose text is JSON: { success: false, error }.",
|
|
129
|
+
annotations: {
|
|
130
|
+
readOnlyHint: false,
|
|
131
|
+
destructiveHint: false,
|
|
132
|
+
idempotentHint: false,
|
|
133
|
+
openWorldHint: true,
|
|
134
|
+
},
|
|
129
135
|
inputSchema: {
|
|
130
136
|
content: z.string().max(10000).describe("The content to seal (text, up to 10000 characters)"),
|
|
131
137
|
context: z.string().optional().describe("Optional context label (e.g. document name, case ID)"),
|
|
@@ -158,7 +164,13 @@ server.registerTool("seal", {
|
|
|
158
164
|
// Tool: verify
|
|
159
165
|
server.registerTool("verify", {
|
|
160
166
|
title: "Verify a receipt",
|
|
161
|
-
description: "Confirm a seal's integrity against the APEX PSI append-only ledger. Accepts a receipt object (from the seal tool) or a raw SHA-256 hash. Reports whether the hash is present and anchored — integrity, not the truth of the original content.",
|
|
167
|
+
description: "Confirm a seal's integrity against the APEX PSI append-only ledger. Accepts a receipt object (from the seal tool) or a raw SHA-256 hash. Reports whether the hash is present and anchored — integrity, not the truth of the original content. Read-only: nothing is written and no record changes. Output: a JSON report stating whether the hash was found and whether it is anchored. A failure returns a tool error whose text is JSON: { success: false, error }.",
|
|
168
|
+
annotations: {
|
|
169
|
+
readOnlyHint: true,
|
|
170
|
+
destructiveHint: false,
|
|
171
|
+
idempotentHint: true,
|
|
172
|
+
openWorldHint: true,
|
|
173
|
+
},
|
|
162
174
|
inputSchema: {
|
|
163
175
|
hash: z
|
|
164
176
|
.string()
|
|
@@ -193,7 +205,13 @@ server.registerTool("verify", {
|
|
|
193
205
|
// Tool: anchor (status by default; explicit request to anchor pending roots)
|
|
194
206
|
server.registerTool("anchor", {
|
|
195
207
|
title: "Bitcoin anchoring history",
|
|
196
|
-
description: "Read the Bitcoin (OpenTimestamps) anchoring record for the ledger's Merkle roots. Defaults to action:'history', which is read-only and returns each anchor transaction with its txid, block height, confirmation state and how many ledger entries it covers. Pass action:'verify' with a txid to check one transaction, or action:'anchor' to explicitly request that pending roots be aggregated and submitted to the OTS calendars. Defaults to 'history' so a routine call never triggers a batch write. An anchor counts as confirmed only when a real Bitcoin block contains it.",
|
|
208
|
+
description: "Read the Bitcoin (OpenTimestamps) anchoring record for the ledger's Merkle roots. Defaults to action:'history', which is read-only and returns each anchor transaction with its txid, block height, confirmation state and how many ledger entries it covers. Pass action:'verify' with a txid to check one transaction, or action:'anchor' to explicitly request that pending roots be aggregated and submitted to the OTS calendars. Defaults to 'history' so a routine call never triggers a batch write. An anchor counts as confirmed only when a real Bitcoin block contains it. Read-only for action 'history' and 'verify'; only action 'anchor' writes, by submitting pending roots to the OTS calendars. Output: a JSON list of anchor transactions with txid, block height and confirmation state. A failure returns a tool error whose text is JSON: { success: false, error }.",
|
|
209
|
+
annotations: {
|
|
210
|
+
readOnlyHint: false,
|
|
211
|
+
destructiveHint: false,
|
|
212
|
+
idempotentHint: false,
|
|
213
|
+
openWorldHint: true,
|
|
214
|
+
},
|
|
197
215
|
inputSchema: {
|
|
198
216
|
action: z
|
|
199
217
|
.enum(["history", "verify", "anchor"])
|
|
@@ -232,7 +250,13 @@ server.registerTool("anchor", {
|
|
|
232
250
|
// Tool: cite
|
|
233
251
|
server.registerTool("cite", {
|
|
234
252
|
title: "Generate citation",
|
|
235
|
-
description: "Generate a citation for a sealed receipt in APA, BibTeX, or MLA format, citing the APEX PSI ledger entry.",
|
|
253
|
+
description: "Generate a citation for a sealed receipt in APA, BibTeX, or MLA format, citing the APEX PSI ledger entry. Read-only and entirely local: it formats a citation from the receipt you pass in and makes no network call. Output: the citation string in the format you asked for.",
|
|
254
|
+
annotations: {
|
|
255
|
+
readOnlyHint: true,
|
|
256
|
+
destructiveHint: false,
|
|
257
|
+
idempotentHint: true,
|
|
258
|
+
openWorldHint: false,
|
|
259
|
+
},
|
|
236
260
|
inputSchema: {
|
|
237
261
|
receipt: receiptSchema.describe("A receipt object as returned by the seal tool"),
|
|
238
262
|
format: z.enum(["apa", "bibtex", "mla"]).optional().describe("Citation format (default: apa)"),
|
|
@@ -286,7 +310,13 @@ server.registerTool("cite", {
|
|
|
286
310
|
// Tool: verify_chain (independent verification of a receipt chain)
|
|
287
311
|
server.registerTool("verify_chain", {
|
|
288
312
|
title: "Verify a receipt chain",
|
|
289
|
-
description: "Independently verify a chain of receipts against the APEX PSI ledger. Recomputes each hash's presence and integrity and reports Merkle chain continuity. Returns a verification report — a recomputation result, not an opinion or a certification.",
|
|
313
|
+
description: "Independently verify a chain of receipts against the APEX PSI ledger. Recomputes each hash's presence and integrity and reports Merkle chain continuity. Returns a verification report — a recomputation result, not an opinion or a certification. Read-only: it only looks receipts up and recomputes the chain; nothing is written. Output: a JSON report per receipt (found, verified) and an overall chain-intact verdict. A failure returns a tool error whose text is JSON: { success: false, error }.",
|
|
314
|
+
annotations: {
|
|
315
|
+
readOnlyHint: true,
|
|
316
|
+
destructiveHint: false,
|
|
317
|
+
idempotentHint: true,
|
|
318
|
+
openWorldHint: true,
|
|
319
|
+
},
|
|
290
320
|
inputSchema: {
|
|
291
321
|
receipts: z.array(receiptSchema).min(1).describe("Array of receipt objects to verify (in order)"),
|
|
292
322
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "apex-psi-mcp",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"mcpName": "io.github.kawal393/apex-psi-mcp",
|
|
5
5
|
"description": "APEX PSI MCP server - append-only evidence receipts for AI decisions and documents: seal a record, verify a hash against the public ledger, check a chain, cite a receipt, read Bitcoin anchoring status. Verification is free and needs no account.",
|
|
6
6
|
"type": "module",
|