@suigar/mcp 0.1.0
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/README.md +164 -0
- package/dist/bin.cjs +11 -0
- package/dist/bin.d.cts +1 -0
- package/dist/bin.d.mts +1 -0
- package/dist/bin.mjs +12 -0
- package/dist/client.cjs +46 -0
- package/dist/client.d.cts +17 -0
- package/dist/client.d.mts +17 -0
- package/dist/client.mjs +43 -0
- package/dist/coin.cjs +86 -0
- package/dist/coin.d.cts +35 -0
- package/dist/coin.d.mts +35 -0
- package/dist/coin.mjs +86 -0
- package/dist/config.cjs +183 -0
- package/dist/config.d.cts +15 -0
- package/dist/config.d.mts +15 -0
- package/dist/config.mjs +174 -0
- package/dist/index.cjs +53 -0
- package/dist/index.d.cts +10 -0
- package/dist/index.d.mts +10 -0
- package/dist/index.mjs +9 -0
- package/dist/mcp-support.cjs +62 -0
- package/dist/mcp-support.d.cts +16 -0
- package/dist/mcp-support.d.mts +16 -0
- package/dist/mcp-support.mjs +60 -0
- package/dist/metadata.cjs +51 -0
- package/dist/metadata.d.cts +52 -0
- package/dist/metadata.d.mts +52 -0
- package/dist/metadata.mjs +47 -0
- package/dist/server.cjs +433 -0
- package/dist/server.d.cts +73 -0
- package/dist/server.d.mts +73 -0
- package/dist/server.mjs +431 -0
- package/dist/tools.cjs +617 -0
- package/dist/tools.d.cts +158 -0
- package/dist/tools.d.mts +158 -0
- package/dist/tools.mjs +608 -0
- package/dist/transactions.cjs +294 -0
- package/dist/transactions.d.cts +40 -0
- package/dist/transactions.d.mts +40 -0
- package/dist/transactions.mjs +286 -0
- package/dist/types.d.cts +111 -0
- package/dist/types.d.mts +111 -0
- package/node_modules/@suigar/currency-registry/dist/index.cjs +121 -0
- package/node_modules/@suigar/currency-registry/dist/index.d.cts +50 -0
- package/node_modules/@suigar/currency-registry/dist/index.d.mts +50 -0
- package/node_modules/@suigar/currency-registry/dist/index.mjs +110 -0
- package/node_modules/@suigar/currency-registry/package.json +31 -0
- package/node_modules/@suigar/game-registry/dist/index.cjs +310 -0
- package/node_modules/@suigar/game-registry/dist/index.d.cts +65 -0
- package/node_modules/@suigar/game-registry/dist/index.d.mts +65 -0
- package/node_modules/@suigar/game-registry/dist/index.mjs +292 -0
- package/node_modules/@suigar/game-registry/package.json +31 -0
- package/node_modules/@suigar/sui-rpc-pool/dist/index.cjs +45590 -0
- package/node_modules/@suigar/sui-rpc-pool/dist/index.d.cts +465 -0
- package/node_modules/@suigar/sui-rpc-pool/dist/index.d.mts +465 -0
- package/node_modules/@suigar/sui-rpc-pool/dist/index.mjs +45570 -0
- package/node_modules/@suigar/sui-rpc-pool/package.json +31 -0
- package/package.json +62 -0
package/dist/tools.d.cts
ADDED
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { GameMcpSupport } from "./mcp-support.cjs";
|
|
2
|
+
import { ConfigInspection, ReadOnlyPlan, SuigarNetwork, TransactionSummary } from "./types.cjs";
|
|
3
|
+
|
|
4
|
+
//#region src/tools.d.ts
|
|
5
|
+
declare const readConfigTool: (input?: unknown) => Promise<ConfigInspection>;
|
|
6
|
+
declare const readGameMetadataTool: (input?: unknown) => Promise<{
|
|
7
|
+
config: ConfigInspection;
|
|
8
|
+
game: {
|
|
9
|
+
mcpSupport: GameMcpSupport;
|
|
10
|
+
packageId: string | null;
|
|
11
|
+
settingsId: string | null;
|
|
12
|
+
onchainSettings: {
|
|
13
|
+
definition: import("@suigar/game-registry").OnchainGameSettingsDefinition;
|
|
14
|
+
objectType: string;
|
|
15
|
+
parametersTypePrefix: string;
|
|
16
|
+
} | null;
|
|
17
|
+
id: import("@suigar/game-registry").GameId;
|
|
18
|
+
name: string;
|
|
19
|
+
module: import("@suigar/game-registry").GameModule;
|
|
20
|
+
eventTypeName: string;
|
|
21
|
+
description?: string;
|
|
22
|
+
aliases: string[];
|
|
23
|
+
tags?: string[];
|
|
24
|
+
status?: import("@suigar/game-registry").GameStatus;
|
|
25
|
+
updatedAt?: string;
|
|
26
|
+
} | null;
|
|
27
|
+
currency: {
|
|
28
|
+
coinType: string;
|
|
29
|
+
configuredCurrencies: import("@suigar/currency-registry").ConfiguredCurrencyEntry[];
|
|
30
|
+
metadata: {
|
|
31
|
+
symbol: string;
|
|
32
|
+
name: string;
|
|
33
|
+
decimals: number;
|
|
34
|
+
};
|
|
35
|
+
} | null;
|
|
36
|
+
}>;
|
|
37
|
+
declare const buildCoinflipTransactionTool: (input?: unknown) => Promise<ReadOnlyPlan | {
|
|
38
|
+
mode: "dry-run";
|
|
39
|
+
network: SuigarNetwork;
|
|
40
|
+
config: ConfigInspection;
|
|
41
|
+
summary: TransactionSummary;
|
|
42
|
+
dryRun: unknown;
|
|
43
|
+
transactionBytesBase64?: undefined;
|
|
44
|
+
} | {
|
|
45
|
+
mode: "build" | "read-only";
|
|
46
|
+
network: SuigarNetwork;
|
|
47
|
+
config: ConfigInspection;
|
|
48
|
+
summary: TransactionSummary;
|
|
49
|
+
transactionBytesBase64: string;
|
|
50
|
+
dryRun?: undefined;
|
|
51
|
+
}>;
|
|
52
|
+
declare const buildLimboTransactionTool: (input?: unknown) => Promise<ReadOnlyPlan | {
|
|
53
|
+
mode: "dry-run";
|
|
54
|
+
network: SuigarNetwork;
|
|
55
|
+
config: ConfigInspection;
|
|
56
|
+
summary: TransactionSummary;
|
|
57
|
+
dryRun: unknown;
|
|
58
|
+
transactionBytesBase64?: undefined;
|
|
59
|
+
} | {
|
|
60
|
+
mode: "build" | "read-only";
|
|
61
|
+
network: SuigarNetwork;
|
|
62
|
+
config: ConfigInspection;
|
|
63
|
+
summary: TransactionSummary;
|
|
64
|
+
transactionBytesBase64: string;
|
|
65
|
+
dryRun?: undefined;
|
|
66
|
+
}>;
|
|
67
|
+
declare const buildPlinkoTransactionTool: (input?: unknown) => Promise<ReadOnlyPlan | {
|
|
68
|
+
mode: "dry-run";
|
|
69
|
+
network: SuigarNetwork;
|
|
70
|
+
config: ConfigInspection;
|
|
71
|
+
summary: TransactionSummary;
|
|
72
|
+
dryRun: unknown;
|
|
73
|
+
transactionBytesBase64?: undefined;
|
|
74
|
+
} | {
|
|
75
|
+
mode: "build" | "read-only";
|
|
76
|
+
network: SuigarNetwork;
|
|
77
|
+
config: ConfigInspection;
|
|
78
|
+
summary: TransactionSummary;
|
|
79
|
+
transactionBytesBase64: string;
|
|
80
|
+
dryRun?: undefined;
|
|
81
|
+
}>;
|
|
82
|
+
declare const buildWheelTransactionTool: (input?: unknown) => Promise<ReadOnlyPlan | {
|
|
83
|
+
mode: "dry-run";
|
|
84
|
+
network: SuigarNetwork;
|
|
85
|
+
config: ConfigInspection;
|
|
86
|
+
summary: TransactionSummary;
|
|
87
|
+
dryRun: unknown;
|
|
88
|
+
transactionBytesBase64?: undefined;
|
|
89
|
+
} | {
|
|
90
|
+
mode: "build" | "read-only";
|
|
91
|
+
network: SuigarNetwork;
|
|
92
|
+
config: ConfigInspection;
|
|
93
|
+
summary: TransactionSummary;
|
|
94
|
+
transactionBytesBase64: string;
|
|
95
|
+
dryRun?: undefined;
|
|
96
|
+
}>;
|
|
97
|
+
declare const buildRangeTransactionTool: (input?: unknown) => Promise<ReadOnlyPlan | {
|
|
98
|
+
mode: "dry-run";
|
|
99
|
+
network: SuigarNetwork;
|
|
100
|
+
config: ConfigInspection;
|
|
101
|
+
summary: TransactionSummary;
|
|
102
|
+
dryRun: unknown;
|
|
103
|
+
transactionBytesBase64?: undefined;
|
|
104
|
+
} | {
|
|
105
|
+
mode: "build" | "read-only";
|
|
106
|
+
network: SuigarNetwork;
|
|
107
|
+
config: ConfigInspection;
|
|
108
|
+
summary: TransactionSummary;
|
|
109
|
+
transactionBytesBase64: string;
|
|
110
|
+
dryRun?: undefined;
|
|
111
|
+
}>;
|
|
112
|
+
declare const buildPvpCoinflipCreateTransactionTool: (input?: unknown) => Promise<ReadOnlyPlan | {
|
|
113
|
+
mode: "dry-run";
|
|
114
|
+
network: SuigarNetwork;
|
|
115
|
+
config: ConfigInspection;
|
|
116
|
+
summary: TransactionSummary;
|
|
117
|
+
dryRun: unknown;
|
|
118
|
+
transactionBytesBase64?: undefined;
|
|
119
|
+
} | {
|
|
120
|
+
mode: "build" | "read-only";
|
|
121
|
+
network: SuigarNetwork;
|
|
122
|
+
config: ConfigInspection;
|
|
123
|
+
summary: TransactionSummary;
|
|
124
|
+
transactionBytesBase64: string;
|
|
125
|
+
dryRun?: undefined;
|
|
126
|
+
}>;
|
|
127
|
+
declare const buildPvpCoinflipJoinTransactionTool: (input?: unknown) => Promise<ReadOnlyPlan | {
|
|
128
|
+
mode: "dry-run";
|
|
129
|
+
network: SuigarNetwork;
|
|
130
|
+
config: ConfigInspection;
|
|
131
|
+
summary: TransactionSummary;
|
|
132
|
+
dryRun: unknown;
|
|
133
|
+
transactionBytesBase64?: undefined;
|
|
134
|
+
} | {
|
|
135
|
+
mode: "build" | "read-only";
|
|
136
|
+
network: SuigarNetwork;
|
|
137
|
+
config: ConfigInspection;
|
|
138
|
+
summary: TransactionSummary;
|
|
139
|
+
transactionBytesBase64: string;
|
|
140
|
+
dryRun?: undefined;
|
|
141
|
+
}>;
|
|
142
|
+
declare const buildPvpCoinflipCancelTransactionTool: (input?: unknown) => Promise<ReadOnlyPlan | {
|
|
143
|
+
mode: "dry-run";
|
|
144
|
+
network: SuigarNetwork;
|
|
145
|
+
config: ConfigInspection;
|
|
146
|
+
summary: TransactionSummary;
|
|
147
|
+
dryRun: unknown;
|
|
148
|
+
transactionBytesBase64?: undefined;
|
|
149
|
+
} | {
|
|
150
|
+
mode: "build" | "read-only";
|
|
151
|
+
network: SuigarNetwork;
|
|
152
|
+
config: ConfigInspection;
|
|
153
|
+
summary: TransactionSummary;
|
|
154
|
+
transactionBytesBase64: string;
|
|
155
|
+
dryRun?: undefined;
|
|
156
|
+
}>;
|
|
157
|
+
//#endregion
|
|
158
|
+
export { buildCoinflipTransactionTool, buildLimboTransactionTool, buildPlinkoTransactionTool, buildPvpCoinflipCancelTransactionTool, buildPvpCoinflipCreateTransactionTool, buildPvpCoinflipJoinTransactionTool, buildRangeTransactionTool, buildWheelTransactionTool, readConfigTool, readGameMetadataTool };
|
package/dist/tools.d.mts
ADDED
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { GameMcpSupport } from "./mcp-support.mjs";
|
|
2
|
+
import { ConfigInspection, ReadOnlyPlan, SuigarNetwork, TransactionSummary } from "./types.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/tools.d.ts
|
|
5
|
+
declare const readConfigTool: (input?: unknown) => Promise<ConfigInspection>;
|
|
6
|
+
declare const readGameMetadataTool: (input?: unknown) => Promise<{
|
|
7
|
+
config: ConfigInspection;
|
|
8
|
+
game: {
|
|
9
|
+
mcpSupport: GameMcpSupport;
|
|
10
|
+
packageId: string | null;
|
|
11
|
+
settingsId: string | null;
|
|
12
|
+
onchainSettings: {
|
|
13
|
+
definition: import("@suigar/game-registry").OnchainGameSettingsDefinition;
|
|
14
|
+
objectType: string;
|
|
15
|
+
parametersTypePrefix: string;
|
|
16
|
+
} | null;
|
|
17
|
+
id: import("@suigar/game-registry").GameId;
|
|
18
|
+
name: string;
|
|
19
|
+
module: import("@suigar/game-registry").GameModule;
|
|
20
|
+
eventTypeName: string;
|
|
21
|
+
description?: string;
|
|
22
|
+
aliases: string[];
|
|
23
|
+
tags?: string[];
|
|
24
|
+
status?: import("@suigar/game-registry").GameStatus;
|
|
25
|
+
updatedAt?: string;
|
|
26
|
+
} | null;
|
|
27
|
+
currency: {
|
|
28
|
+
coinType: string;
|
|
29
|
+
configuredCurrencies: import("@suigar/currency-registry").ConfiguredCurrencyEntry[];
|
|
30
|
+
metadata: {
|
|
31
|
+
symbol: string;
|
|
32
|
+
name: string;
|
|
33
|
+
decimals: number;
|
|
34
|
+
};
|
|
35
|
+
} | null;
|
|
36
|
+
}>;
|
|
37
|
+
declare const buildCoinflipTransactionTool: (input?: unknown) => Promise<ReadOnlyPlan | {
|
|
38
|
+
mode: "dry-run";
|
|
39
|
+
network: SuigarNetwork;
|
|
40
|
+
config: ConfigInspection;
|
|
41
|
+
summary: TransactionSummary;
|
|
42
|
+
dryRun: unknown;
|
|
43
|
+
transactionBytesBase64?: undefined;
|
|
44
|
+
} | {
|
|
45
|
+
mode: "build" | "read-only";
|
|
46
|
+
network: SuigarNetwork;
|
|
47
|
+
config: ConfigInspection;
|
|
48
|
+
summary: TransactionSummary;
|
|
49
|
+
transactionBytesBase64: string;
|
|
50
|
+
dryRun?: undefined;
|
|
51
|
+
}>;
|
|
52
|
+
declare const buildLimboTransactionTool: (input?: unknown) => Promise<ReadOnlyPlan | {
|
|
53
|
+
mode: "dry-run";
|
|
54
|
+
network: SuigarNetwork;
|
|
55
|
+
config: ConfigInspection;
|
|
56
|
+
summary: TransactionSummary;
|
|
57
|
+
dryRun: unknown;
|
|
58
|
+
transactionBytesBase64?: undefined;
|
|
59
|
+
} | {
|
|
60
|
+
mode: "build" | "read-only";
|
|
61
|
+
network: SuigarNetwork;
|
|
62
|
+
config: ConfigInspection;
|
|
63
|
+
summary: TransactionSummary;
|
|
64
|
+
transactionBytesBase64: string;
|
|
65
|
+
dryRun?: undefined;
|
|
66
|
+
}>;
|
|
67
|
+
declare const buildPlinkoTransactionTool: (input?: unknown) => Promise<ReadOnlyPlan | {
|
|
68
|
+
mode: "dry-run";
|
|
69
|
+
network: SuigarNetwork;
|
|
70
|
+
config: ConfigInspection;
|
|
71
|
+
summary: TransactionSummary;
|
|
72
|
+
dryRun: unknown;
|
|
73
|
+
transactionBytesBase64?: undefined;
|
|
74
|
+
} | {
|
|
75
|
+
mode: "build" | "read-only";
|
|
76
|
+
network: SuigarNetwork;
|
|
77
|
+
config: ConfigInspection;
|
|
78
|
+
summary: TransactionSummary;
|
|
79
|
+
transactionBytesBase64: string;
|
|
80
|
+
dryRun?: undefined;
|
|
81
|
+
}>;
|
|
82
|
+
declare const buildWheelTransactionTool: (input?: unknown) => Promise<ReadOnlyPlan | {
|
|
83
|
+
mode: "dry-run";
|
|
84
|
+
network: SuigarNetwork;
|
|
85
|
+
config: ConfigInspection;
|
|
86
|
+
summary: TransactionSummary;
|
|
87
|
+
dryRun: unknown;
|
|
88
|
+
transactionBytesBase64?: undefined;
|
|
89
|
+
} | {
|
|
90
|
+
mode: "build" | "read-only";
|
|
91
|
+
network: SuigarNetwork;
|
|
92
|
+
config: ConfigInspection;
|
|
93
|
+
summary: TransactionSummary;
|
|
94
|
+
transactionBytesBase64: string;
|
|
95
|
+
dryRun?: undefined;
|
|
96
|
+
}>;
|
|
97
|
+
declare const buildRangeTransactionTool: (input?: unknown) => Promise<ReadOnlyPlan | {
|
|
98
|
+
mode: "dry-run";
|
|
99
|
+
network: SuigarNetwork;
|
|
100
|
+
config: ConfigInspection;
|
|
101
|
+
summary: TransactionSummary;
|
|
102
|
+
dryRun: unknown;
|
|
103
|
+
transactionBytesBase64?: undefined;
|
|
104
|
+
} | {
|
|
105
|
+
mode: "build" | "read-only";
|
|
106
|
+
network: SuigarNetwork;
|
|
107
|
+
config: ConfigInspection;
|
|
108
|
+
summary: TransactionSummary;
|
|
109
|
+
transactionBytesBase64: string;
|
|
110
|
+
dryRun?: undefined;
|
|
111
|
+
}>;
|
|
112
|
+
declare const buildPvpCoinflipCreateTransactionTool: (input?: unknown) => Promise<ReadOnlyPlan | {
|
|
113
|
+
mode: "dry-run";
|
|
114
|
+
network: SuigarNetwork;
|
|
115
|
+
config: ConfigInspection;
|
|
116
|
+
summary: TransactionSummary;
|
|
117
|
+
dryRun: unknown;
|
|
118
|
+
transactionBytesBase64?: undefined;
|
|
119
|
+
} | {
|
|
120
|
+
mode: "build" | "read-only";
|
|
121
|
+
network: SuigarNetwork;
|
|
122
|
+
config: ConfigInspection;
|
|
123
|
+
summary: TransactionSummary;
|
|
124
|
+
transactionBytesBase64: string;
|
|
125
|
+
dryRun?: undefined;
|
|
126
|
+
}>;
|
|
127
|
+
declare const buildPvpCoinflipJoinTransactionTool: (input?: unknown) => Promise<ReadOnlyPlan | {
|
|
128
|
+
mode: "dry-run";
|
|
129
|
+
network: SuigarNetwork;
|
|
130
|
+
config: ConfigInspection;
|
|
131
|
+
summary: TransactionSummary;
|
|
132
|
+
dryRun: unknown;
|
|
133
|
+
transactionBytesBase64?: undefined;
|
|
134
|
+
} | {
|
|
135
|
+
mode: "build" | "read-only";
|
|
136
|
+
network: SuigarNetwork;
|
|
137
|
+
config: ConfigInspection;
|
|
138
|
+
summary: TransactionSummary;
|
|
139
|
+
transactionBytesBase64: string;
|
|
140
|
+
dryRun?: undefined;
|
|
141
|
+
}>;
|
|
142
|
+
declare const buildPvpCoinflipCancelTransactionTool: (input?: unknown) => Promise<ReadOnlyPlan | {
|
|
143
|
+
mode: "dry-run";
|
|
144
|
+
network: SuigarNetwork;
|
|
145
|
+
config: ConfigInspection;
|
|
146
|
+
summary: TransactionSummary;
|
|
147
|
+
dryRun: unknown;
|
|
148
|
+
transactionBytesBase64?: undefined;
|
|
149
|
+
} | {
|
|
150
|
+
mode: "build" | "read-only";
|
|
151
|
+
network: SuigarNetwork;
|
|
152
|
+
config: ConfigInspection;
|
|
153
|
+
summary: TransactionSummary;
|
|
154
|
+
transactionBytesBase64: string;
|
|
155
|
+
dryRun?: undefined;
|
|
156
|
+
}>;
|
|
157
|
+
//#endregion
|
|
158
|
+
export { buildCoinflipTransactionTool, buildLimboTransactionTool, buildPlinkoTransactionTool, buildPvpCoinflipCancelTransactionTool, buildPvpCoinflipCreateTransactionTool, buildPvpCoinflipJoinTransactionTool, buildRangeTransactionTool, buildWheelTransactionTool, readConfigTool, readGameMetadataTool };
|