aipou-mcp-server 0.2.1 → 0.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 CHANGED
@@ -16,7 +16,7 @@ const usageCounts = {
16
16
  outputTokens: z.number().int().min(0).max(10_000_000),
17
17
  durationSeconds: z.number().int().min(0).max(86_400)
18
18
  };
19
- const server = new McpServer({ name: "aipou-mcp", version: "0.2.1" }, {
19
+ const server = new McpServer({ name: "aipou-mcp", version: "0.2.2" }, {
20
20
  instructions: "For meaningful AI tasks, call begin_ai_task before work and complete_ai_task after work using hashes, never raw prompts or outputs. " +
21
21
  "Use the dedicated farming identity only. Never reveal private keys or local collector state. " +
22
22
  "Call settle_all_ai_rewards after a broad user request such as 'claim my AIPOU' or 'settle all pending AIPOU'. " +
@@ -53,6 +53,8 @@ test("creates verifiable receipts and rejects nonce/evidence replay", async () =
53
53
  chainId: 8453,
54
54
  verifyingContract
55
55
  });
56
+ assert.match(repeatedSession.nonce, /^0x[0-9a-f]{64}$/);
57
+ assert.notEqual(repeatedSession.nonce, session.nonce);
56
58
  await assert.rejects(completeTask({
57
59
  nonce: repeatedSession.nonce,
58
60
  inputTokens: 1200,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
- {
1
+ {
2
2
  "name": "aipou-mcp-server",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "mcpName": "io.github.0xddneto/ai-proof-of-us",
5
5
  "description": "MCP server for private, signed AI task receipts and optional validated AIPOU claims.",
6
6
  "keywords": [
@@ -18,7 +18,7 @@
18
18
  "url": "git+https://github.com/0xddneto/AI-Proof-of-Us.git",
19
19
  "directory": "mcp-server"
20
20
  },
21
- "homepage": "https://github.com/0xddneto/AI-Proof-of-Us#readme",
21
+ "homepage": "https://0xddneto.github.io/AI-Proof-of-Us/",
22
22
  "bugs": {
23
23
  "url": "https://github.com/0xddneto/AI-Proof-of-Us/issues"
24
24
  },
@@ -33,8 +33,8 @@
33
33
  "bin": {
34
34
  "aipou-mcp": "dist/index.js"
35
35
  },
36
- "scripts": {
37
- "build": "tsc -p tsconfig.json",
36
+ "scripts": {
37
+ "build": "tsc -p tsconfig.json",
38
38
  "test": "npm run build && node --test dist/protocol.test.js",
39
39
  "pack:check": "npm test && npm pack --dry-run",
40
40
  "dev": "tsx src/index.ts",
@@ -47,16 +47,16 @@
47
47
  "engines": {
48
48
  "node": ">=20"
49
49
  },
50
- "dependencies": {
51
- "@modelcontextprotocol/sdk": "^1.13.0",
52
- "dotenv": "^16.6.1",
53
- "ethers": "^6.17.0",
54
- "merkletreejs": "^0.6.0",
55
- "zod": "^3.23.8"
56
- },
57
- "devDependencies": {
58
- "@types/node": "^22.5.4",
59
- "tsx": "^4.19.0",
60
- "typescript": "^5.5.4"
61
- }
62
- }
50
+ "dependencies": {
51
+ "@modelcontextprotocol/sdk": "^1.13.0",
52
+ "dotenv": "^16.6.1",
53
+ "ethers": "^6.17.0",
54
+ "merkletreejs": "^0.6.0",
55
+ "zod": "^3.23.8"
56
+ },
57
+ "devDependencies": {
58
+ "@types/node": "^22.5.4",
59
+ "tsx": "^4.19.0",
60
+ "typescript": "^5.5.4"
61
+ }
62
+ }
package/server.json CHANGED
@@ -3,18 +3,18 @@
3
3
  "name": "io.github.0xddneto/ai-proof-of-us",
4
4
  "title": "AI Proof of Us",
5
5
  "description": "Private signed AI task receipts with replay checks and optional validated AIPOU claims.",
6
- "websiteUrl": "https://github.com/0xddneto/AI-Proof-of-Us",
6
+ "websiteUrl": "https://0xddneto.github.io/AI-Proof-of-Us/",
7
7
  "repository": {
8
8
  "url": "https://github.com/0xddneto/AI-Proof-of-Us",
9
9
  "source": "github",
10
10
  "subfolder": "mcp-server"
11
11
  },
12
- "version": "0.2.1",
12
+ "version": "0.2.2",
13
13
  "packages": [
14
14
  {
15
15
  "registryType": "npm",
16
16
  "identifier": "aipou-mcp-server",
17
- "version": "0.2.1",
17
+ "version": "0.2.2",
18
18
  "transport": {
19
19
  "type": "stdio"
20
20
  },