@gblin-protocol/mcp-server 0.4.3 → 0.5.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.
Files changed (63) hide show
  1. package/AGENTS.md +49 -20
  2. package/README.md +111 -11
  3. package/dist/abi.d.ts +27 -0
  4. package/dist/abi.d.ts.map +1 -1
  5. package/dist/abi.js +1 -0
  6. package/dist/abi.js.map +1 -1
  7. package/dist/actions.d.ts +306 -0
  8. package/dist/actions.d.ts.map +1 -0
  9. package/dist/actions.js +749 -0
  10. package/dist/actions.js.map +1 -0
  11. package/dist/auction.d.ts.map +1 -1
  12. package/dist/auction.js +5 -4
  13. package/dist/auction.js.map +1 -1
  14. package/dist/config.d.ts +20 -3
  15. package/dist/config.d.ts.map +1 -1
  16. package/dist/config.js +23 -6
  17. package/dist/config.js.map +1 -1
  18. package/dist/helpers.d.ts +6 -0
  19. package/dist/helpers.d.ts.map +1 -1
  20. package/dist/helpers.js +37 -13
  21. package/dist/helpers.js.map +1 -1
  22. package/dist/index.d.ts +3 -4
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index.js +38 -19
  25. package/dist/index.js.map +1 -1
  26. package/dist/output-schemas.d.ts +18 -0
  27. package/dist/output-schemas.d.ts.map +1 -0
  28. package/dist/output-schemas.js +243 -0
  29. package/dist/output-schemas.js.map +1 -0
  30. package/dist/payments.d.ts +170 -0
  31. package/dist/payments.d.ts.map +1 -0
  32. package/dist/payments.js +524 -0
  33. package/dist/payments.js.map +1 -0
  34. package/dist/paywall.d.ts +10 -1
  35. package/dist/paywall.d.ts.map +1 -1
  36. package/dist/paywall.js +1 -1
  37. package/dist/paywall.js.map +1 -1
  38. package/dist/prompts.d.ts +33 -0
  39. package/dist/prompts.d.ts.map +1 -0
  40. package/dist/prompts.js +139 -0
  41. package/dist/prompts.js.map +1 -0
  42. package/dist/receipts.d.ts +2 -1
  43. package/dist/receipts.d.ts.map +1 -1
  44. package/dist/receipts.js +16 -12
  45. package/dist/receipts.js.map +1 -1
  46. package/dist/resources.d.ts +17 -0
  47. package/dist/resources.d.ts.map +1 -0
  48. package/dist/resources.js +146 -0
  49. package/dist/resources.js.map +1 -0
  50. package/dist/shared.d.ts +35 -0
  51. package/dist/shared.d.ts.map +1 -0
  52. package/dist/shared.js +68 -0
  53. package/dist/shared.js.map +1 -0
  54. package/dist/tools.d.ts +106 -19
  55. package/dist/tools.d.ts.map +1 -1
  56. package/dist/tools.js +124 -117
  57. package/dist/tools.js.map +1 -1
  58. package/dist/version.d.ts +2 -0
  59. package/dist/version.d.ts.map +1 -0
  60. package/dist/version.js +3 -0
  61. package/dist/version.js.map +1 -0
  62. package/llms.txt +24 -2
  63. package/package.json +8 -3
