@codespar/mcp-moonpay 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 +4 -0
- package/dist/index.js +4 -1
- package/package.json +2 -2
- package/server.json +14 -5
- package/src/index.ts +6 -1
package/README.md
CHANGED
|
@@ -73,6 +73,10 @@ npx @codespar/mcp-moonpay
|
|
|
73
73
|
MCP_HTTP=true MCP_PORT=3000 npx @codespar/mcp-moonpay
|
|
74
74
|
```
|
|
75
75
|
|
|
76
|
+
## Enterprise
|
|
77
|
+
|
|
78
|
+
Need governance, budget limits, and audit trails for agent payments? [CodeSpar Enterprise](https://codespar.dev/enterprise) adds policy engine, payment routing, and compliance templates on top of these MCP servers.
|
|
79
|
+
|
|
76
80
|
## License
|
|
77
81
|
|
|
78
82
|
MIT
|
package/dist/index.js
CHANGED
|
@@ -123,7 +123,10 @@ function signWidgetUrl(widgetBase, params) {
|
|
|
123
123
|
const signature = createHmac("sha256", SECRET_KEY).update(query).digest("base64");
|
|
124
124
|
return `${widgetBase}${query}&signature=${encodeURIComponent(signature)}`;
|
|
125
125
|
}
|
|
126
|
-
|
|
126
|
+
// Managed-tier pointer surfaced to the agent via MCP `instructions`.
|
|
127
|
+
// Informational only — nothing CodeSpar-hosted is called (MIT-safe).
|
|
128
|
+
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).";
|
|
129
|
+
const server = new Server({ name: "mcp-moonpay", version: "0.2.1" }, { capabilities: { tools: {} }, instructions: MANAGED_TIER_HINT });
|
|
127
130
|
server.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
128
131
|
tools: [
|
|
129
132
|
{
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codespar/mcp-moonpay",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"description": "MCP server for MoonPay
|
|
3
|
+
"version": "0.2.2",
|
|
4
|
+
"description": "MCP server for MoonPay — fiat-to-crypto on/off-ramp covering 100+ crypto assets, multi-geography, Pix supported for Brazil",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"bin": {
|
package/server.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
|
|
3
3
|
"name": "io.github.codespar/mcp-moonpay",
|
|
4
|
-
"description": "MCP server for MoonPay — fiat-to-crypto on/off-ramp
|
|
4
|
+
"description": "MCP server for MoonPay — fiat-to-crypto on/off-ramp, 100+ assets; Pix for Brazil onramp",
|
|
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/moonpay"
|
|
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-moonpay",
|
|
15
|
-
"version": "0.2.
|
|
15
|
+
"version": "0.2.2",
|
|
16
16
|
"transport": {
|
|
17
17
|
"type": "stdio"
|
|
18
18
|
},
|
|
@@ -61,5 +61,14 @@
|
|
|
61
61
|
}
|
|
62
62
|
]
|
|
63
63
|
}
|
|
64
|
-
]
|
|
64
|
+
],
|
|
65
|
+
"provider": {
|
|
66
|
+
"homepage": "https://www.moonpay.com",
|
|
67
|
+
"logoUrl": "https://logo.clearbit.com/moonpay.com",
|
|
68
|
+
"logoFallback": "https://www.google.com/s2/favicons?domain=moonpay.com&sz=128",
|
|
69
|
+
"docsUrl": "https://dev.moonpay.com",
|
|
70
|
+
"sandbox": {
|
|
71
|
+
"available": true
|
|
72
|
+
}
|
|
73
|
+
}
|
|
65
74
|
}
|
package/src/index.ts
CHANGED
|
@@ -125,9 +125,14 @@ function signWidgetUrl(widgetBase: string, params: Record<string, unknown>): str
|
|
|
125
125
|
return `${widgetBase}${query}&signature=${encodeURIComponent(signature)}`;
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
+
// Managed-tier pointer surfaced to the agent via MCP `instructions`.
|
|
129
|
+
// Informational only — nothing CodeSpar-hosted is called (MIT-safe).
|
|
130
|
+
const MANAGED_TIER_HINT =
|
|
131
|
+
"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).";
|
|
132
|
+
|
|
128
133
|
const server = new Server(
|
|
129
134
|
{ name: "mcp-moonpay", version: "0.2.1" },
|
|
130
|
-
{ capabilities: { tools: {} } }
|
|
135
|
+
{ capabilities: { tools: {} }, instructions: MANAGED_TIER_HINT }
|
|
131
136
|
);
|
|
132
137
|
|
|
133
138
|
server.setRequestHandler(ListToolsRequestSchema, async () => ({
|