clanker-wallet 0.6.0 → 0.6.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.d.ts CHANGED
@@ -75,6 +75,12 @@ export declare const MCP_TOOLS: ({
75
75
  };
76
76
  required: string[];
77
77
  };
78
+ annotations: {
79
+ readOnlyHint: boolean;
80
+ destructiveHint: boolean;
81
+ idempotentHint: boolean;
82
+ openWorldHint: boolean;
83
+ };
78
84
  } | {
79
85
  name: string;
80
86
  description: string;
@@ -117,6 +123,12 @@ export declare const MCP_TOOLS: ({
117
123
  };
118
124
  required: string[];
119
125
  };
126
+ annotations: {
127
+ readOnlyHint: boolean;
128
+ destructiveHint: boolean;
129
+ idempotentHint: boolean;
130
+ openWorldHint: boolean;
131
+ };
120
132
  } | {
121
133
  name: string;
122
134
  description: string;
@@ -136,6 +148,10 @@ export declare const MCP_TOOLS: ({
136
148
  };
137
149
  required: string[];
138
150
  };
151
+ annotations: {
152
+ readOnlyHint: boolean;
153
+ openWorldHint: boolean;
154
+ };
139
155
  } | {
140
156
  name: string;
141
157
  description: string;
@@ -147,6 +163,10 @@ export declare const MCP_TOOLS: ({
147
163
  };
148
164
  required?: undefined;
149
165
  };
166
+ annotations: {
167
+ readOnlyHint: boolean;
168
+ openWorldHint: boolean;
169
+ };
150
170
  })[];
151
171
  /** what get_request reports, in the order the docs list them */
152
172
  export declare const REQUEST_STATUSES: readonly ["pending", "approved", "rejected", "failed", "unknown", "expired"];
package/dist/mcp.js CHANGED
@@ -20,6 +20,13 @@ const CONTEXT_PROPERTIES = {
20
20
  urgency: { type: 'string', enum: URGENCIES, description: 'priority hint shown to the human' },
21
21
  expected_outcome: { type: 'string', description: 'what will happen once it is sent' },
22
22
  };
23
+ /**
24
+ * MCP tool annotations: assistants (ChatGPT, dots, Claude) may skip their confirmation prompt for read-only tools.
25
+ * a request moves nothing until the human approves it on their device, so it is not destructive, but each call
26
+ * sends a new request to the human's wallet.
27
+ */
28
+ const REQUEST_HINTS = { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: true };
29
+ const READ_HINTS = { readOnlyHint: true, openWorldHint: false };
23
30
  export const MCP_TOOLS = [
24
31
  {
25
32
  name: 'request_evm_tx',
@@ -38,6 +45,7 @@ export const MCP_TOOLS = [
38
45
  },
39
46
  required: ['chain_id', 'to', 'value', 'reason'],
40
47
  },
48
+ annotations: REQUEST_HINTS,
41
49
  },
42
50
  {
43
51
  name: 'request_transfer',
@@ -56,6 +64,7 @@ export const MCP_TOOLS = [
56
64
  },
57
65
  required: ['family', 'network', 'to', 'amount', 'reason'],
58
66
  },
67
+ annotations: REQUEST_HINTS,
59
68
  },
60
69
  {
61
70
  name: 'get_request',
@@ -72,12 +81,14 @@ export const MCP_TOOLS = [
72
81
  },
73
82
  required: ['request_id'],
74
83
  },
84
+ annotations: READ_HINTS,
75
85
  },
76
86
  {
77
87
  name: 'list_pairings',
78
88
  description: 'List the wallets you can request on (chain family, network, wallet address, mode) and your agent fingerprint, ' +
79
89
  'which the human compares in the web app before trusting you.',
80
90
  inputSchema: { type: 'object', properties: {} },
91
+ annotations: READ_HINTS,
81
92
  },
82
93
  ];
83
94
  const INSTRUCTIONS = 'clanker-wallet sends transaction requests to a human, who approves or rejects each one in their own wallet; ' +
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clanker-wallet",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",