apex-psi-mcp 1.0.1 → 1.1.1
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/LICENSE +29 -0
- package/README.md +83 -65
- package/dist/index.d.ts +9 -3
- package/dist/index.js +56 -35
- package/package.json +58 -47
package/LICENSE
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 APEX Intelligence Empire / ROCKYFILMS888 PTY LTD (ABN 71 672 237 795), Victoria, Australia.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
|
|
23
|
+
NOTE ON SCOPE: this MIT grant covers the VERIFICATION software in this
|
|
24
|
+
repository only. The PSI-SEAL/1 canonical seal schema is a separately
|
|
25
|
+
copyrighted technical specification, and the APEX PSI Sealing Engine
|
|
26
|
+
(generator) is licensed separately — see LICENSE-ENGINE.txt in the APEX-PSI
|
|
27
|
+
repository. "APEX PSI", "PSI-SEAL" and the seal device are trade marks of
|
|
28
|
+
Apex Intelligence Empire; no right in them is granted here. Verification is
|
|
29
|
+
free forever and requires no account, no fee and no relationship with us.
|
package/README.md
CHANGED
|
@@ -1,65 +1,83 @@
|
|
|
1
|
-
# APEX PSI MCP
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
One config line gives any MCP-capable
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
##
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
1
|
+
# APEX PSI MCP server
|
|
2
|
+
|
|
3
|
+
> **Apex PSI is not a tool and not a product. It is the verification substrate — the layer beneath proof. It does not judge. It does not certify. It only remembers.** This server is one application built on that layer.
|
|
4
|
+
|
|
5
|
+
One config line gives any MCP-capable agent (Claude, Cursor, Qoder, Cline, Windsurf, and the rest) five evidence tools: `seal`, `verify`, `anchor`, `cite`, `verify_chain`.
|
|
6
|
+
|
|
7
|
+
A seal records the SHA-256 hash of a decision, document or artefact in a public append-only ledger and returns a receipt. Anyone can look that hash up again — free, forever, with no account, no key and no cooperation from us.
|
|
8
|
+
|
|
9
|
+
**What a receipt proves:** that this exact content existed at this timestamp, and has not changed since.
|
|
10
|
+
**What it never proves:** that the content is true. A seal is an audit trail, not a verdict.
|
|
11
|
+
|
|
12
|
+
## Tools
|
|
13
|
+
|
|
14
|
+
| Tool | What it actually does |
|
|
15
|
+
|------|-------------|
|
|
16
|
+
| **seal** | Writes the record's SHA-256 hash to the ledger and returns a receipt carrying an Ed25519 signature over the Merkle leaf, an ML-DSA-65 post-quantum signature, and — when a slot is available — an LMS-W4-SHA256 signature. The receipt's own `algorithm` field states which of those it got. |
|
|
17
|
+
| **verify** | Looks a hash (or a whole receipt) up in the ledger and reports whether it is present and unchanged. Integrity, not truth. |
|
|
18
|
+
| **anchor** | Reads the Bitcoin/OpenTimestamps anchoring state of the ledger's pending Merkle roots. Pass `action: "anchor"` explicitly to request that pending roots be submitted — an anchor is confirmed only when a real block is found. |
|
|
19
|
+
| **cite** | Turns a receipt into a citation (APA, BibTeX, MLA) that points at a public, independently checkable record. |
|
|
20
|
+
| **verify_chain** | Recomputes each hash's presence and Merkle continuity across a chain of receipts. A recomputation result, not an opinion. |
|
|
21
|
+
|
|
22
|
+
## Install
|
|
23
|
+
|
|
24
|
+
Add to your MCP client config:
|
|
25
|
+
|
|
26
|
+
```json
|
|
27
|
+
{
|
|
28
|
+
"mcpServers": {
|
|
29
|
+
"apex-psi": {
|
|
30
|
+
"command": "npx",
|
|
31
|
+
"args": ["-y", "apex-psi-mcp"]
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Or locally: `npm install apex-psi-mcp`.
|
|
38
|
+
|
|
39
|
+
## Prove it works in two minutes
|
|
40
|
+
|
|
41
|
+
1. Ask the agent: *"Seal the sentence 'hello psi' with APEX PSI."*
|
|
42
|
+
2. Take the `decision_hash` from the receipt and paste it into the public verifier:
|
|
43
|
+
<https://www.ai-governance-standard.com/verify>
|
|
44
|
+
|
|
45
|
+
If the site returns the record, the seal is real. You never had to trust this server, our npm
|
|
46
|
+
package, or our word — which is the entire point of the protocol.
|
|
47
|
+
|
|
48
|
+
## Limits, stated plainly
|
|
49
|
+
|
|
50
|
+
Free use needs no account and no key: **20 operations per minute and 100 per day**, enforced per
|
|
51
|
+
server instance — a flood guard rather than a subscription quota. Above that, an API key raises the
|
|
52
|
+
ceiling; capacity is priced, **the finding never is**. Verification itself is unlimited and free:
|
|
53
|
+
running the verifier locally costs nothing at all —
|
|
54
|
+
[`apex-psi-verifier`](https://www.npmjs.com/package/apex-psi-verifier) on npm,
|
|
55
|
+
[`psi-verifier`](https://pypi.org/project/psi-verifier/) on PyPI.
|
|
56
|
+
|
|
57
|
+
## Configuration
|
|
58
|
+
|
|
59
|
+
Environment variables (both optional):
|
|
60
|
+
|
|
61
|
+
- `APEX_API_BASE` — override the notary endpoint. Default:
|
|
62
|
+
`https://qhtntebpcribjiwrdtdd.supabase.co/functions/v1`
|
|
63
|
+
- `APEX_API_KEY` — raises the daily ceiling for a workload. Never required to seal or verify.
|
|
64
|
+
|
|
65
|
+
## What this server does not do
|
|
66
|
+
|
|
67
|
+
- It does not store your content. Only the hash leaves your machine.
|
|
68
|
+
- It does not certify, grade, score or approve anything.
|
|
69
|
+
- It exposes no edit or delete path: the interface this server uses is write-once sealing plus
|
|
70
|
+
read-only lookup. The check that matters is yours to run — re-verify any receipt at any time, and
|
|
71
|
+
any change shows up as a failed lookup.
|
|
72
|
+
- It is not a legal opinion, and no court has agreed to accept a receipt in advance.
|
|
73
|
+
|
|
74
|
+
## Links
|
|
75
|
+
|
|
76
|
+
- **Protocol and standard:** <https://www.ai-governance-standard.com>
|
|
77
|
+
- **Public verifier:** <https://www.ai-governance-standard.com/verify>
|
|
78
|
+
- **Machine-readable summary for AI answers:** <https://www.ai-governance-standard.com/llms.txt>
|
|
79
|
+
- **npm:** <https://www.npmjs.com/package/apex-psi-mcp>
|
|
80
|
+
|
|
81
|
+
## License
|
|
82
|
+
|
|
83
|
+
MIT
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/**
|
|
3
3
|
* APEX PSI MCP Server
|
|
4
|
-
*
|
|
4
|
+
* Append-only evidence receipts for AI agents and auditors.
|
|
5
5
|
*
|
|
6
|
-
* 5 tools: seal, verify, anchor, cite,
|
|
7
|
-
* Backend: APEX NOTARY
|
|
6
|
+
* 5 tools: seal, verify, anchor, cite, verify_chain
|
|
7
|
+
* Backend: APEX NOTARY (Supabase Edge Functions) — SHA-256, Ed25519 over the Merkle
|
|
8
|
+
* leaf, ML-DSA-65, and LMS-W4-SHA256 when a slot is available. Each receipt states in
|
|
9
|
+
* its own `algorithm` field which signatures it actually carries.
|
|
8
10
|
* Override base URL with APEX_API_BASE if self-hosting.
|
|
11
|
+
*
|
|
12
|
+
* Scope: this server records the existence and integrity of a record at a point in
|
|
13
|
+
* time. It does not judge the truth of a record's contents. It is an independent
|
|
14
|
+
* verification service, not advice or an attestable opinion.
|
|
9
15
|
*/
|
|
10
16
|
export {};
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/**
|
|
3
3
|
* APEX PSI MCP Server
|
|
4
|
-
*
|
|
4
|
+
* Append-only evidence receipts for AI agents and auditors.
|
|
5
5
|
*
|
|
6
|
-
* 5 tools: seal, verify, anchor, cite,
|
|
7
|
-
* Backend: APEX NOTARY
|
|
6
|
+
* 5 tools: seal, verify, anchor, cite, verify_chain
|
|
7
|
+
* Backend: APEX NOTARY (Supabase Edge Functions) — SHA-256, Ed25519 over the Merkle
|
|
8
|
+
* leaf, ML-DSA-65, and LMS-W4-SHA256 when a slot is available. Each receipt states in
|
|
9
|
+
* its own `algorithm` field which signatures it actually carries.
|
|
8
10
|
* Override base URL with APEX_API_BASE if self-hosting.
|
|
11
|
+
*
|
|
12
|
+
* Scope: this server records the existence and integrity of a record at a point in
|
|
13
|
+
* time. It does not judge the truth of a record's contents. It is an independent
|
|
14
|
+
* verification service, not advice or an attestable opinion.
|
|
9
15
|
*/
|
|
10
16
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
11
17
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
@@ -13,6 +19,7 @@ import { z } from "zod";
|
|
|
13
19
|
// Configuration
|
|
14
20
|
const APEX_API_BASE = (process.env.APEX_API_BASE || "https://qhtntebpcribjiwrdtdd.supabase.co/functions/v1").replace(/\/$/, "");
|
|
15
21
|
const APEX_API_KEY = process.env.APEX_API_KEY || "";
|
|
22
|
+
const VERSION = "1.1.1";
|
|
16
23
|
// Helper: make an API call to the Apex PSI backend
|
|
17
24
|
async function apexApiCall(endpoint, method = "GET", body) {
|
|
18
25
|
const url = `${APEX_API_BASE}${endpoint}`;
|
|
@@ -60,12 +67,12 @@ const receiptSchema = z
|
|
|
60
67
|
.describe("An APEX PSI receipt object (as returned by the seal tool)");
|
|
61
68
|
const server = new McpServer({
|
|
62
69
|
name: "apex-psi-mcp",
|
|
63
|
-
version:
|
|
70
|
+
version: VERSION,
|
|
64
71
|
});
|
|
65
72
|
// Tool: seal
|
|
66
73
|
server.registerTool("seal", {
|
|
67
74
|
title: "Seal content",
|
|
68
|
-
description: "
|
|
75
|
+
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.",
|
|
69
76
|
inputSchema: {
|
|
70
77
|
content: z.string().max(10000).describe("The content to seal (text, up to 10000 characters)"),
|
|
71
78
|
context: z.string().optional().describe("Optional context label (e.g. document name, case ID)"),
|
|
@@ -76,7 +83,7 @@ server.registerTool("seal", {
|
|
|
76
83
|
try {
|
|
77
84
|
const receipt = await apexApiCall("/notarize", "POST", {
|
|
78
85
|
decision: content,
|
|
79
|
-
model_id: model_id ||
|
|
86
|
+
model_id: model_id || `apex-psi-mcp/${VERSION}`,
|
|
80
87
|
context: context || "mcp-seal",
|
|
81
88
|
predicate: predicate || "sealed-via-mcp",
|
|
82
89
|
});
|
|
@@ -87,7 +94,7 @@ server.registerTool("seal", {
|
|
|
87
94
|
receipt_id: receipt.receipt_id,
|
|
88
95
|
verify_hash: decisionHash,
|
|
89
96
|
verify_url: `${APEX_API_BASE}/verify-hash?hash=${decisionHash}`,
|
|
90
|
-
message: "Content sealed in the APEX PSI
|
|
97
|
+
message: "Content sealed in the APEX PSI append-only ledger",
|
|
91
98
|
});
|
|
92
99
|
}
|
|
93
100
|
catch (error) {
|
|
@@ -96,8 +103,8 @@ server.registerTool("seal", {
|
|
|
96
103
|
});
|
|
97
104
|
// Tool: verify
|
|
98
105
|
server.registerTool("verify", {
|
|
99
|
-
title: "Verify receipt",
|
|
100
|
-
description: "
|
|
106
|
+
title: "Verify a receipt",
|
|
107
|
+
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.",
|
|
101
108
|
inputSchema: {
|
|
102
109
|
hash: z
|
|
103
110
|
.string()
|
|
@@ -119,7 +126,7 @@ server.registerTool("verify", {
|
|
|
119
126
|
success: true,
|
|
120
127
|
verification: result,
|
|
121
128
|
message: result.verified
|
|
122
|
-
? "Seal verified — hash
|
|
129
|
+
? "Seal verified — hash is present in the APEX PSI append-only ledger"
|
|
123
130
|
: "Hash not found in the ledger",
|
|
124
131
|
});
|
|
125
132
|
}
|
|
@@ -127,25 +134,39 @@ server.registerTool("verify", {
|
|
|
127
134
|
return mcpError(error);
|
|
128
135
|
}
|
|
129
136
|
});
|
|
130
|
-
// Tool: anchor
|
|
137
|
+
// Tool: anchor (status by default; explicit request to anchor pending roots)
|
|
131
138
|
server.registerTool("anchor", {
|
|
132
|
-
title: "
|
|
133
|
-
description: "
|
|
139
|
+
title: "Bitcoin anchoring history",
|
|
140
|
+
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.",
|
|
134
141
|
inputSchema: {
|
|
135
142
|
action: z
|
|
136
|
-
.enum(["
|
|
143
|
+
.enum(["history", "verify", "anchor"])
|
|
144
|
+
.optional()
|
|
145
|
+
.describe("'history' reads the anchored transactions (default); 'verify' checks one txid; 'anchor' explicitly requests anchoring of pending roots"),
|
|
146
|
+
txid: z
|
|
147
|
+
.string()
|
|
137
148
|
.optional()
|
|
138
|
-
.describe("
|
|
149
|
+
.describe("Bitcoin transaction id — required only when action is 'verify'"),
|
|
139
150
|
},
|
|
140
|
-
}, async ({ action }) => {
|
|
151
|
+
}, async ({ action, txid }) => {
|
|
141
152
|
try {
|
|
153
|
+
const resolved = action || "history";
|
|
154
|
+
if (resolved === "verify" && !txid) {
|
|
155
|
+
return mcpError(new Error("action 'verify' needs a txid to check"));
|
|
156
|
+
}
|
|
142
157
|
const result = await apexApiCall("/blockchain-anchor", "POST", {
|
|
143
|
-
action:
|
|
158
|
+
action: resolved,
|
|
159
|
+
...(txid ? { txid } : {}),
|
|
144
160
|
});
|
|
145
161
|
return mcpResult({
|
|
146
162
|
success: true,
|
|
147
163
|
anchorResult: result,
|
|
148
|
-
|
|
164
|
+
action: resolved,
|
|
165
|
+
message: resolved === "anchor"
|
|
166
|
+
? "Bitcoin anchoring requested for pending roots (OpenTimestamps); confirmation follows only on a real block"
|
|
167
|
+
: resolved === "verify"
|
|
168
|
+
? `Bitcoin transaction ${String(txid).slice(0, 16)}… checked against the anchor record`
|
|
169
|
+
: "Read the anchored Bitcoin transactions (OpenTimestamps)",
|
|
149
170
|
});
|
|
150
171
|
}
|
|
151
172
|
catch (error) {
|
|
@@ -177,17 +198,17 @@ server.registerTool("cite", {
|
|
|
177
198
|
` author = {APEX PSI Notary},`,
|
|
178
199
|
` title = {Cryptographic Seal ${receiptId}},`,
|
|
179
200
|
` year = {${year}},`,
|
|
180
|
-
` howpublished = {APEX PSI
|
|
201
|
+
` howpublished = {APEX PSI Append-Only Ledger (${algorithm})},`,
|
|
181
202
|
` note = {Receipt ${receiptId}, sealed ${date}},`,
|
|
182
203
|
` url = {${verifyUrl}}`,
|
|
183
204
|
`}`,
|
|
184
205
|
].join("\n");
|
|
185
206
|
}
|
|
186
207
|
else if (fmt === "mla") {
|
|
187
|
-
citation = `"Cryptographic Seal ${receiptId}." APEX PSI
|
|
208
|
+
citation = `"Cryptographic Seal ${receiptId}." APEX PSI Append-Only Ledger, ${date}, ${verifyUrl}. ${algorithm}.`;
|
|
188
209
|
}
|
|
189
210
|
else {
|
|
190
|
-
citation = `APEX PSI Notary. (${year}). Cryptographic seal ${receiptId} [APEX PSI
|
|
211
|
+
citation = `APEX PSI Notary. (${year}). Cryptographic seal ${receiptId} [APEX PSI append-only ledger entry; ${algorithm}]. Retrieved from ${verifyUrl}`;
|
|
191
212
|
}
|
|
192
213
|
return mcpResult({
|
|
193
214
|
success: true,
|
|
@@ -201,28 +222,28 @@ server.registerTool("cite", {
|
|
|
201
222
|
return mcpError(error);
|
|
202
223
|
}
|
|
203
224
|
});
|
|
204
|
-
// Tool:
|
|
205
|
-
server.registerTool("
|
|
206
|
-
title: "
|
|
207
|
-
description: "
|
|
225
|
+
// Tool: verify_chain (independent verification of a receipt chain)
|
|
226
|
+
server.registerTool("verify_chain", {
|
|
227
|
+
title: "Verify a receipt chain",
|
|
228
|
+
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.",
|
|
208
229
|
inputSchema: {
|
|
209
|
-
receipts: z.array(receiptSchema).min(1).describe("Array of receipt objects to
|
|
230
|
+
receipts: z.array(receiptSchema).min(1).describe("Array of receipt objects to verify (in order)"),
|
|
210
231
|
},
|
|
211
232
|
}, async ({ receipts }) => {
|
|
212
233
|
try {
|
|
213
|
-
const
|
|
234
|
+
const results = [];
|
|
214
235
|
let previousRoot = "";
|
|
215
236
|
let chainIntact = true;
|
|
216
237
|
for (let i = 0; i < receipts.length; i++) {
|
|
217
238
|
const r = receipts[i];
|
|
218
239
|
const hash = stripHashPrefix(r.decision_hash ?? r.merkle_leaf ?? r.merkle_root);
|
|
219
240
|
if (!hash) {
|
|
220
|
-
|
|
241
|
+
results.push({ index: i, receipt_id: String(r.receipt_id || "?"), verified: false, found: false, hash: "" });
|
|
221
242
|
chainIntact = false;
|
|
222
243
|
continue;
|
|
223
244
|
}
|
|
224
245
|
const result = (await apexApiCall(`/verify-hash?hash=${encodeURIComponent(hash)}`));
|
|
225
|
-
|
|
246
|
+
results.push({
|
|
226
247
|
index: i,
|
|
227
248
|
receipt_id: String(r.receipt_id || "?"),
|
|
228
249
|
verified: !!result.verified,
|
|
@@ -231,24 +252,24 @@ server.registerTool("audit", {
|
|
|
231
252
|
});
|
|
232
253
|
const root = stripHashPrefix(r.merkle_root);
|
|
233
254
|
if (previousRoot && root && previousRoot === root && i > 0) {
|
|
234
|
-
// Identical consecutive roots are
|
|
255
|
+
// Identical consecutive roots are noted only; the ledger decides continuity.
|
|
235
256
|
}
|
|
236
257
|
previousRoot = root;
|
|
237
258
|
if (!result.verified)
|
|
238
259
|
chainIntact = false;
|
|
239
260
|
}
|
|
240
|
-
const verifiedCount =
|
|
261
|
+
const verifiedCount = results.filter((f) => f.verified).length;
|
|
241
262
|
return mcpResult({
|
|
242
263
|
success: true,
|
|
243
|
-
|
|
264
|
+
verification_report: {
|
|
244
265
|
total: receipts.length,
|
|
245
266
|
verified: verifiedCount,
|
|
246
267
|
failed: receipts.length - verifiedCount,
|
|
247
268
|
chainIntact,
|
|
248
|
-
|
|
249
|
-
|
|
269
|
+
results,
|
|
270
|
+
verified_at: new Date().toISOString(),
|
|
250
271
|
},
|
|
251
|
-
message: `
|
|
272
|
+
message: `Chain verification complete: ${verifiedCount}/${receipts.length} receipts verified${chainIntact ? ", chain intact" : ", chain broken"}`,
|
|
252
273
|
});
|
|
253
274
|
}
|
|
254
275
|
catch (error) {
|
package/package.json
CHANGED
|
@@ -1,47 +1,58 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "apex-psi-mcp",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"mcpName": "io.github.kawal393/apex-psi-mcp",
|
|
5
|
-
"description": "APEX PSI MCP
|
|
6
|
-
"type": "module",
|
|
7
|
-
"main": "dist/index.js",
|
|
8
|
-
"files": [
|
|
9
|
-
"dist",
|
|
10
|
-
"README.md"
|
|
11
|
-
],
|
|
12
|
-
"bin": {
|
|
13
|
-
"apex-psi-mcp": "dist/index.js"
|
|
14
|
-
},
|
|
15
|
-
"scripts": {
|
|
16
|
-
"build": "tsc",
|
|
17
|
-
"start": "node dist/index.js",
|
|
18
|
-
"dev": "tsx src/index.ts"
|
|
19
|
-
},
|
|
20
|
-
"keywords": [
|
|
21
|
-
"mcp",
|
|
22
|
-
"model-context-protocol",
|
|
23
|
-
"mcp-server",
|
|
24
|
-
"apex-psi",
|
|
25
|
-
"cryptographic-verification",
|
|
26
|
-
"provenance",
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "apex-psi-mcp",
|
|
3
|
+
"version": "1.1.1",
|
|
4
|
+
"mcpName": "io.github.kawal393/apex-psi-mcp",
|
|
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
|
+
"type": "module",
|
|
7
|
+
"main": "dist/index.js",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist",
|
|
10
|
+
"README.md"
|
|
11
|
+
],
|
|
12
|
+
"bin": {
|
|
13
|
+
"apex-psi-mcp": "dist/index.js"
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"build": "tsc",
|
|
17
|
+
"start": "node dist/index.js",
|
|
18
|
+
"dev": "tsx src/index.ts"
|
|
19
|
+
},
|
|
20
|
+
"keywords": [
|
|
21
|
+
"mcp",
|
|
22
|
+
"model-context-protocol",
|
|
23
|
+
"mcp-server",
|
|
24
|
+
"apex-psi",
|
|
25
|
+
"cryptographic-verification",
|
|
26
|
+
"provenance",
|
|
27
|
+
"evidence",
|
|
28
|
+
"audit-trail",
|
|
29
|
+
"record-integrity",
|
|
30
|
+
"tamper-evident",
|
|
31
|
+
"append-only-ledger",
|
|
32
|
+
"post-quantum",
|
|
33
|
+
"ai-governance",
|
|
34
|
+
"compliance",
|
|
35
|
+
"ai-agents"
|
|
36
|
+
],
|
|
37
|
+
"author": "APEX PSI",
|
|
38
|
+
"license": "MIT",
|
|
39
|
+
"repository": {
|
|
40
|
+
"type": "git",
|
|
41
|
+
"url": "git+https://github.com/kawal393/apex-psi-mcp-server.git"
|
|
42
|
+
},
|
|
43
|
+
"homepage": "https://www.ai-governance-standard.com/mcp",
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@modelcontextprotocol/sdk": "^1.12.0",
|
|
46
|
+
"zod": "^3.23.8"
|
|
47
|
+
},
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@types/node": "^20.11.0",
|
|
50
|
+
"typescript": "^5.3.3"
|
|
51
|
+
},
|
|
52
|
+
"engines": {
|
|
53
|
+
"node": ">=18.0.0"
|
|
54
|
+
},
|
|
55
|
+
"publishConfig": {
|
|
56
|
+
"access": "public"
|
|
57
|
+
}
|
|
58
|
+
}
|