@codespar/mcp-bitso 0.2.0 → 0.2.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/README.md +13 -3
- package/dist/index.js +2 -2
- package/package.json +2 -2
- package/server.json +2 -2
- package/src/index.ts +2 -2
package/README.md
CHANGED
|
@@ -51,10 +51,10 @@ Add to `.cursor/mcp.json` or `.vscode/mcp.json`:
|
|
|
51
51
|
}
|
|
52
52
|
```
|
|
53
53
|
|
|
54
|
-
## Tools
|
|
54
|
+
## Tools (20)
|
|
55
55
|
|
|
56
|
-
| Tool |
|
|
57
|
-
|
|
56
|
+
| Tool | Purpose |
|
|
57
|
+
|---|---|
|
|
58
58
|
| `get_ticker` | Get ticker data for a trading pair (price, volume, VWAP, etc.) |
|
|
59
59
|
| `list_orderbook` | Get order book (bids and asks) for a trading pair |
|
|
60
60
|
| `create_order` | Create a buy or sell order |
|
|
@@ -65,6 +65,16 @@ Add to `.cursor/mcp.json` or `.vscode/mcp.json`:
|
|
|
65
65
|
| `list_trades` | List executed trades for an order book |
|
|
66
66
|
| `list_funding_sources` | List available funding sources (bank accounts, etc.) |
|
|
67
67
|
| `create_withdrawal` | Create a withdrawal request (crypto or fiat) |
|
|
68
|
+
| `list_ledger` | List account ledger entries (trades, fees, fundings, withdrawals) |
|
|
69
|
+
| `list_open_orders` | List currently open orders for the authenticated user |
|
|
70
|
+
| `lookup_order` | Look up one or more orders by origin_id (client_id) |
|
|
71
|
+
| `cancel_all_orders` | Cancel all open orders for the authenticated user |
|
|
72
|
+
| `list_fundings` | List account fundings (deposits) |
|
|
73
|
+
| `list_withdrawals` | List account withdrawals |
|
|
74
|
+
| `get_withdrawal` | Retrieve a specific withdrawal by its ID |
|
|
75
|
+
| `list_fees` | List applicable fees for the authenticated user across trading pairs |
|
|
76
|
+
| `get_account_status` | Retrieve account KYC and verification status (tier, limits, required docs) |
|
|
77
|
+
| `list_funding_destinations` | Get funding destination details (address/CLABE) for a given currency |
|
|
68
78
|
|
|
69
79
|
## Authentication
|
|
70
80
|
|
package/dist/index.js
CHANGED
|
@@ -59,7 +59,7 @@ async function bitsoRequest(method, path, body) {
|
|
|
59
59
|
}
|
|
60
60
|
return res.json();
|
|
61
61
|
}
|
|
62
|
-
const server = new Server({ name: "mcp-bitso", version: "0.2.
|
|
62
|
+
const server = new Server({ name: "mcp-bitso", version: "0.2.1" }, { capabilities: { tools: {} } });
|
|
63
63
|
server.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
64
64
|
tools: [
|
|
65
65
|
{
|
|
@@ -430,7 +430,7 @@ async function main() {
|
|
|
430
430
|
const t = new StreamableHTTPServerTransport({ sessionIdGenerator: () => randomUUID(), onsessioninitialized: (id) => { transports.set(id, t); } });
|
|
431
431
|
t.onclose = () => { if (t.sessionId)
|
|
432
432
|
transports.delete(t.sessionId); };
|
|
433
|
-
const s = new Server({ name: "mcp-bitso", version: "0.2.
|
|
433
|
+
const s = new Server({ name: "mcp-bitso", version: "0.2.1" }, { capabilities: { tools: {} } });
|
|
434
434
|
server._requestHandlers.forEach((v, k) => s._requestHandlers.set(k, v));
|
|
435
435
|
server._notificationHandlers?.forEach((v, k) => s._notificationHandlers.set(k, v));
|
|
436
436
|
await s.connect(t);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codespar/mcp-bitso",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"description": "MCP server for Bitso
|
|
3
|
+
"version": "0.2.1",
|
|
4
|
+
"description": "MCP server for Bitso \u2014 Latin American crypto exchange, trading, funding, withdrawals",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"bin": {
|
package/server.json
CHANGED
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
"source": "github",
|
|
8
8
|
"subfolder": "packages/crypto/bitso"
|
|
9
9
|
},
|
|
10
|
-
"version": "0.2.
|
|
10
|
+
"version": "0.2.1",
|
|
11
11
|
"packages": [
|
|
12
12
|
{
|
|
13
13
|
"registryType": "npm",
|
|
14
14
|
"identifier": "@codespar/mcp-bitso",
|
|
15
|
-
"version": "0.2.
|
|
15
|
+
"version": "0.2.1",
|
|
16
16
|
"transport": {
|
|
17
17
|
"type": "stdio"
|
|
18
18
|
},
|
package/src/index.ts
CHANGED
|
@@ -69,7 +69,7 @@ async function bitsoRequest(method: string, path: string, body?: unknown): Promi
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
const server = new Server(
|
|
72
|
-
{ name: "mcp-bitso", version: "0.2.
|
|
72
|
+
{ name: "mcp-bitso", version: "0.2.1" },
|
|
73
73
|
{ capabilities: { tools: {} } }
|
|
74
74
|
);
|
|
75
75
|
|
|
@@ -415,7 +415,7 @@ async function main() {
|
|
|
415
415
|
if (!sid && isInitializeRequest(req.body)) {
|
|
416
416
|
const t = new StreamableHTTPServerTransport({ sessionIdGenerator: () => randomUUID(), onsessioninitialized: (id) => { transports.set(id, t); } });
|
|
417
417
|
t.onclose = () => { if (t.sessionId) transports.delete(t.sessionId); };
|
|
418
|
-
const s = new Server({ name: "mcp-bitso", version: "0.2.
|
|
418
|
+
const s = new Server({ name: "mcp-bitso", version: "0.2.1" }, { capabilities: { tools: {} } }); (server as any)._requestHandlers.forEach((v: any, k: any) => (s as any)._requestHandlers.set(k, v)); (server as any)._notificationHandlers?.forEach((v: any, k: any) => (s as any)._notificationHandlers.set(k, v)); await s.connect(t);
|
|
419
419
|
await t.handleRequest(req, res, req.body); return;
|
|
420
420
|
}
|
|
421
421
|
res.status(400).json({ jsonrpc: "2.0", error: { code: -32000, message: "Bad Request" }, id: null });
|