tersign 0.1.0 → 0.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/dist/mcp/bin.js +0 -0
- package/dist/mcp/server.d.ts +6 -0
- package/dist/mcp/server.js +4 -1
- package/package.json +5 -3
package/dist/mcp/bin.js
CHANGED
|
File without changes
|
package/dist/mcp/server.d.ts
CHANGED
|
@@ -4,4 +4,10 @@ import { type McpDeps } from './tools.js';
|
|
|
4
4
|
* (or its framework) can issue, verify, and chain receipts without importing the SDK.
|
|
5
5
|
* Config via env — see envDeps(). */
|
|
6
6
|
export declare function envDeps(env?: Record<string, string | undefined>): McpDeps;
|
|
7
|
+
/** MUST match package.json name/version — the MCP handshake self-reports this identity to
|
|
8
|
+
* every client; mcp.test.ts pins it against package.json so a release bump can't drift it. */
|
|
9
|
+
export declare const MCP_SERVER_IDENTITY: {
|
|
10
|
+
readonly name: "tersign";
|
|
11
|
+
readonly version: "0.1.1";
|
|
12
|
+
};
|
|
7
13
|
export declare function buildServer(deps: McpDeps): McpServer;
|
package/dist/mcp/server.js
CHANGED
|
@@ -43,8 +43,11 @@ export function envDeps(env = process.env) {
|
|
|
43
43
|
function json(value) {
|
|
44
44
|
return { content: [{ type: 'text', text: JSON.stringify(value, null, 2) }] };
|
|
45
45
|
}
|
|
46
|
+
/** MUST match package.json name/version — the MCP handshake self-reports this identity to
|
|
47
|
+
* every client; mcp.test.ts pins it against package.json so a release bump can't drift it. */
|
|
48
|
+
export const MCP_SERVER_IDENTITY = { name: 'tersign', version: '0.1.1' };
|
|
46
49
|
export function buildServer(deps) {
|
|
47
|
-
const server = new McpServer(
|
|
50
|
+
const server = new McpServer(MCP_SERVER_IDENTITY);
|
|
48
51
|
server.registerTool('issue_receipt', {
|
|
49
52
|
title: 'Issue signed receipt',
|
|
50
53
|
description: 'Issue an x402 offer-receipt (EIP-712) plus an Tersign compliance record for a settled payment; counter-signs into the ledger when configured.',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tersign",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Tersign \u2014 the evidence layer for the agent economy. Counter-signed receipts, agent action records, idempotency enforcement, refunds, disputes, and jury-ready evidence envelopes for x402/agent-commerce sellers.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
"vitest": "^2.0.0"
|
|
28
28
|
},
|
|
29
29
|
"bin": {
|
|
30
|
+
"tersign": "dist/mcp/bin.js",
|
|
30
31
|
"tersign-mcp": "dist/mcp/bin.js",
|
|
31
32
|
"tersign-verify": "dist/verify-bin.js"
|
|
32
33
|
},
|
|
@@ -56,5 +57,6 @@
|
|
|
56
57
|
"ai-agents",
|
|
57
58
|
"mcp",
|
|
58
59
|
"audit-trail"
|
|
59
|
-
]
|
|
60
|
-
|
|
60
|
+
],
|
|
61
|
+
"mcpName": "io.github.tersignhq/evidence"
|
|
62
|
+
}
|