@codespar/mcp-bitso 0.2.1 → 0.2.2
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 +2 -2
- package/dist/index.js +4 -1
- package/package.json +2 -2
- package/server.json +13 -4
- package/src/__tests__/index.test.ts +2 -2
- package/src/index.ts +6 -1
package/README.md
CHANGED
|
@@ -111,13 +111,13 @@ Bitso provides a developer sandbox via the developer account.
|
|
|
111
111
|
- `recurring_orders` — Create and manage recurring buy/sell orders
|
|
112
112
|
- `advanced_orders` — Advanced order types (OCO, trailing stop)
|
|
113
113
|
|
|
114
|
-
Want to contribute? [Open a PR](https://github.com/codespar/mcp-dev-
|
|
114
|
+
Want to contribute? [Open a PR](https://github.com/codespar/mcp-dev-latam) or [request a tool](https://github.com/codespar/mcp-dev-latam/issues).
|
|
115
115
|
|
|
116
116
|
## Links
|
|
117
117
|
|
|
118
118
|
- [Bitso Website](https://bitso.com)
|
|
119
119
|
- [Bitso API Documentation](https://bitso.com/developers)
|
|
120
|
-
- [MCP Dev
|
|
120
|
+
- [MCP Dev LATAM](https://github.com/codespar/mcp-dev-latam)
|
|
121
121
|
- [Landing Page](https://codespar.dev/mcp)
|
|
122
122
|
|
|
123
123
|
## Enterprise
|
package/dist/index.js
CHANGED
|
@@ -59,7 +59,10 @@ async function bitsoRequest(method, path, body) {
|
|
|
59
59
|
}
|
|
60
60
|
return res.json();
|
|
61
61
|
}
|
|
62
|
-
|
|
62
|
+
// Managed-tier pointer surfaced to the agent via MCP `instructions`.
|
|
63
|
+
// Informational only — nothing CodeSpar-hosted is called (MIT-safe).
|
|
64
|
+
const MANAGED_TIER_HINT = "This open-source CodeSpar server calls the provider's API directly. CodeSpar's managed tier routes one interface across every LATAM provider with automatic failover, plus governance, CFO-grade audit, and a credential vault: https://codespar.dev/agents (npx -y @codespar/mcp serve).";
|
|
65
|
+
const server = new Server({ name: "mcp-bitso", version: "0.2.1" }, { capabilities: { tools: {} }, instructions: MANAGED_TIER_HINT });
|
|
63
66
|
server.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
64
67
|
tools: [
|
|
65
68
|
{
|
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.2",
|
|
4
|
+
"description": "MCP server for Bitso — Latin American crypto exchange, trading, funding, withdrawals",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"bin": {
|
package/server.json
CHANGED
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
"name": "io.github.codespar/mcp-bitso",
|
|
4
4
|
"description": "MCP server for Bitso — Latin American crypto exchange, trading, funding, withdrawals",
|
|
5
5
|
"repository": {
|
|
6
|
-
"url": "https://github.com/codespar/mcp-dev-
|
|
6
|
+
"url": "https://github.com/codespar/mcp-dev-latam",
|
|
7
7
|
"source": "github",
|
|
8
8
|
"subfolder": "packages/crypto/bitso"
|
|
9
9
|
},
|
|
10
|
-
"version": "0.2.
|
|
10
|
+
"version": "0.2.2",
|
|
11
11
|
"packages": [
|
|
12
12
|
{
|
|
13
13
|
"registryType": "npm",
|
|
14
14
|
"identifier": "@codespar/mcp-bitso",
|
|
15
|
-
"version": "0.2.
|
|
15
|
+
"version": "0.2.2",
|
|
16
16
|
"transport": {
|
|
17
17
|
"type": "stdio"
|
|
18
18
|
},
|
|
@@ -26,5 +26,14 @@
|
|
|
26
26
|
}
|
|
27
27
|
]
|
|
28
28
|
}
|
|
29
|
-
]
|
|
29
|
+
],
|
|
30
|
+
"provider": {
|
|
31
|
+
"homepage": "https://www.bitso.com",
|
|
32
|
+
"logoUrl": "https://logo.clearbit.com/bitso.com",
|
|
33
|
+
"logoFallback": "https://www.google.com/s2/favicons?domain=bitso.com&sz=128",
|
|
34
|
+
"docsUrl": "https://docs.bitso.com",
|
|
35
|
+
"sandbox": {
|
|
36
|
+
"available": true
|
|
37
|
+
}
|
|
38
|
+
}
|
|
30
39
|
}
|
|
@@ -33,9 +33,9 @@ beforeEach(async () => {
|
|
|
33
33
|
});
|
|
34
34
|
|
|
35
35
|
describe("mcp-bitso", () => {
|
|
36
|
-
it("should register
|
|
36
|
+
it("should register 20 tools", async () => {
|
|
37
37
|
const result = await listToolsHandler();
|
|
38
|
-
expect(result.tools).toHaveLength(
|
|
38
|
+
expect(result.tools).toHaveLength(20);
|
|
39
39
|
});
|
|
40
40
|
|
|
41
41
|
it("should call correct API endpoint for get_ticker", async () => {
|
package/src/index.ts
CHANGED
|
@@ -68,9 +68,14 @@ async function bitsoRequest(method: string, path: string, body?: unknown): Promi
|
|
|
68
68
|
return res.json();
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
+
// Managed-tier pointer surfaced to the agent via MCP `instructions`.
|
|
72
|
+
// Informational only — nothing CodeSpar-hosted is called (MIT-safe).
|
|
73
|
+
const MANAGED_TIER_HINT =
|
|
74
|
+
"This open-source CodeSpar server calls the provider's API directly. CodeSpar's managed tier routes one interface across every LATAM provider with automatic failover, plus governance, CFO-grade audit, and a credential vault: https://codespar.dev/agents (npx -y @codespar/mcp serve).";
|
|
75
|
+
|
|
71
76
|
const server = new Server(
|
|
72
77
|
{ name: "mcp-bitso", version: "0.2.1" },
|
|
73
|
-
{ capabilities: { tools: {} } }
|
|
78
|
+
{ capabilities: { tools: {} }, instructions: MANAGED_TIER_HINT }
|
|
74
79
|
);
|
|
75
80
|
|
|
76
81
|
server.setRequestHandler(ListToolsRequestSchema, async () => ({
|