@@ -0,0 +1,306 @@
1
+ /**
2
+ * GBLIN MCP — prepare, simulate, follow.
3
+ *
4
+ * Four tools that close the loop around a transaction, in the order an agent uses them:
5
+ *
6
+ * prepare_action → the unsigned steps for any operation on the vault
7
+ * preview_steps → the same steps simulated in sequence against the latest block
8
+ * get_transaction_status → what a sent transaction did
9
+ * get_nav_history → NAV per share over time, beside ETH and BTC
10
+ *
11
+ * Nothing here signs or sends. Simulation uses eth_simulateV1; history uses historical eth_call,
12
+ * which the default public RPC refuses, so both fall back to public endpoints that serve them.
13
+ */
14
+ export declare const PREPARE_ACTION_DEFINITION: {
15
+ name: string;
16
+ description: string;
17
+ inputSchema: {
18
+ type: "object";
19
+ properties: {
20
+ action: {
21
+ type: string;
22
+ enum: ("bid" | "mint_with_eth" | "mint_with_weth" | "mint_with_usdc" | "redeem_in_kind" | "exit_to_eth" | "exit_to_usdc")[];
23
+ description: string;
24
+ };
25
+ wallet_address: {
26
+ type: string;
27
+ pattern: string;
28
+ description: string;
29
+ };
30
+ amount: {
31
+ type: string;
32
+ pattern: string;
33
+ description: string;
34
+ };
35
+ row: {
36
+ type: string;
37
+ minimum: number;
38
+ description: string;
39
+ };
40
+ };
41
+ required: string[];
42
+ additionalProperties: boolean;
43
+ };
44
+ };
45
+ export declare function handlePrepareAction(args: unknown): Promise<unknown>;
46
+ export declare const PREVIEW_STEPS_DEFINITION: {
47
+ name: string;
48
+ description: string;
49
+ inputSchema: {
50
+ type: "object";
51
+ properties: {
52
+ from: {
53
+ type: string;
54
+ pattern: string;
55
+ description: string;
56
+ };
57
+ steps: {
58
+ type: string;
59
+ minItems: number;
60
+ maxItems: number;
61
+ description: string;
62
+ items: {
63
+ type: string;
64
+ properties: {
65
+ target: {
66
+ type: string;
67
+ pattern: string;
68
+ };
69
+ calldata: {
70
+ type: string;
71
+ pattern: string;
72
+ };
73
+ value: {
74
+ type: string;
75
+ pattern: string;
76
+ };
77
+ gas: {
78
+ type: string;
79
+ pattern: string;
80
+ };
81
+ };
82
+ required: string[];
83
+ additionalProperties: boolean;
84
+ };
85
+ };
86
+ };
87
+ required: string[];
88
+ additionalProperties: boolean;
89
+ };
90
+ };
91
+ export declare function handlePreviewSteps(args: unknown): Promise<{
92
+ structuredContent?: Record<string, unknown> | undefined;
93
+ content: {
94
+ type: "text";
95
+ text: string;
96
+ }[];
97
+ } | {
98
+ isError: boolean;
99
+ content: {
100
+ type: "text";
101
+ text: string;
102
+ }[];
103
+ }>;
104
+ export declare const TX_STATUS_DEFINITION: {
105
+ name: string;
106
+ description: string;
107
+ inputSchema: {
108
+ type: "object";
109
+ properties: {
110
+ hash: {
111
+ type: string;
112
+ pattern: string;
113
+ description: string;
114
+ };
115
+ };
116
+ required: string[];
117
+ additionalProperties: boolean;
118
+ };
119
+ };
120
+ export declare function handleTransactionStatus(args: unknown): Promise<{
121
+ structuredContent?: Record<string, unknown> | undefined;
122
+ content: {
123
+ type: "text";
124
+ text: string;
125
+ }[];
126
+ } | {
127
+ isError: boolean;
128
+ content: {
129
+ type: "text";
130
+ text: string;
131
+ }[];
132
+ }>;
133
+ export declare const NAV_HISTORY_DEFINITION: {
134
+ name: string;
135
+ description: string;
136
+ inputSchema: {
137
+ type: "object";
138
+ properties: {
139
+ interval: {
140
+ type: string;
141
+ enum: string[];
142
+ description: string;
143
+ };
144
+ points: {
145
+ type: string;
146
+ minimum: number;
147
+ maximum: number;
148
+ description: string;
149
+ };
150
+ };
151
+ additionalProperties: boolean;
152
+ };
153
+ };
154
+ export declare function handleNavHistory(args: unknown): Promise<{
155
+ structuredContent?: Record<string, unknown> | undefined;
156
+ content: {
157
+ type: "text";
158
+ text: string;
159
+ }[];
160
+ } | {
161
+ isError: boolean;
162
+ content: {
163
+ type: "text";
164
+ text: string;
165
+ }[];
166
+ }>;
167
+ export declare const ACTION_TOOL_HANDLERS: Record<string, (args: unknown) => Promise<unknown>>;
168
+ export declare const ACTION_TOOL_DEFINITIONS: ({
169
+ annotations: {
170
+ title: string;
171
+ readOnlyHint: boolean;
172
+ destructiveHint: boolean;
173
+ idempotentHint: boolean;
174
+ openWorldHint: boolean;
175
+ };
176
+ name: string;
177
+ description: string;
178
+ inputSchema: {
179
+ type: "object";
180
+ properties: {
181
+ action: {
182
+ type: string;
183
+ enum: ("bid" | "mint_with_eth" | "mint_with_weth" | "mint_with_usdc" | "redeem_in_kind" | "exit_to_eth" | "exit_to_usdc")[];
184
+ description: string;
185
+ };
186
+ wallet_address: {
187
+ type: string;
188
+ pattern: string;
189
+ description: string;
190
+ };
191
+ amount: {
192
+ type: string;
193
+ pattern: string;
194
+ description: string;
195
+ };
196
+ row: {
197
+ type: string;
198
+ minimum: number;
199
+ description: string;
200
+ };
201
+ };
202
+ required: string[];
203
+ additionalProperties: boolean;
204
+ };
205
+ } | {
206
+ annotations: {
207
+ title: string;
208
+ readOnlyHint: boolean;
209
+ destructiveHint: boolean;
210
+ idempotentHint: boolean;
211
+ openWorldHint: boolean;
212
+ };
213
+ name: string;
214
+ description: string;
215
+ inputSchema: {
216
+ type: "object";
217
+ properties: {
218
+ from: {
219
+ type: string;
220
+ pattern: string;
221
+ description: string;
222
+ };
223
+ steps: {
224
+ type: string;
225
+ minItems: number;
226
+ maxItems: number;
227
+ description: string;
228
+ items: {
229
+ type: string;
230
+ properties: {
231
+ target: {
232
+ type: string;
233
+ pattern: string;
234
+ };
235
+ calldata: {
236
+ type: string;
237
+ pattern: string;
238
+ };
239
+ value: {
240
+ type: string;
241
+ pattern: string;
242
+ };
243
+ gas: {
244
+ type: string;
245
+ pattern: string;
246
+ };
247
+ };
248
+ required: string[];
249
+ additionalProperties: boolean;
250
+ };
251
+ };
252
+ };
253
+ required: string[];
254
+ additionalProperties: boolean;
255
+ };
256
+ } | {
257
+ annotations: {
258
+ title: string;
259
+ readOnlyHint: boolean;
260
+ destructiveHint: boolean;
261
+ idempotentHint: boolean;
262
+ openWorldHint: boolean;
263
+ };
264
+ name: string;
265
+ description: string;
266
+ inputSchema: {
267
+ type: "object";
268
+ properties: {
269
+ hash: {
270
+ type: string;
271
+ pattern: string;
272
+ description: string;
273
+ };
274
+ };
275
+ required: string[];
276
+ additionalProperties: boolean;
277
+ };
278
+ } | {
279
+ annotations: {
280
+ title: string;
281
+ readOnlyHint: boolean;
282
+ destructiveHint: boolean;
283
+ idempotentHint: boolean;
284
+ openWorldHint: boolean;
285
+ };
286
+ name: string;
287
+ description: string;
288
+ inputSchema: {
289
+ type: "object";
290
+ properties: {
291
+ interval: {
292
+ type: string;
293
+ enum: string[];
294
+ description: string;
295
+ };
296
+ points: {
297
+ type: string;
298
+ minimum: number;
299
+ maximum: number;
300
+ description: string;
301
+ };
302
+ };
303
+ additionalProperties: boolean;
304
+ };
305
+ })[];
306
+ //# sourceMappingURL=actions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../src/actions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAqMH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmBrC,CAAC;AAqBF,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,OAAO,oBAoLtD;AAkBD,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BpC,CAAC;AA2EF,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,OAAO;;;;;;;;;;;;GA4ErD;AAMD,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;CAUhC,CAAC;AAEF,wBAAsB,uBAAuB,CAAC,IAAI,EAAE,OAAO;;;;;;;;;;;;GA+C1D;AASD,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;CAYlC,CAAC;AAIF,wBAAsB,gBAAgB,CAAC,IAAI,EAAE,OAAO;;;;;;;;;;;;GAsFnD;AAED,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,OAAO,CAAC,OAAO,CAAC,CAKpF,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAQjC,CAAC"}