@qvapay/mcp-server 2.0.0 → 2.0.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 +3 -5
- package/package.json +2 -2
- package/server.json +0 -2
- package/src/tools/market.js +0 -29
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ MCP (Model Context Protocol) server for [QvaPay](https://qvapay.com) — enablin
|
|
|
4
4
|
|
|
5
5
|
## Features
|
|
6
6
|
|
|
7
|
-
- **
|
|
7
|
+
- **29 tools** covering market data, P2P trading, merchant, and user operations
|
|
8
8
|
- **Market Data** (public, no auth): Crypto prices, coin listings, P2P averages, stats, and rankings
|
|
9
9
|
- **P2P Trading**: Create/edit/cancel offers, apply, chat, rate counterparties
|
|
10
10
|
- **Merchant API**: Create invoices, charge users, list transactions
|
|
@@ -28,9 +28,9 @@ npm install -g @qvapay/mcp-server
|
|
|
28
28
|
|
|
29
29
|
Set environment variables based on which features you need:
|
|
30
30
|
|
|
31
|
-
### Market Tools (
|
|
31
|
+
### Market Tools (3 tools) — No auth required
|
|
32
32
|
|
|
33
|
-
Market tools are always available. They provide public crypto prices
|
|
33
|
+
Market tools are always available. They provide public crypto prices and P2P exchange rate averages.
|
|
34
34
|
|
|
35
35
|
### Merchant Tools (7 tools)
|
|
36
36
|
|
|
@@ -125,8 +125,6 @@ Add to `.claude/settings.json` or `~/.claude.json`:
|
|
|
125
125
|
| `qvapay_coins` | List all cryptocurrencies with prices, fees, and limits |
|
|
126
126
|
| `qvapay_price_history` | Get price history for a cryptocurrency (1H to ALL) |
|
|
127
127
|
| `qvapay_p2p_averages` | Current P2P exchange rate averages for all coins |
|
|
128
|
-
| `qvapay_p2p_stats` | Platform statistics: volume, trades, growth |
|
|
129
|
-
| `qvapay_p2p_ranking` | Weekly P2P trading leaderboard (top 20) |
|
|
130
128
|
|
|
131
129
|
### Merchant Tools (requires APP_ID + APP_SECRET)
|
|
132
130
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qvapay/mcp-server",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "MCP server for QvaPay — AI-native payment platform with P2P trading, market data, and crypto payments",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -31,4 +31,4 @@
|
|
|
31
31
|
"engines": {
|
|
32
32
|
"node": ">=18.0.0"
|
|
33
33
|
}
|
|
34
|
-
}
|
|
34
|
+
}
|
package/server.json
CHANGED
|
@@ -40,8 +40,6 @@
|
|
|
40
40
|
{ "name": "qvapay_coins", "description": "List all cryptocurrencies with prices, fees, and limits" },
|
|
41
41
|
{ "name": "qvapay_price_history", "description": "Get price history for a cryptocurrency" },
|
|
42
42
|
{ "name": "qvapay_p2p_averages", "description": "Current P2P exchange rate averages" },
|
|
43
|
-
{ "name": "qvapay_p2p_stats", "description": "Platform statistics: volume, trades, growth" },
|
|
44
|
-
{ "name": "qvapay_p2p_ranking", "description": "Weekly P2P trading leaderboard" },
|
|
45
43
|
{ "name": "qvapay_app_info", "description": "Get merchant app details" },
|
|
46
44
|
{ "name": "qvapay_app_balance", "description": "Get merchant balance" },
|
|
47
45
|
{ "name": "qvapay_create_invoice", "description": "Create payment invoice" },
|
package/src/tools/market.js
CHANGED
|
@@ -64,33 +64,4 @@ export function registerMarketTools(server) {
|
|
|
64
64
|
}
|
|
65
65
|
)
|
|
66
66
|
|
|
67
|
-
// Get P2P platform stats
|
|
68
|
-
server.tool(
|
|
69
|
-
'qvapay_p2p_stats',
|
|
70
|
-
'Get QvaPay P2P platform statistics: volume, trade counts, monthly trends, user growth, and year-over-year metrics.',
|
|
71
|
-
{},
|
|
72
|
-
async () => {
|
|
73
|
-
try {
|
|
74
|
-
const data = await client.public('/p2p/stats')
|
|
75
|
-
return { content: [{ type: 'text', text: JSON.stringify(data, null, 2) }] }
|
|
76
|
-
} catch (error) {
|
|
77
|
-
return { content: [{ type: 'text', text: `Error: ${error.message}` }], isError: true }
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
)
|
|
81
|
-
|
|
82
|
-
// Get P2P weekly ranking
|
|
83
|
-
server.tool(
|
|
84
|
-
'qvapay_p2p_ranking',
|
|
85
|
-
'Get the weekly P2P trading leaderboard. Shows top 20 traders ranked by volume, trade count, unique partners, and ratings.',
|
|
86
|
-
{},
|
|
87
|
-
async () => {
|
|
88
|
-
try {
|
|
89
|
-
const data = await client.public('/p2p/ranking')
|
|
90
|
-
return { content: [{ type: 'text', text: JSON.stringify(data, null, 2) }] }
|
|
91
|
-
} catch (error) {
|
|
92
|
-
return { content: [{ type: 'text', text: `Error: ${error.message}` }], isError: true }
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
)
|
|
96
67
|
}
|