mcp-crypto-price 3.5.2 → 3.5.6
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/http.js
CHANGED
|
@@ -129,6 +129,74 @@ const serverCard = {
|
|
|
129
129
|
openWorldHint: true,
|
|
130
130
|
},
|
|
131
131
|
},
|
|
132
|
+
{
|
|
133
|
+
name: 'get-technical-analysis',
|
|
134
|
+
description: 'Get the latest technical indicators for a cryptocurrency including SMA, EMA, RSI, MACD, and VWAP',
|
|
135
|
+
inputSchema: {
|
|
136
|
+
type: 'object',
|
|
137
|
+
properties: {
|
|
138
|
+
symbol: {
|
|
139
|
+
type: 'string',
|
|
140
|
+
description: 'Cryptocurrency symbol or name (e.g. BTC or Bitcoin)',
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
required: ['symbol'],
|
|
144
|
+
},
|
|
145
|
+
annotations: {
|
|
146
|
+
title: 'Get Technical Analysis',
|
|
147
|
+
readOnlyHint: true,
|
|
148
|
+
destructiveHint: false,
|
|
149
|
+
idempotentHint: true,
|
|
150
|
+
openWorldHint: true,
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
name: 'get-rates',
|
|
155
|
+
description: "Get USD-based conversion rates for fiat currencies and cryptocurrencies. Optionally pass a slug (e.g. 'euro', 'us-dollar', 'bitcoin') to look up a single rate.",
|
|
156
|
+
inputSchema: {
|
|
157
|
+
type: 'object',
|
|
158
|
+
properties: {
|
|
159
|
+
slug: {
|
|
160
|
+
type: 'string',
|
|
161
|
+
description: "Optional: rate slug to fetch a single rate (e.g. 'us-dollar', 'euro', 'bitcoin')",
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
},
|
|
165
|
+
annotations: {
|
|
166
|
+
title: 'Get Currency Rates',
|
|
167
|
+
readOnlyHint: true,
|
|
168
|
+
destructiveHint: false,
|
|
169
|
+
idempotentHint: true,
|
|
170
|
+
openWorldHint: true,
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
name: 'get-exchanges',
|
|
175
|
+
description: "Get top cryptocurrency exchanges ranked by 24h volume. Optionally pass an exchangeId (e.g. 'binance', 'coinbase') to get details for a specific exchange.",
|
|
176
|
+
inputSchema: {
|
|
177
|
+
type: 'object',
|
|
178
|
+
properties: {
|
|
179
|
+
exchangeId: {
|
|
180
|
+
type: 'string',
|
|
181
|
+
description: "Optional: specific exchange ID to look up (e.g. 'binance', 'coinbase', 'kraken')",
|
|
182
|
+
},
|
|
183
|
+
limit: {
|
|
184
|
+
type: 'number',
|
|
185
|
+
minimum: 1,
|
|
186
|
+
maximum: 50,
|
|
187
|
+
default: 10,
|
|
188
|
+
description: 'Number of top exchanges to return when listing (1-50, default 10)',
|
|
189
|
+
},
|
|
190
|
+
},
|
|
191
|
+
},
|
|
192
|
+
annotations: {
|
|
193
|
+
title: 'Get Exchanges',
|
|
194
|
+
readOnlyHint: true,
|
|
195
|
+
destructiveHint: false,
|
|
196
|
+
idempotentHint: true,
|
|
197
|
+
openWorldHint: true,
|
|
198
|
+
},
|
|
199
|
+
},
|
|
132
200
|
],
|
|
133
201
|
resources: [
|
|
134
202
|
{
|
|
@@ -149,12 +217,14 @@ const httpServer = http.createServer(async (req, res) => {
|
|
|
149
217
|
const parsed = new URL(req.url ?? '/', `http://localhost`);
|
|
150
218
|
const pathname = parsed.pathname;
|
|
151
219
|
// MCP server card for discovery (required by Smithery)
|
|
152
|
-
if (
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
220
|
+
// if (
|
|
221
|
+
// pathname === '/.well-known/mcp/server-card.json' &&
|
|
222
|
+
// req.method === 'GET'
|
|
223
|
+
// ) {
|
|
224
|
+
// res.writeHead(200, { 'Content-Type': 'application/json' });
|
|
225
|
+
// res.end(JSON.stringify(serverCard));
|
|
226
|
+
// return;
|
|
227
|
+
// }
|
|
158
228
|
// Homepage: GET /
|
|
159
229
|
if (pathname === '/' && req.method === 'GET') {
|
|
160
230
|
res.writeHead(200, { 'Content-Type': 'text/html; charset=utf-8' });
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mcp-crypto-price",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.6",
|
|
4
4
|
"description": "A Model Context Protocol (MCP) server that provides real-time cryptocurrency data and analysis through CoinCap's API. Features include price tracking, market analysis, and historical trends.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
Binary file
|