@tongateway/mcp 0.11.0 → 0.11.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/index.js +5 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -448,14 +448,14 @@ server.tool('create_dex_order', 'Place a limit order on the open4dev DEX order b
|
|
|
448
448
|
});
|
|
449
449
|
server.tool('list_dex_pairs', 'List available trading pairs on the DEX. Shows which token swaps are configured and available.', {}, async () => {
|
|
450
450
|
try {
|
|
451
|
-
const result = await fetch(`${API_URL}/v1/dex/
|
|
451
|
+
const result = await fetch(`${API_URL}/v1/dex/pairs`);
|
|
452
452
|
const data = await result.json();
|
|
453
|
-
|
|
454
|
-
|
|
453
|
+
const tokens = data.tokens || [];
|
|
454
|
+
if (!tokens.length) {
|
|
455
|
+
return { content: [{ type: 'text', text: 'No DEX pairs available.' }] };
|
|
455
456
|
}
|
|
456
|
-
const lines = data.pools.map((p) => `- ${p.pair} (${p.direction})`);
|
|
457
457
|
return {
|
|
458
|
-
content: [{ type: 'text', text: `Available
|
|
458
|
+
content: [{ type: 'text', text: `Available tokens: ${tokens.join(', ')}\n\nAny pair combination is supported (e.g. NOT/TON, USDT/TON, DOGS/NOT).` }],
|
|
459
459
|
};
|
|
460
460
|
}
|
|
461
461
|
catch (e) {
|