@moonbanking/mcp-server 0.5.11 → 0.5.12
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 +8 -8
- package/dist/index.js +16 -16
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -60,14 +60,14 @@ npx @moonbanking/mcp-server --tool=tool1 --tool=tool2
|
|
|
60
60
|
|
|
61
61
|
## Available Tools
|
|
62
62
|
|
|
63
|
-
- `
|
|
64
|
-
- `
|
|
65
|
-
- `
|
|
66
|
-
- `
|
|
67
|
-
- `
|
|
68
|
-
- `
|
|
69
|
-
- `
|
|
70
|
-
- `
|
|
63
|
+
- `bank_get`: This endpoint allows you to retrieve a paginated list of all banks. By default, a maximum of ten banks are shown per page. You can search banks by name, filter by country and description (including null/not_null status or semantic content search using vector embeddings), sort them by various fields, and include related data like scores and country information. When searching description content, results are ordered by semantic similarity.
|
|
64
|
+
- `bank_getById`: This endpoint allows you to retrieve a specific bank by providing the bank ID. You can include related data like scores and country information in the response.
|
|
65
|
+
- `bankVote_get`: This endpoint allows you to retrieve a paginated list of bank votes. You can filter by bank ID, category, country, vote type (upvote or downvote), and other parameters.
|
|
66
|
+
- `country_get`: This endpoint allows you to retrieve a paginated list of all countries. By default, a maximum of ten countries are shown per page. You can search countries by name or 2-letter code, sort them by various fields, and include related data like scores.
|
|
67
|
+
- `country_getByCountryCode`: This endpoint allows you to retrieve a specific country by providing the 2-letter ISO country code. You can include related data like scores in the response.
|
|
68
|
+
- `story_get`: This endpoint allows you to retrieve a paginated list of all stories. By default, a maximum of ten stories are shown per page. You can search stories by text content, filter by bank ID, sort them by various fields, and include related data like bank and country information.
|
|
69
|
+
- `story_getById`: This endpoint allows you to retrieve a specific story by providing the story ID. You can include related data like bank and country information in the response.
|
|
70
|
+
- `world_getOverview`: This endpoint allows you to retrieve global overview data that aggregates banks votes, stories and other data across all banks in all countries. You can include related data like scores in the response.
|
|
71
71
|
|
|
72
72
|
## License
|
|
73
73
|
|
package/dist/index.js
CHANGED
|
@@ -52,7 +52,7 @@ const apiCall = async (method, path, options = {}) => {
|
|
|
52
52
|
// Tool definitions
|
|
53
53
|
const tools = [
|
|
54
54
|
{
|
|
55
|
-
"name": "
|
|
55
|
+
"name": "bank_get",
|
|
56
56
|
"description": "This endpoint allows you to retrieve a paginated list of all banks. By default, a maximum of ten banks are shown per page. You can search banks by name, filter by country and description (including null/not_null status or semantic content search using vector embeddings), sort them by various fields, and include related data like scores and country information. When searching description content, results are ordered by semantic similarity.",
|
|
57
57
|
"inputSchema": {
|
|
58
58
|
"type": "object",
|
|
@@ -175,7 +175,7 @@ const tools = [
|
|
|
175
175
|
}
|
|
176
176
|
},
|
|
177
177
|
{
|
|
178
|
-
"name": "
|
|
178
|
+
"name": "bank_getById",
|
|
179
179
|
"description": "This endpoint allows you to retrieve a specific bank by providing the bank ID. You can include related data like scores and country information in the response.",
|
|
180
180
|
"inputSchema": {
|
|
181
181
|
"type": "object",
|
|
@@ -195,7 +195,7 @@ const tools = [
|
|
|
195
195
|
}
|
|
196
196
|
},
|
|
197
197
|
{
|
|
198
|
-
"name": "
|
|
198
|
+
"name": "bankVote_get",
|
|
199
199
|
"description": "This endpoint allows you to retrieve a paginated list of bank votes. You can filter by bank ID, category, country, vote type (upvote or downvote), and other parameters.",
|
|
200
200
|
"inputSchema": {
|
|
201
201
|
"type": "object",
|
|
@@ -254,7 +254,7 @@ const tools = [
|
|
|
254
254
|
}
|
|
255
255
|
},
|
|
256
256
|
{
|
|
257
|
-
"name": "
|
|
257
|
+
"name": "country_get",
|
|
258
258
|
"description": "This endpoint allows you to retrieve a paginated list of all countries. By default, a maximum of ten countries are shown per page. You can search countries by name or 2-letter code, sort them by various fields, and include related data like scores.",
|
|
259
259
|
"inputSchema": {
|
|
260
260
|
"type": "object",
|
|
@@ -365,7 +365,7 @@ const tools = [
|
|
|
365
365
|
}
|
|
366
366
|
},
|
|
367
367
|
{
|
|
368
|
-
"name": "
|
|
368
|
+
"name": "country_getByCountryCode",
|
|
369
369
|
"description": "This endpoint allows you to retrieve a specific country by providing the 2-letter ISO country code. You can include related data like scores in the response.",
|
|
370
370
|
"inputSchema": {
|
|
371
371
|
"type": "object",
|
|
@@ -385,7 +385,7 @@ const tools = [
|
|
|
385
385
|
}
|
|
386
386
|
},
|
|
387
387
|
{
|
|
388
|
-
"name": "
|
|
388
|
+
"name": "story_get",
|
|
389
389
|
"description": "This endpoint allows you to retrieve a paginated list of all stories. By default, a maximum of ten stories are shown per page. You can search stories by text content, filter by bank ID, sort them by various fields, and include related data like bank and country information.",
|
|
390
390
|
"inputSchema": {
|
|
391
391
|
"type": "object",
|
|
@@ -445,7 +445,7 @@ const tools = [
|
|
|
445
445
|
}
|
|
446
446
|
},
|
|
447
447
|
{
|
|
448
|
-
"name": "
|
|
448
|
+
"name": "story_getById",
|
|
449
449
|
"description": "This endpoint allows you to retrieve a specific story by providing the story ID. You can include related data like bank and country information in the response.",
|
|
450
450
|
"inputSchema": {
|
|
451
451
|
"type": "object",
|
|
@@ -465,7 +465,7 @@ const tools = [
|
|
|
465
465
|
}
|
|
466
466
|
},
|
|
467
467
|
{
|
|
468
|
-
"name": "
|
|
468
|
+
"name": "world_getOverview",
|
|
469
469
|
"description": "This endpoint allows you to retrieve global overview data that aggregates banks votes, stories and other data across all banks in all countries. You can include related data like scores in the response.",
|
|
470
470
|
"inputSchema": {
|
|
471
471
|
"type": "object",
|
|
@@ -508,7 +508,7 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
508
508
|
const { name, arguments: args = {} } = request.params;
|
|
509
509
|
try {
|
|
510
510
|
switch (name) {
|
|
511
|
-
case '
|
|
511
|
+
case 'bank_get': {
|
|
512
512
|
const result = await apiCall('GET', `/banks`, {
|
|
513
513
|
params: {
|
|
514
514
|
limit: args.limit,
|
|
@@ -532,7 +532,7 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
532
532
|
],
|
|
533
533
|
};
|
|
534
534
|
}
|
|
535
|
-
case '
|
|
535
|
+
case 'bank_getById': {
|
|
536
536
|
const result = await apiCall('GET', `/banks/${args.id}`, {
|
|
537
537
|
params: {
|
|
538
538
|
include: args.include,
|
|
@@ -547,7 +547,7 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
547
547
|
],
|
|
548
548
|
};
|
|
549
549
|
}
|
|
550
|
-
case '
|
|
550
|
+
case 'bankVote_get': {
|
|
551
551
|
const result = await apiCall('GET', `/bank-votes`, {
|
|
552
552
|
params: {
|
|
553
553
|
limit: args.limit,
|
|
@@ -571,7 +571,7 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
571
571
|
],
|
|
572
572
|
};
|
|
573
573
|
}
|
|
574
|
-
case '
|
|
574
|
+
case 'country_get': {
|
|
575
575
|
const result = await apiCall('GET', `/countries`, {
|
|
576
576
|
params: {
|
|
577
577
|
limit: args.limit,
|
|
@@ -592,7 +592,7 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
592
592
|
],
|
|
593
593
|
};
|
|
594
594
|
}
|
|
595
|
-
case '
|
|
595
|
+
case 'country_getByCountryCode': {
|
|
596
596
|
const result = await apiCall('GET', `/countries/${args.code}`, {
|
|
597
597
|
params: {
|
|
598
598
|
include: args.include,
|
|
@@ -607,7 +607,7 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
607
607
|
],
|
|
608
608
|
};
|
|
609
609
|
}
|
|
610
|
-
case '
|
|
610
|
+
case 'story_get': {
|
|
611
611
|
const result = await apiCall('GET', `/stories`, {
|
|
612
612
|
params: {
|
|
613
613
|
limit: args.limit,
|
|
@@ -631,7 +631,7 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
631
631
|
],
|
|
632
632
|
};
|
|
633
633
|
}
|
|
634
|
-
case '
|
|
634
|
+
case 'story_getById': {
|
|
635
635
|
const result = await apiCall('GET', `/stories/${args.id}`, {
|
|
636
636
|
params: {
|
|
637
637
|
include: args.include,
|
|
@@ -646,7 +646,7 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
646
646
|
],
|
|
647
647
|
};
|
|
648
648
|
}
|
|
649
|
-
case '
|
|
649
|
+
case 'world_getOverview': {
|
|
650
650
|
const result = await apiCall('GET', `/world`, {
|
|
651
651
|
params: {
|
|
652
652
|
include: args.include,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moonbanking/mcp-server",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.12",
|
|
4
4
|
"description": "# Welcome to the Moon Banking API!\n\nEnjoy the documentation and happy coding. Share this spec with your LLM of choice to speed up your development, or take a look at our MCP server and various SDKs.\n\n### More information\n\nFor more information about the Moon Banking API, please visit the [Moon Banking Documentation](https://docs.moonbanking.com).",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|