@quicknode/mcp 0.0.1 → 0.1.0
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 +1 -1
- package/dist/tools/endpoints.js +17 -3
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/tools/endpoints.js
CHANGED
|
@@ -5,6 +5,19 @@ const zod_1 = require("zod");
|
|
|
5
5
|
const types_1 = require("../clients/console_api_client/types");
|
|
6
6
|
const generic_args_1 = require("../common/generic_args");
|
|
7
7
|
const utils_1 = require("../common/utils");
|
|
8
|
+
const listEndpointsArgs = {
|
|
9
|
+
limit: zod_1.z
|
|
10
|
+
.number()
|
|
11
|
+
.min(1)
|
|
12
|
+
.max(250)
|
|
13
|
+
.default(50)
|
|
14
|
+
.describe("Number of endpoints to retrieve (1-250, default: 50)"),
|
|
15
|
+
offset: zod_1.z
|
|
16
|
+
.number()
|
|
17
|
+
.min(0)
|
|
18
|
+
.default(0)
|
|
19
|
+
.describe("Number of endpoints to skip for pagination (default: 0)"),
|
|
20
|
+
};
|
|
8
21
|
const endpointLogsArgs = {
|
|
9
22
|
...generic_args_1.genericArgs.endpointIdArgs,
|
|
10
23
|
from: zod_1.z
|
|
@@ -209,9 +222,10 @@ const getLogDetailsArgs = {
|
|
|
209
222
|
};
|
|
210
223
|
function setEndpointTools(server, client) {
|
|
211
224
|
server.registerTool("get-endpoints", {
|
|
212
|
-
description: "Get
|
|
213
|
-
|
|
214
|
-
|
|
225
|
+
description: "Get web3 QuickNode endpoints for the user, this is a list of all the endpoints that the user has created across all chains and networks. Supports pagination via limit and offset parameters",
|
|
226
|
+
inputSchema: { ...listEndpointsArgs },
|
|
227
|
+
}, async ({ limit, offset }) => {
|
|
228
|
+
const endpoints = await client.listEndpoints(limit, offset);
|
|
215
229
|
return {
|
|
216
230
|
structuredContent: { data: endpoints },
|
|
217
231
|
content: [
|
package/package.json
CHANGED