@trinaryex/mcp 3.8.0 → 4.0.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 +73 -7
- package/dist/capture.d.ts +1 -1
- package/dist/capture.js +1 -1
- package/dist/context.d.ts +10 -2
- package/dist/context.js +2 -1
- package/dist/context.js.map +1 -1
- package/dist/registry.js +34 -2
- package/dist/registry.js.map +1 -1
- package/dist/schemas.d.ts +30 -0
- package/dist/schemas.js +45 -0
- package/dist/schemas.js.map +1 -1
- package/dist/tools/coins.d.ts +2 -0
- package/dist/tools/coins.js +146 -0
- package/dist/tools/coins.js.map +1 -0
- package/dist/tools/coinsPrepare.d.ts +2 -0
- package/dist/tools/coinsPrepare.js +446 -0
- package/dist/tools/coinsPrepare.js.map +1 -0
- package/dist/tools/org.d.ts +2 -0
- package/dist/tools/org.js +422 -0
- package/dist/tools/org.js.map +1 -0
- package/dist/tools/orgCommon.d.ts +144 -0
- package/dist/tools/orgCommon.js +210 -0
- package/dist/tools/orgCommon.js.map +1 -0
- package/dist/tools/orgLifecycle.d.ts +2 -0
- package/dist/tools/orgLifecycle.js +753 -0
- package/dist/tools/orgLifecycle.js.map +1 -0
- package/dist/tools/orgPrepare.d.ts +2 -0
- package/dist/tools/orgPrepare.js +1056 -0
- package/dist/tools/orgPrepare.js.map +1 -0
- package/dist/tools/prepare.d.ts +12 -0
- package/dist/tools/prepare.js +119 -7
- package/dist/tools/prepare.js.map +1 -1
- package/dist/tools/read.js +369 -26
- package/dist/tools/read.js.map +1 -1
- package/dist/tools/world.d.ts +2 -0
- package/dist/tools/world.js +208 -0
- package/dist/tools/world.js.map +1 -0
- package/package.json +3 -2
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ok } from '../result.js';
|
|
3
|
+
import { objectId, suiAddress } from '../schemas.js';
|
|
4
|
+
/**
|
|
5
|
+
* Reads about the game world rather than its markets: who the players are
|
|
6
|
+
* (`characters_*`), how to get between systems (`routing_*`), and the static
|
|
7
|
+
* item catalogue and crafting recipes (`world_*`).
|
|
8
|
+
*
|
|
9
|
+
* All of them are keyless indexer reads through the caller's own API key, with
|
|
10
|
+
* identity always explicit — `characters_by_address` takes its address as an
|
|
11
|
+
* argument, because this server has no configured player to default to.
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* A solar system NAME for the routing reads.
|
|
15
|
+
*
|
|
16
|
+
* Routing is name-only, and since cycle 7 a name is known only once a player
|
|
17
|
+
* has reported it. A numeric id is never a name, so the upstream answer to one
|
|
18
|
+
* is a guaranteed RouteNotFound at 100–300 CU; refusing it here turns that
|
|
19
|
+
* charge into a schema error that says what to do instead.
|
|
20
|
+
*/
|
|
21
|
+
const systemName = z
|
|
22
|
+
.string()
|
|
23
|
+
.min(1)
|
|
24
|
+
.regex(/\D/, 'routing takes solar system NAMES, not numeric ids — resolve the id with spatial_system first; a system nobody has reported a name for cannot be routed to yet');
|
|
25
|
+
const routeShipShape = {
|
|
26
|
+
origin: systemName.describe('Departure solar system NAME, case-insensitive, e.g. "U4T-SL7". Not an id.'),
|
|
27
|
+
destination: systemName.describe('Arrival solar system NAME, case-insensitive. Not an id.'),
|
|
28
|
+
mass: z
|
|
29
|
+
.number()
|
|
30
|
+
.positive()
|
|
31
|
+
.optional()
|
|
32
|
+
.describe('Ship mass in game units (default 1.0); heavier pushes fuel-optimal routes onto stargates.'),
|
|
33
|
+
gateWeight: z
|
|
34
|
+
.number()
|
|
35
|
+
.min(0)
|
|
36
|
+
.max(1)
|
|
37
|
+
.optional()
|
|
38
|
+
.describe('Preference for stargates over jump drives, 0–1 (default 0.5). Used by the balanced mode only.'),
|
|
39
|
+
maxJumpRangeLy: z
|
|
40
|
+
.number()
|
|
41
|
+
.positive()
|
|
42
|
+
.optional()
|
|
43
|
+
.describe('The ship’s jump-drive range in light years (default 50). A larger range can connect a pair that otherwise fails.'),
|
|
44
|
+
};
|
|
45
|
+
const NAMES_CAVEAT = 'Origin and destination are solar system NAMES, never ids, and since cycle 7 names are player-reported: a system nobody has named yet fails with RouteNotFound even though it exists. Find names that resolve with spatial_autocomplete_systems or spatial_system. Waypoint solarSystemName is null for unreported systems — key on solarSystemId.';
|
|
46
|
+
export const worldTools = [
|
|
47
|
+
// ─── Routing ──────────────────────────────────────────────────────────────
|
|
48
|
+
{
|
|
49
|
+
name: 'routing_route',
|
|
50
|
+
title: 'Plan a route',
|
|
51
|
+
description: 'The optimal route between two solar systems over stargates and jump-drive hops, for one optimization mode: time (default, fewest jumps), fuel, or balanced (weighted by gateWeight). Returns the waypoints with each hop’s jump type and distance, and totals for jumps and light years. ' +
|
|
52
|
+
NAMES_CAVEAT +
|
|
53
|
+
' RouteNotFound also means unreachable under these ship parameters — try a larger maxJumpRangeLy. Costs 100 CU; use routing_compare only when you need all three modes.',
|
|
54
|
+
kind: 'read',
|
|
55
|
+
sdkPath: 'routing.route',
|
|
56
|
+
inputShape: {
|
|
57
|
+
...routeShipShape,
|
|
58
|
+
optimization: z
|
|
59
|
+
.enum(['time', 'fuel', 'balanced'])
|
|
60
|
+
.optional()
|
|
61
|
+
.describe('time (default), fuel, or balanced. The answer names the mode differently (fastest, fuel_efficient, balanced).'),
|
|
62
|
+
},
|
|
63
|
+
handler: async (ctx, args) => ok(await ctx.readClient().route(args)),
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: 'routing_compare',
|
|
67
|
+
title: 'Compare route modes',
|
|
68
|
+
description: 'The fuel-efficient, fastest and balanced routes between two systems in one consistent call — for showing the jumps-versus-fuel trade-off. ' +
|
|
69
|
+
NAMES_CAVEAT +
|
|
70
|
+
' Priced as three route searches: costs 300 CU, so prefer routing_route when one mode will do.',
|
|
71
|
+
kind: 'read',
|
|
72
|
+
sdkPath: 'routing.compare',
|
|
73
|
+
inputShape: routeShipShape,
|
|
74
|
+
handler: async (ctx, args) => ok(await ctx.readClient().compareRoutes(args)),
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: 'routing_stats',
|
|
78
|
+
title: 'Get routing coverage',
|
|
79
|
+
description: 'Size of the routing graph — connected systems, stargate and jump-drive edges — and the default jump range drive edges are built with. Pair with spatial_stats, whose knownSolarSystemNames says how much of the map can be routed to by name. Costs 20 CU.',
|
|
80
|
+
kind: 'read',
|
|
81
|
+
sdkPath: 'routing.stats',
|
|
82
|
+
inputShape: {},
|
|
83
|
+
handler: async (ctx) => ok(await ctx.readClient().routingStats()),
|
|
84
|
+
},
|
|
85
|
+
// ─── Characters & tribes ──────────────────────────────────────────────────
|
|
86
|
+
{
|
|
87
|
+
name: 'characters_get',
|
|
88
|
+
title: 'Get a character',
|
|
89
|
+
description: 'One player character by its object id: name, wallet address, tenant, tribe id and profile. With enrich, also the on-chain ownerCapId (the inventoryKey account_balances_at_hub takes for a hangar) and assemblyId. Fails with CharacterNotFound for an unknown id. Costs 20 CU.',
|
|
90
|
+
kind: 'read',
|
|
91
|
+
sdkPath: 'characters.get',
|
|
92
|
+
inputShape: {
|
|
93
|
+
characterId: objectId.describe('Character Sui object id.'),
|
|
94
|
+
enrich: z
|
|
95
|
+
.boolean()
|
|
96
|
+
.optional()
|
|
97
|
+
.describe('Also resolve ownerCapId and assemblyId (default false).'),
|
|
98
|
+
},
|
|
99
|
+
handler: async (ctx, args) => {
|
|
100
|
+
const { characterId, ...opts } = args;
|
|
101
|
+
return ok(await ctx.readClient().character(characterId, opts));
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
name: 'characters_by_address',
|
|
106
|
+
title: 'Find a wallet’s characters',
|
|
107
|
+
description: 'Every character a wallet holds, newest first — a wallet can hold several (one per tenant, or a re-created character), and [] means none. The address is required: unlike the SDK, this server has no configured player to default to. For many wallets at once use characters_batch. Costs 20 CU.',
|
|
108
|
+
kind: 'read',
|
|
109
|
+
sdkPath: 'characters.byAddress',
|
|
110
|
+
inputShape: {
|
|
111
|
+
address: suiAddress.describe('Wallet address to look up.'),
|
|
112
|
+
enrich: z
|
|
113
|
+
.boolean()
|
|
114
|
+
.optional()
|
|
115
|
+
.describe('Also resolve ownerCapId and assemblyId (default false).'),
|
|
116
|
+
},
|
|
117
|
+
handler: async (ctx, args) => {
|
|
118
|
+
const { address, ...opts } = args;
|
|
119
|
+
return ok(await ctx.readClient().charactersByAddress(address, opts));
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
name: 'characters_by_name',
|
|
124
|
+
title: 'Find characters by name',
|
|
125
|
+
description: 'Characters whose name matches EXACTLY (no fuzzy or prefix matching), newest first. Names are not unique, so this returns a list — disambiguate by tenant or address. Costs 20 CU.',
|
|
126
|
+
kind: 'read',
|
|
127
|
+
sdkPath: 'characters.byName',
|
|
128
|
+
inputShape: {
|
|
129
|
+
name: z.string().min(1).describe('Exact character name.'),
|
|
130
|
+
},
|
|
131
|
+
handler: async (ctx, args) => ok(await ctx.readClient().charactersByName(args.name)),
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
name: 'characters_batch',
|
|
135
|
+
title: 'Name many wallets',
|
|
136
|
+
description: 'Resolve up to 500 wallet addresses to their characters and tribe names in one call — how a list of owners from account_owners, org_seats or a fill gets names. Every address is echoed back in `address`; unresolved ones carry null fields rather than being dropped. Costs 50 CU.',
|
|
137
|
+
kind: 'read',
|
|
138
|
+
sdkPath: 'characters.batch',
|
|
139
|
+
inputShape: {
|
|
140
|
+
addresses: z
|
|
141
|
+
.array(suiAddress)
|
|
142
|
+
.min(1)
|
|
143
|
+
.max(500)
|
|
144
|
+
.describe('Wallet addresses (max 500).'),
|
|
145
|
+
},
|
|
146
|
+
handler: async (ctx, args) => ok(await ctx.readClient().charactersBatch(args)),
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
name: 'characters_tribe',
|
|
150
|
+
title: 'Get a tribe',
|
|
151
|
+
description: 'A tribe — the game-world faction a character belongs to, not an on-chain organization (those are org_*) — by numeric id, as carried in a character’s tribeId: name, short name, description, tax rate and URL. Fails with TribeNotFound for an unknown id. Costs 20 CU.',
|
|
152
|
+
kind: 'read',
|
|
153
|
+
sdkPath: 'characters.tribe',
|
|
154
|
+
inputShape: {
|
|
155
|
+
tribeId: z
|
|
156
|
+
.number()
|
|
157
|
+
.int()
|
|
158
|
+
.nonnegative()
|
|
159
|
+
.describe('Numeric tribe id, e.g. 98000001.'),
|
|
160
|
+
},
|
|
161
|
+
handler: async (ctx, args) => ok(await ctx.readClient().tribe(args.tribeId)),
|
|
162
|
+
},
|
|
163
|
+
// ─── World reference data ─────────────────────────────────────────────────
|
|
164
|
+
{
|
|
165
|
+
name: 'world_items',
|
|
166
|
+
title: 'List the item catalogue',
|
|
167
|
+
description: 'The full curated EVE Frontier item list (about 1–2k items, ~100 KB): assetId, name, group, category and physical attributes. Static data that changes only with game releases — fetch once and cache rather than calling per item. To find one item by name use market_search_items. Costs 20 CU.',
|
|
168
|
+
kind: 'read',
|
|
169
|
+
sdkPath: 'world.items',
|
|
170
|
+
inputShape: {},
|
|
171
|
+
handler: async (ctx) => ok(await ctx.readClient().worldItems()),
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
name: 'world_item',
|
|
175
|
+
title: 'Name an item',
|
|
176
|
+
description: 'Display name and group for one item asset id — the cheap way to label an assetId from an order book or trade. Fails with ItemNotFound for an unknown id. Costs 20 CU.',
|
|
177
|
+
kind: 'read',
|
|
178
|
+
sdkPath: 'world.item',
|
|
179
|
+
inputShape: {
|
|
180
|
+
assetId: z.string().min(1).describe('Item asset id, e.g. "77800".'),
|
|
181
|
+
},
|
|
182
|
+
handler: async (ctx, args) => ok(await ctx.readClient().worldItem(args.assetId)),
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
name: 'world_recipes',
|
|
186
|
+
title: 'List crafting recipes',
|
|
187
|
+
description: 'Every crafting recipe: product, output quantity, craft time in seconds (null when unknown) and the input materials with quantities. Static data — fetch once and cache; for one product use world_recipes_for. Costs 20 CU.',
|
|
188
|
+
kind: 'read',
|
|
189
|
+
sdkPath: 'world.recipes',
|
|
190
|
+
inputShape: {},
|
|
191
|
+
handler: async (ctx) => ok(await ctx.readClient().recipes()),
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
name: 'world_recipes_for',
|
|
195
|
+
title: 'Get recipes for an item',
|
|
196
|
+
description: 'The recipes that produce one item — its bill of materials. [] means nothing crafts it, which is an answer, not an error. Pair with market_display_prices over the material ids to cost a build. Costs 20 CU.',
|
|
197
|
+
kind: 'read',
|
|
198
|
+
sdkPath: 'world.recipesFor',
|
|
199
|
+
inputShape: {
|
|
200
|
+
productAssetId: z
|
|
201
|
+
.string()
|
|
202
|
+
.min(1)
|
|
203
|
+
.describe('Asset id of the item to craft, e.g. "77753".'),
|
|
204
|
+
},
|
|
205
|
+
handler: async (ctx, args) => ok(await ctx.readClient().recipesFor(args.productAssetId)),
|
|
206
|
+
},
|
|
207
|
+
];
|
|
208
|
+
//# sourceMappingURL=world.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"world.js","sourceRoot":"","sources":["../../src/tools/world.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAA;AACjC,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAGpD;;;;;;;;GAQG;AAEH;;;;;;;GAOG;AACH,MAAM,UAAU,GAAG,CAAC;KACjB,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,CAAC;KACN,KAAK,CACJ,IAAI,EACJ,+JAA+J,CAChK,CAAA;AAEH,MAAM,cAAc,GAAG;IACrB,MAAM,EAAE,UAAU,CAAC,QAAQ,CACzB,2EAA2E,CAC5E;IACD,WAAW,EAAE,UAAU,CAAC,QAAQ,CAC9B,yDAAyD,CAC1D;IACD,IAAI,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,Q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CAAC,OAAO,EAAE,CAAC;KAC7D;IACD;QACE,IAAI,EAAE,mBAAmB;QACzB,KAAK,EAAE,yBAAyB;QAChC,WAAW,EACT,8MAA8M;QAChN,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,kBAAkB;QAC3B,UAAU,EAAE;YACV,cAAc,EAAE,CAAC;iBACd,MAAM,EAAE;iBACR,GAAG,CAAC,CAAC,CAAC;iBACN,QAAQ,CAAC,8CAA8C,CAAC;SAC5D;QACD,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,CAC3B,EAAE,CAAC,MAAM,GAAG,CAAC,UAAU,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;KAC7D;CACF,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trinaryex/mcp",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "Keyless, multi-tenant MCP server for Trinary Exchange — market reads and unsigned transaction preparation for EVE Frontier trading agents.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"scripts": {
|
|
21
21
|
"build": "tsc -p tsconfig.build.json",
|
|
22
22
|
"check:parity": "npm run build && node scripts/check-parity.mjs",
|
|
23
|
+
"link:sdk": "node scripts/link-sdk.mjs",
|
|
23
24
|
"start": "node dist/index.js",
|
|
24
25
|
"test": "node --experimental-vm-modules node_modules/.bin/jest",
|
|
25
26
|
"test:cov": "node --experimental-vm-modules node_modules/.bin/jest --ci --coverage --reporters=default --reporters=jest-junit",
|
|
@@ -43,7 +44,7 @@
|
|
|
43
44
|
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
44
45
|
"@mysten/sui": "^2.16.0",
|
|
45
46
|
"@trinaryex/keyspace": "^8.3.1",
|
|
46
|
-
"@trinaryex/sdk": "
|
|
47
|
+
"@trinaryex/sdk": "4.0.0",
|
|
47
48
|
"express": "^5.2.1",
|
|
48
49
|
"zod": "^4.4.3"
|
|
49
50
|
},
|