@nirvana-labs/nirvana-mcp 1.19.0 → 1.20.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 +15 -12
- package/package.json +2 -2
- package/server.js +1 -1
- package/server.mjs +1 -1
- package/src/server.ts +1 -1
- package/src/tools/index.ts +18 -12
- package/src/tools/{connect/flux/update-connect-flux.ts → networking/connect/connections/create-connect-networking-connections.ts} +71 -13
- package/src/tools/networking/connect/connections/delete-connect-networking-connections.ts +49 -0
- package/src/tools/networking/connect/connections/get-connect-networking-connections.ts +49 -0
- package/src/tools/networking/connect/connections/list-connect-networking-connections.ts +46 -0
- package/src/tools/networking/connect/connections/update-connect-networking-connections.ts +58 -0
- package/src/tools/{connect/flux/routes/list-flux-connect-routes.ts → networking/connect/routes/list-connect-networking-routes.ts} +6 -6
- package/src/tools/rpc-nodes/flex/create-rpc-nodes-flex.ts +61 -0
- package/src/tools/rpc-nodes/flex/delete-rpc-nodes-flex.ts +40 -0
- package/src/tools/rpc-nodes/flex/update-rpc-nodes-flex.ts +56 -0
- package/tools/index.d.mts.map +1 -1
- package/tools/index.d.ts.map +1 -1
- package/tools/index.js +18 -12
- package/tools/index.js.map +1 -1
- package/tools/index.mjs +18 -12
- package/tools/index.mjs.map +1 -1
- package/tools/networking/connect/connections/create-connect-networking-connections.d.mts +45 -0
- package/tools/networking/connect/connections/create-connect-networking-connections.d.mts.map +1 -0
- package/tools/networking/connect/connections/create-connect-networking-connections.d.ts +45 -0
- package/tools/networking/connect/connections/create-connect-networking-connections.d.ts.map +1 -0
- package/tools/{connect/flux/create-connect-flux.js → networking/connect/connections/create-connect-networking-connections.js} +15 -15
- package/tools/networking/connect/connections/create-connect-networking-connections.js.map +1 -0
- package/tools/{connect/flux/create-connect-flux.mjs → networking/connect/connections/create-connect-networking-connections.mjs} +15 -15
- package/tools/networking/connect/connections/create-connect-networking-connections.mjs.map +1 -0
- package/tools/networking/connect/connections/delete-connect-networking-connections.d.mts +45 -0
- package/tools/networking/connect/connections/delete-connect-networking-connections.d.mts.map +1 -0
- package/tools/networking/connect/connections/delete-connect-networking-connections.d.ts +45 -0
- package/tools/networking/connect/connections/delete-connect-networking-connections.d.ts.map +1 -0
- package/tools/networking/connect/connections/delete-connect-networking-connections.js +42 -0
- package/tools/networking/connect/connections/delete-connect-networking-connections.js.map +1 -0
- package/tools/networking/connect/connections/delete-connect-networking-connections.mjs +38 -0
- package/tools/networking/connect/connections/delete-connect-networking-connections.mjs.map +1 -0
- package/tools/networking/connect/connections/get-connect-networking-connections.d.mts +45 -0
- package/tools/networking/connect/connections/get-connect-networking-connections.d.mts.map +1 -0
- package/tools/networking/connect/connections/get-connect-networking-connections.d.ts +45 -0
- package/tools/networking/connect/connections/get-connect-networking-connections.d.ts.map +1 -0
- package/tools/networking/connect/connections/get-connect-networking-connections.js +42 -0
- package/tools/networking/connect/connections/get-connect-networking-connections.js.map +1 -0
- package/tools/networking/connect/connections/get-connect-networking-connections.mjs +38 -0
- package/tools/networking/connect/connections/get-connect-networking-connections.mjs.map +1 -0
- package/tools/networking/connect/connections/list-connect-networking-connections.d.mts +45 -0
- package/tools/networking/connect/connections/list-connect-networking-connections.d.mts.map +1 -0
- package/tools/networking/connect/connections/list-connect-networking-connections.d.ts +45 -0
- package/tools/networking/connect/connections/list-connect-networking-connections.d.ts.map +1 -0
- package/tools/networking/connect/connections/list-connect-networking-connections.js +39 -0
- package/tools/networking/connect/connections/list-connect-networking-connections.js.map +1 -0
- package/tools/networking/connect/connections/list-connect-networking-connections.mjs +35 -0
- package/tools/networking/connect/connections/list-connect-networking-connections.mjs.map +1 -0
- package/tools/networking/connect/connections/update-connect-networking-connections.d.mts +45 -0
- package/tools/networking/connect/connections/update-connect-networking-connections.d.mts.map +1 -0
- package/tools/networking/connect/connections/update-connect-networking-connections.d.ts +45 -0
- package/tools/networking/connect/connections/update-connect-networking-connections.d.ts.map +1 -0
- package/tools/networking/connect/connections/update-connect-networking-connections.js +51 -0
- package/tools/networking/connect/connections/update-connect-networking-connections.js.map +1 -0
- package/tools/networking/connect/connections/update-connect-networking-connections.mjs +47 -0
- package/tools/networking/connect/connections/update-connect-networking-connections.mjs.map +1 -0
- package/tools/networking/connect/routes/list-connect-networking-routes.d.mts +45 -0
- package/tools/networking/connect/routes/list-connect-networking-routes.d.mts.map +1 -0
- package/tools/networking/connect/routes/list-connect-networking-routes.d.ts +45 -0
- package/tools/networking/connect/routes/list-connect-networking-routes.d.ts.map +1 -0
- package/tools/{connect/flux/routes/list-flux-connect-routes.js → networking/connect/routes/list-connect-networking-routes.js} +7 -7
- package/tools/networking/connect/routes/list-connect-networking-routes.js.map +1 -0
- package/tools/networking/connect/routes/list-connect-networking-routes.mjs +35 -0
- package/tools/networking/connect/routes/list-connect-networking-routes.mjs.map +1 -0
- package/tools/{connect/flux/delete-connect-flux.d.mts → rpc-nodes/flex/create-rpc-nodes-flex.d.mts} +1 -1
- package/tools/rpc-nodes/flex/create-rpc-nodes-flex.d.mts.map +1 -0
- package/tools/{connect/flux/delete-connect-flux.d.ts → rpc-nodes/flex/create-rpc-nodes-flex.d.ts} +1 -1
- package/tools/rpc-nodes/flex/create-rpc-nodes-flex.d.ts.map +1 -0
- package/tools/rpc-nodes/flex/create-rpc-nodes-flex.js +56 -0
- package/tools/rpc-nodes/flex/create-rpc-nodes-flex.js.map +1 -0
- package/tools/rpc-nodes/flex/create-rpc-nodes-flex.mjs +52 -0
- package/tools/rpc-nodes/flex/create-rpc-nodes-flex.mjs.map +1 -0
- package/tools/rpc-nodes/flex/delete-rpc-nodes-flex.d.mts +45 -0
- package/tools/rpc-nodes/flex/delete-rpc-nodes-flex.d.mts.map +1 -0
- package/tools/{connect/flux/create-connect-flux.d.mts → rpc-nodes/flex/delete-rpc-nodes-flex.d.ts} +1 -1
- package/tools/rpc-nodes/flex/delete-rpc-nodes-flex.d.ts.map +1 -0
- package/tools/rpc-nodes/flex/delete-rpc-nodes-flex.js +37 -0
- package/tools/rpc-nodes/flex/delete-rpc-nodes-flex.js.map +1 -0
- package/tools/rpc-nodes/flex/delete-rpc-nodes-flex.mjs +33 -0
- package/tools/rpc-nodes/flex/delete-rpc-nodes-flex.mjs.map +1 -0
- package/tools/rpc-nodes/flex/update-rpc-nodes-flex.d.mts +45 -0
- package/tools/rpc-nodes/flex/update-rpc-nodes-flex.d.mts.map +1 -0
- package/tools/{connect/flux/create-connect-flux.d.ts → rpc-nodes/flex/update-rpc-nodes-flex.d.ts} +1 -1
- package/tools/rpc-nodes/flex/update-rpc-nodes-flex.d.ts.map +1 -0
- package/tools/rpc-nodes/flex/update-rpc-nodes-flex.js +51 -0
- package/tools/rpc-nodes/flex/update-rpc-nodes-flex.js.map +1 -0
- package/tools/rpc-nodes/flex/update-rpc-nodes-flex.mjs +47 -0
- package/tools/rpc-nodes/flex/update-rpc-nodes-flex.mjs.map +1 -0
- package/src/tools/connect/flux/create-connect-flux.ts +0 -112
- package/src/tools/connect/flux/delete-connect-flux.ts +0 -47
- package/src/tools/connect/flux/get-connect-flux.ts +0 -47
- package/src/tools/connect/flux/list-connect-flux.ts +0 -44
- package/tools/connect/flux/create-connect-flux.d.mts.map +0 -1
- package/tools/connect/flux/create-connect-flux.d.ts.map +0 -1
- package/tools/connect/flux/create-connect-flux.js.map +0 -1
- package/tools/connect/flux/create-connect-flux.mjs.map +0 -1
- package/tools/connect/flux/delete-connect-flux.d.mts.map +0 -1
- package/tools/connect/flux/delete-connect-flux.d.ts.map +0 -1
- package/tools/connect/flux/delete-connect-flux.js +0 -42
- package/tools/connect/flux/delete-connect-flux.js.map +0 -1
- package/tools/connect/flux/delete-connect-flux.mjs +0 -38
- package/tools/connect/flux/delete-connect-flux.mjs.map +0 -1
- package/tools/connect/flux/get-connect-flux.d.mts +0 -45
- package/tools/connect/flux/get-connect-flux.d.mts.map +0 -1
- package/tools/connect/flux/get-connect-flux.d.ts +0 -45
- package/tools/connect/flux/get-connect-flux.d.ts.map +0 -1
- package/tools/connect/flux/get-connect-flux.js +0 -42
- package/tools/connect/flux/get-connect-flux.js.map +0 -1
- package/tools/connect/flux/get-connect-flux.mjs +0 -38
- package/tools/connect/flux/get-connect-flux.mjs.map +0 -1
- package/tools/connect/flux/list-connect-flux.d.mts +0 -45
- package/tools/connect/flux/list-connect-flux.d.mts.map +0 -1
- package/tools/connect/flux/list-connect-flux.d.ts +0 -45
- package/tools/connect/flux/list-connect-flux.d.ts.map +0 -1
- package/tools/connect/flux/list-connect-flux.js +0 -39
- package/tools/connect/flux/list-connect-flux.js.map +0 -1
- package/tools/connect/flux/list-connect-flux.mjs +0 -35
- package/tools/connect/flux/list-connect-flux.mjs.map +0 -1
- package/tools/connect/flux/routes/list-flux-connect-routes.d.mts +0 -45
- package/tools/connect/flux/routes/list-flux-connect-routes.d.mts.map +0 -1
- package/tools/connect/flux/routes/list-flux-connect-routes.d.ts +0 -45
- package/tools/connect/flux/routes/list-flux-connect-routes.d.ts.map +0 -1
- package/tools/connect/flux/routes/list-flux-connect-routes.js.map +0 -1
- package/tools/connect/flux/routes/list-flux-connect-routes.mjs +0 -35
- package/tools/connect/flux/routes/list-flux-connect-routes.mjs.map +0 -1
- package/tools/connect/flux/update-connect-flux.d.mts +0 -45
- package/tools/connect/flux/update-connect-flux.d.mts.map +0 -1
- package/tools/connect/flux/update-connect-flux.d.ts +0 -45
- package/tools/connect/flux/update-connect-flux.d.ts.map +0 -1
- package/tools/connect/flux/update-connect-flux.js +0 -51
- package/tools/connect/flux/update-connect-flux.js.map +0 -1
- package/tools/connect/flux/update-connect-flux.mjs +0 -47
- package/tools/connect/flux/update-connect-flux.mjs.map +0 -1
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Metadata } from '@nirvana-labs/nirvana-mcp/tools/types';
|
|
2
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
3
|
+
import NirvanaLabs from '@nirvana-labs/nirvana';
|
|
4
|
+
export declare const metadata: Metadata;
|
|
5
|
+
export declare const tool: Tool;
|
|
6
|
+
export declare const handler: (client: NirvanaLabs, args: Record<string, unknown> | undefined) => Promise<import("@nirvana-labs/nirvana-mcp/tools/types").ToolCallResult>;
|
|
7
|
+
declare const _default: {
|
|
8
|
+
metadata: Metadata;
|
|
9
|
+
tool: {
|
|
10
|
+
[x: string]: unknown;
|
|
11
|
+
name: string;
|
|
12
|
+
inputSchema: {
|
|
13
|
+
[x: string]: unknown;
|
|
14
|
+
type: "object";
|
|
15
|
+
properties?: {
|
|
16
|
+
[x: string]: unknown;
|
|
17
|
+
} | undefined;
|
|
18
|
+
required?: string[] | undefined;
|
|
19
|
+
};
|
|
20
|
+
title?: string | undefined;
|
|
21
|
+
description?: string | undefined;
|
|
22
|
+
outputSchema?: {
|
|
23
|
+
[x: string]: unknown;
|
|
24
|
+
type: "object";
|
|
25
|
+
properties?: {
|
|
26
|
+
[x: string]: unknown;
|
|
27
|
+
} | undefined;
|
|
28
|
+
required?: string[] | undefined;
|
|
29
|
+
} | undefined;
|
|
30
|
+
annotations?: {
|
|
31
|
+
[x: string]: unknown;
|
|
32
|
+
title?: string | undefined;
|
|
33
|
+
readOnlyHint?: boolean | undefined;
|
|
34
|
+
destructiveHint?: boolean | undefined;
|
|
35
|
+
idempotentHint?: boolean | undefined;
|
|
36
|
+
openWorldHint?: boolean | undefined;
|
|
37
|
+
} | undefined;
|
|
38
|
+
_meta?: {
|
|
39
|
+
[x: string]: unknown;
|
|
40
|
+
} | undefined;
|
|
41
|
+
};
|
|
42
|
+
handler: (client: NirvanaLabs, args: Record<string, unknown> | undefined) => Promise<import("@nirvana-labs/nirvana-mcp/tools/types").ToolCallResult>;
|
|
43
|
+
};
|
|
44
|
+
export default _default;
|
|
45
|
+
//# sourceMappingURL=update-connect-networking-connections.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-connect-networking-connections.d.ts","sourceRoot":"","sources":["../../../../src/tools/networking/connect/connections/update-connect-networking-connections.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,uCAAuC;OAE9E,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,WAAW,MAAM,uBAAuB;AAE/C,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IA+BlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,WAAW,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,4EAK3F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBALoC,WAAW,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAO5F,wBAA2C"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.handler = exports.tool = exports.metadata = void 0;
|
|
5
|
+
const filtering_1 = require("@nirvana-labs/nirvana-mcp/filtering");
|
|
6
|
+
const types_1 = require("@nirvana-labs/nirvana-mcp/tools/types");
|
|
7
|
+
exports.metadata = {
|
|
8
|
+
resource: 'networking.connect.connections',
|
|
9
|
+
operation: 'write',
|
|
10
|
+
tags: [],
|
|
11
|
+
httpMethod: 'patch',
|
|
12
|
+
httpPath: '/v1/networking/connect/connections/{connection_id}',
|
|
13
|
+
operationId: 'update_connect_connection',
|
|
14
|
+
};
|
|
15
|
+
exports.tool = {
|
|
16
|
+
name: 'update_connect_networking_connections',
|
|
17
|
+
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nUpdate Connect Connection details\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/operation',\n $defs: {\n operation: {\n type: 'object',\n description: 'Operation details.',\n properties: {\n id: {\n type: 'string',\n description: 'Unique identifier for the Operation.'\n },\n created_at: {\n type: 'string',\n description: 'When the Operation was created.',\n format: 'date-time'\n },\n kind: {\n $ref: '#/$defs/operation_kind'\n },\n resource_id: {\n type: 'string',\n description: 'ID of the resource that the Operation is acting on.'\n },\n status: {\n $ref: '#/$defs/operation_status'\n },\n type: {\n $ref: '#/$defs/operation_type'\n },\n updated_at: {\n type: 'string',\n description: 'When the Operation was updated.',\n format: 'date-time'\n }\n },\n required: [ 'id',\n 'created_at',\n 'kind',\n 'resource_id',\n 'status',\n 'type',\n 'updated_at'\n ]\n },\n operation_kind: {\n type: 'string',\n description: 'Kind of Operation.',\n enum: [ 'vm',\n 'volume',\n 'vpc',\n 'firewall_rule'\n ]\n },\n operation_status: {\n type: 'string',\n description: 'Status of the Operation.',\n enum: [ 'pending',\n 'running',\n 'done',\n 'failed',\n 'unknown'\n ]\n },\n operation_type: {\n type: 'string',\n description: 'Type of Operation.',\n enum: [ 'create',\n 'update',\n 'delete',\n 'restart'\n ]\n }\n }\n}\n```",
|
|
18
|
+
inputSchema: {
|
|
19
|
+
type: 'object',
|
|
20
|
+
properties: {
|
|
21
|
+
connection_id: {
|
|
22
|
+
type: 'string',
|
|
23
|
+
},
|
|
24
|
+
name: {
|
|
25
|
+
type: 'string',
|
|
26
|
+
description: 'Name of the Connect Connection.',
|
|
27
|
+
},
|
|
28
|
+
tags: {
|
|
29
|
+
type: 'array',
|
|
30
|
+
description: 'Tags to attach to the Connect Connection',
|
|
31
|
+
items: {
|
|
32
|
+
type: 'string',
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
jq_filter: {
|
|
36
|
+
type: 'string',
|
|
37
|
+
title: 'jq Filter',
|
|
38
|
+
description: 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
required: ['connection_id'],
|
|
42
|
+
},
|
|
43
|
+
annotations: {},
|
|
44
|
+
};
|
|
45
|
+
const handler = async (client, args) => {
|
|
46
|
+
const { connection_id, jq_filter, ...body } = args;
|
|
47
|
+
return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.networking.connect.connections.update(connection_id, body)));
|
|
48
|
+
};
|
|
49
|
+
exports.handler = handler;
|
|
50
|
+
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
|
51
|
+
//# sourceMappingURL=update-connect-networking-connections.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-connect-networking-connections.js","sourceRoot":"","sources":["../../../../src/tools/networking/connect/connections/update-connect-networking-connections.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,mEAAkE;AAClE,iEAAsF;AAKzE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,gCAAgC;IAC1C,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,OAAO;IACnB,QAAQ,EAAE,oDAAoD;IAC9D,WAAW,EAAE,2BAA2B;CACzC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,uCAAuC;IAC7C,WAAW,EACT,y6DAAy6D;IAC36D,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,aAAa,EAAE;gBACb,IAAI,EAAE,QAAQ;aACf;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,iCAAiC;aAC/C;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,OAAO;gBACb,WAAW,EAAE,0CAA0C;gBACvD,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,eAAe,CAAC;KAC5B;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAmB,EAAE,IAAyC,EAAE,EAAE;IAC9F,MAAM,EAAE,aAAa,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC1D,OAAO,IAAA,2BAAmB,EACxB,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC,CACtG,CAAC;AACJ,CAAC,CAAC;AALW,QAAA,OAAO,WAKlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { maybeFilter } from '@nirvana-labs/nirvana-mcp/filtering';
|
|
3
|
+
import { asTextContentResult } from '@nirvana-labs/nirvana-mcp/tools/types';
|
|
4
|
+
export const metadata = {
|
|
5
|
+
resource: 'networking.connect.connections',
|
|
6
|
+
operation: 'write',
|
|
7
|
+
tags: [],
|
|
8
|
+
httpMethod: 'patch',
|
|
9
|
+
httpPath: '/v1/networking/connect/connections/{connection_id}',
|
|
10
|
+
operationId: 'update_connect_connection',
|
|
11
|
+
};
|
|
12
|
+
export const tool = {
|
|
13
|
+
name: 'update_connect_networking_connections',
|
|
14
|
+
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nUpdate Connect Connection details\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/operation',\n $defs: {\n operation: {\n type: 'object',\n description: 'Operation details.',\n properties: {\n id: {\n type: 'string',\n description: 'Unique identifier for the Operation.'\n },\n created_at: {\n type: 'string',\n description: 'When the Operation was created.',\n format: 'date-time'\n },\n kind: {\n $ref: '#/$defs/operation_kind'\n },\n resource_id: {\n type: 'string',\n description: 'ID of the resource that the Operation is acting on.'\n },\n status: {\n $ref: '#/$defs/operation_status'\n },\n type: {\n $ref: '#/$defs/operation_type'\n },\n updated_at: {\n type: 'string',\n description: 'When the Operation was updated.',\n format: 'date-time'\n }\n },\n required: [ 'id',\n 'created_at',\n 'kind',\n 'resource_id',\n 'status',\n 'type',\n 'updated_at'\n ]\n },\n operation_kind: {\n type: 'string',\n description: 'Kind of Operation.',\n enum: [ 'vm',\n 'volume',\n 'vpc',\n 'firewall_rule'\n ]\n },\n operation_status: {\n type: 'string',\n description: 'Status of the Operation.',\n enum: [ 'pending',\n 'running',\n 'done',\n 'failed',\n 'unknown'\n ]\n },\n operation_type: {\n type: 'string',\n description: 'Type of Operation.',\n enum: [ 'create',\n 'update',\n 'delete',\n 'restart'\n ]\n }\n }\n}\n```",
|
|
15
|
+
inputSchema: {
|
|
16
|
+
type: 'object',
|
|
17
|
+
properties: {
|
|
18
|
+
connection_id: {
|
|
19
|
+
type: 'string',
|
|
20
|
+
},
|
|
21
|
+
name: {
|
|
22
|
+
type: 'string',
|
|
23
|
+
description: 'Name of the Connect Connection.',
|
|
24
|
+
},
|
|
25
|
+
tags: {
|
|
26
|
+
type: 'array',
|
|
27
|
+
description: 'Tags to attach to the Connect Connection',
|
|
28
|
+
items: {
|
|
29
|
+
type: 'string',
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
jq_filter: {
|
|
33
|
+
type: 'string',
|
|
34
|
+
title: 'jq Filter',
|
|
35
|
+
description: 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
required: ['connection_id'],
|
|
39
|
+
},
|
|
40
|
+
annotations: {},
|
|
41
|
+
};
|
|
42
|
+
export const handler = async (client, args) => {
|
|
43
|
+
const { connection_id, jq_filter, ...body } = args;
|
|
44
|
+
return asTextContentResult(await maybeFilter(jq_filter, await client.networking.connect.connections.update(connection_id, body)));
|
|
45
|
+
};
|
|
46
|
+
export default { metadata, tool, handler };
|
|
47
|
+
//# sourceMappingURL=update-connect-networking-connections.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-connect-networking-connections.mjs","sourceRoot":"","sources":["../../../../src/tools/networking/connect/connections/update-connect-networking-connections.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,qCAAqC;OAC1D,EAAY,mBAAmB,EAAE,MAAM,uCAAuC;AAKrF,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,gCAAgC;IAC1C,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,OAAO;IACnB,QAAQ,EAAE,oDAAoD;IAC9D,WAAW,EAAE,2BAA2B;CACzC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,uCAAuC;IAC7C,WAAW,EACT,y6DAAy6D;IAC36D,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,aAAa,EAAE;gBACb,IAAI,EAAE,QAAQ;aACf;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,iCAAiC;aAC/C;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,OAAO;gBACb,WAAW,EAAE,0CAA0C;gBACvD,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,eAAe,CAAC;KAC5B;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAmB,EAAE,IAAyC,EAAE,EAAE;IAC9F,MAAM,EAAE,aAAa,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC1D,OAAO,mBAAmB,CACxB,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC,CACtG,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Metadata } from '@nirvana-labs/nirvana-mcp/tools/types';
|
|
2
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
3
|
+
import NirvanaLabs from '@nirvana-labs/nirvana';
|
|
4
|
+
export declare const metadata: Metadata;
|
|
5
|
+
export declare const tool: Tool;
|
|
6
|
+
export declare const handler: (client: NirvanaLabs, args: Record<string, unknown> | undefined) => Promise<import("@nirvana-labs/nirvana-mcp/tools/types").ToolCallResult>;
|
|
7
|
+
declare const _default: {
|
|
8
|
+
metadata: Metadata;
|
|
9
|
+
tool: {
|
|
10
|
+
[x: string]: unknown;
|
|
11
|
+
name: string;
|
|
12
|
+
inputSchema: {
|
|
13
|
+
[x: string]: unknown;
|
|
14
|
+
type: "object";
|
|
15
|
+
properties?: {
|
|
16
|
+
[x: string]: unknown;
|
|
17
|
+
} | undefined;
|
|
18
|
+
required?: string[] | undefined;
|
|
19
|
+
};
|
|
20
|
+
title?: string | undefined;
|
|
21
|
+
description?: string | undefined;
|
|
22
|
+
outputSchema?: {
|
|
23
|
+
[x: string]: unknown;
|
|
24
|
+
type: "object";
|
|
25
|
+
properties?: {
|
|
26
|
+
[x: string]: unknown;
|
|
27
|
+
} | undefined;
|
|
28
|
+
required?: string[] | undefined;
|
|
29
|
+
} | undefined;
|
|
30
|
+
annotations?: {
|
|
31
|
+
[x: string]: unknown;
|
|
32
|
+
title?: string | undefined;
|
|
33
|
+
readOnlyHint?: boolean | undefined;
|
|
34
|
+
destructiveHint?: boolean | undefined;
|
|
35
|
+
idempotentHint?: boolean | undefined;
|
|
36
|
+
openWorldHint?: boolean | undefined;
|
|
37
|
+
} | undefined;
|
|
38
|
+
_meta?: {
|
|
39
|
+
[x: string]: unknown;
|
|
40
|
+
} | undefined;
|
|
41
|
+
};
|
|
42
|
+
handler: (client: NirvanaLabs, args: Record<string, unknown> | undefined) => Promise<import("@nirvana-labs/nirvana-mcp/tools/types").ToolCallResult>;
|
|
43
|
+
};
|
|
44
|
+
export default _default;
|
|
45
|
+
//# sourceMappingURL=list-connect-networking-routes.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-connect-networking-routes.d.mts","sourceRoot":"","sources":["../../../../src/tools/networking/connect/routes/list-connect-networking-routes.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,uCAAuC;OAE9E,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,WAAW,MAAM,uBAAuB;AAE/C,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAmBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,WAAW,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,4EAG3F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,WAAW,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAK5F,wBAA2C"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Metadata } from '@nirvana-labs/nirvana-mcp/tools/types';
|
|
2
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
3
|
+
import NirvanaLabs from '@nirvana-labs/nirvana';
|
|
4
|
+
export declare const metadata: Metadata;
|
|
5
|
+
export declare const tool: Tool;
|
|
6
|
+
export declare const handler: (client: NirvanaLabs, args: Record<string, unknown> | undefined) => Promise<import("@nirvana-labs/nirvana-mcp/tools/types").ToolCallResult>;
|
|
7
|
+
declare const _default: {
|
|
8
|
+
metadata: Metadata;
|
|
9
|
+
tool: {
|
|
10
|
+
[x: string]: unknown;
|
|
11
|
+
name: string;
|
|
12
|
+
inputSchema: {
|
|
13
|
+
[x: string]: unknown;
|
|
14
|
+
type: "object";
|
|
15
|
+
properties?: {
|
|
16
|
+
[x: string]: unknown;
|
|
17
|
+
} | undefined;
|
|
18
|
+
required?: string[] | undefined;
|
|
19
|
+
};
|
|
20
|
+
title?: string | undefined;
|
|
21
|
+
description?: string | undefined;
|
|
22
|
+
outputSchema?: {
|
|
23
|
+
[x: string]: unknown;
|
|
24
|
+
type: "object";
|
|
25
|
+
properties?: {
|
|
26
|
+
[x: string]: unknown;
|
|
27
|
+
} | undefined;
|
|
28
|
+
required?: string[] | undefined;
|
|
29
|
+
} | undefined;
|
|
30
|
+
annotations?: {
|
|
31
|
+
[x: string]: unknown;
|
|
32
|
+
title?: string | undefined;
|
|
33
|
+
readOnlyHint?: boolean | undefined;
|
|
34
|
+
destructiveHint?: boolean | undefined;
|
|
35
|
+
idempotentHint?: boolean | undefined;
|
|
36
|
+
openWorldHint?: boolean | undefined;
|
|
37
|
+
} | undefined;
|
|
38
|
+
_meta?: {
|
|
39
|
+
[x: string]: unknown;
|
|
40
|
+
} | undefined;
|
|
41
|
+
};
|
|
42
|
+
handler: (client: NirvanaLabs, args: Record<string, unknown> | undefined) => Promise<import("@nirvana-labs/nirvana-mcp/tools/types").ToolCallResult>;
|
|
43
|
+
};
|
|
44
|
+
export default _default;
|
|
45
|
+
//# sourceMappingURL=list-connect-networking-routes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-connect-networking-routes.d.ts","sourceRoot":"","sources":["../../../../src/tools/networking/connect/routes/list-connect-networking-routes.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,uCAAuC;OAE9E,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,WAAW,MAAM,uBAAuB;AAE/C,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAmBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,WAAW,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,4EAG3F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,WAAW,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAK5F,wBAA2C"}
|
|
@@ -5,16 +5,16 @@ exports.handler = exports.tool = exports.metadata = void 0;
|
|
|
5
5
|
const filtering_1 = require("@nirvana-labs/nirvana-mcp/filtering");
|
|
6
6
|
const types_1 = require("@nirvana-labs/nirvana-mcp/tools/types");
|
|
7
7
|
exports.metadata = {
|
|
8
|
-
resource: 'connect.
|
|
8
|
+
resource: 'networking.connect.routes',
|
|
9
9
|
operation: 'read',
|
|
10
10
|
tags: [],
|
|
11
11
|
httpMethod: 'get',
|
|
12
|
-
httpPath: '/v1/connect/
|
|
13
|
-
operationId: '
|
|
12
|
+
httpPath: '/v1/networking/connect/routes',
|
|
13
|
+
operationId: 'list_connect_routes',
|
|
14
14
|
};
|
|
15
15
|
exports.tool = {
|
|
16
|
-
name: '
|
|
17
|
-
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nList all supported routes with regions for Connect
|
|
16
|
+
name: 'list_connect_networking_routes',
|
|
17
|
+
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nList all supported routes with regions for Connect.\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/connect_route_list',\n $defs: {\n connect_route_list: {\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n $ref: '#/$defs/connect_route'\n }\n }\n },\n required: [ 'items'\n ]\n },\n connect_route: {\n type: 'object',\n description: 'Routes supported for Connect.',\n properties: {\n nirvana_region: {\n $ref: '#/$defs/region_name'\n },\n provider: {\n type: 'string',\n description: 'Provider name.'\n },\n provider_region: {\n type: 'string',\n description: 'Provider region name.'\n }\n },\n required: [ 'nirvana_region',\n 'provider',\n 'provider_region'\n ]\n },\n region_name: {\n type: 'string',\n description: 'Region the resource is in.',\n enum: [ 'us-sea-1',\n 'us-sva-1',\n 'us-chi-1',\n 'us-wdc-1',\n 'eu-frk-1',\n 'ap-sin-1',\n 'ap-seo-1',\n 'ap-tyo-1'\n ]\n }\n }\n}\n```",
|
|
18
18
|
inputSchema: {
|
|
19
19
|
type: 'object',
|
|
20
20
|
properties: {
|
|
@@ -32,8 +32,8 @@ exports.tool = {
|
|
|
32
32
|
};
|
|
33
33
|
const handler = async (client, args) => {
|
|
34
34
|
const { jq_filter } = args;
|
|
35
|
-
return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.connect.
|
|
35
|
+
return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.networking.connect.routes.list()));
|
|
36
36
|
};
|
|
37
37
|
exports.handler = handler;
|
|
38
38
|
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
|
39
|
-
//# sourceMappingURL=list-
|
|
39
|
+
//# sourceMappingURL=list-connect-networking-routes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-connect-networking-routes.js","sourceRoot":"","sources":["../../../../src/tools/networking/connect/routes/list-connect-networking-routes.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,mEAAkE;AAClE,iEAAsF;AAKzE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,2BAA2B;IACrC,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,+BAA+B;IACzC,WAAW,EAAE,qBAAqB;CACnC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,gCAAgC;IACtC,WAAW,EACT,y3CAAy3C;IAC33C,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,EAAE;KACb;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAmB,EAAE,IAAyC,EAAE,EAAE;IAC9F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAW,CAAC;IAClC,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAC1G,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { maybeFilter } from '@nirvana-labs/nirvana-mcp/filtering';
|
|
3
|
+
import { asTextContentResult } from '@nirvana-labs/nirvana-mcp/tools/types';
|
|
4
|
+
export const metadata = {
|
|
5
|
+
resource: 'networking.connect.routes',
|
|
6
|
+
operation: 'read',
|
|
7
|
+
tags: [],
|
|
8
|
+
httpMethod: 'get',
|
|
9
|
+
httpPath: '/v1/networking/connect/routes',
|
|
10
|
+
operationId: 'list_connect_routes',
|
|
11
|
+
};
|
|
12
|
+
export const tool = {
|
|
13
|
+
name: 'list_connect_networking_routes',
|
|
14
|
+
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nList all supported routes with regions for Connect.\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/connect_route_list',\n $defs: {\n connect_route_list: {\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n $ref: '#/$defs/connect_route'\n }\n }\n },\n required: [ 'items'\n ]\n },\n connect_route: {\n type: 'object',\n description: 'Routes supported for Connect.',\n properties: {\n nirvana_region: {\n $ref: '#/$defs/region_name'\n },\n provider: {\n type: 'string',\n description: 'Provider name.'\n },\n provider_region: {\n type: 'string',\n description: 'Provider region name.'\n }\n },\n required: [ 'nirvana_region',\n 'provider',\n 'provider_region'\n ]\n },\n region_name: {\n type: 'string',\n description: 'Region the resource is in.',\n enum: [ 'us-sea-1',\n 'us-sva-1',\n 'us-chi-1',\n 'us-wdc-1',\n 'eu-frk-1',\n 'ap-sin-1',\n 'ap-seo-1',\n 'ap-tyo-1'\n ]\n }\n }\n}\n```",
|
|
15
|
+
inputSchema: {
|
|
16
|
+
type: 'object',
|
|
17
|
+
properties: {
|
|
18
|
+
jq_filter: {
|
|
19
|
+
type: 'string',
|
|
20
|
+
title: 'jq Filter',
|
|
21
|
+
description: 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
required: [],
|
|
25
|
+
},
|
|
26
|
+
annotations: {
|
|
27
|
+
readOnlyHint: true,
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
export const handler = async (client, args) => {
|
|
31
|
+
const { jq_filter } = args;
|
|
32
|
+
return asTextContentResult(await maybeFilter(jq_filter, await client.networking.connect.routes.list()));
|
|
33
|
+
};
|
|
34
|
+
export default { metadata, tool, handler };
|
|
35
|
+
//# sourceMappingURL=list-connect-networking-routes.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-connect-networking-routes.mjs","sourceRoot":"","sources":["../../../../src/tools/networking/connect/routes/list-connect-networking-routes.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,qCAAqC;OAC1D,EAAY,mBAAmB,EAAE,MAAM,uCAAuC;AAKrF,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,2BAA2B;IACrC,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,+BAA+B;IACzC,WAAW,EAAE,qBAAqB;CACnC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,gCAAgC;IACtC,WAAW,EACT,y3CAAy3C;IAC33C,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,EAAE;KACb;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAmB,EAAE,IAAyC,EAAE,EAAE;IAC9F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAW,CAAC;IAClC,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAC1G,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|
package/tools/{connect/flux/delete-connect-flux.d.mts → rpc-nodes/flex/create-rpc-nodes-flex.d.mts}
RENAMED
|
@@ -42,4 +42,4 @@ declare const _default: {
|
|
|
42
42
|
handler: (client: NirvanaLabs, args: Record<string, unknown> | undefined) => Promise<import("@nirvana-labs/nirvana-mcp/tools/types").ToolCallResult>;
|
|
43
43
|
};
|
|
44
44
|
export default _default;
|
|
45
|
-
//# sourceMappingURL=
|
|
45
|
+
//# sourceMappingURL=create-rpc-nodes-flex.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-rpc-nodes-flex.d.mts","sourceRoot":"","sources":["../../../src/tools/rpc-nodes/flex/create-rpc-nodes-flex.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,uCAAuC;OAE9E,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,WAAW,MAAM,uBAAuB;AAE/C,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAoClB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,WAAW,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,4EAG3F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,WAAW,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAK5F,wBAA2C"}
|
package/tools/{connect/flux/delete-connect-flux.d.ts → rpc-nodes/flex/create-rpc-nodes-flex.d.ts}
RENAMED
|
@@ -42,4 +42,4 @@ declare const _default: {
|
|
|
42
42
|
handler: (client: NirvanaLabs, args: Record<string, unknown> | undefined) => Promise<import("@nirvana-labs/nirvana-mcp/tools/types").ToolCallResult>;
|
|
43
43
|
};
|
|
44
44
|
export default _default;
|
|
45
|
-
//# sourceMappingURL=
|
|
45
|
+
//# sourceMappingURL=create-rpc-nodes-flex.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-rpc-nodes-flex.d.ts","sourceRoot":"","sources":["../../../src/tools/rpc-nodes/flex/create-rpc-nodes-flex.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,uCAAuC;OAE9E,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,WAAW,MAAM,uBAAuB;AAE/C,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAoClB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,WAAW,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,4EAG3F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,WAAW,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAK5F,wBAA2C"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.handler = exports.tool = exports.metadata = void 0;
|
|
5
|
+
const filtering_1 = require("@nirvana-labs/nirvana-mcp/filtering");
|
|
6
|
+
const types_1 = require("@nirvana-labs/nirvana-mcp/tools/types");
|
|
7
|
+
exports.metadata = {
|
|
8
|
+
resource: 'rpc_nodes.flex',
|
|
9
|
+
operation: 'write',
|
|
10
|
+
tags: [],
|
|
11
|
+
httpMethod: 'post',
|
|
12
|
+
httpPath: '/v1/rpc_nodes/flex',
|
|
13
|
+
operationId: 'create_rpc_nodes_flex',
|
|
14
|
+
};
|
|
15
|
+
exports.tool = {
|
|
16
|
+
name: 'create_rpc_nodes_flex',
|
|
17
|
+
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nCreate a new RPC Node Flex\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/flex',\n $defs: {\n flex: {\n type: 'object',\n description: 'RPC Node Flex details.',\n properties: {\n id: {\n type: 'string',\n description: 'Unique identifier for the RPC Node Flex.'\n },\n blockchain: {\n type: 'string',\n description: 'Blockchain type.'\n },\n created_at: {\n type: 'string',\n description: 'When the RPC Node Flex was created.',\n format: 'date-time'\n },\n endpoint: {\n type: 'string',\n description: 'RPC endpoint URL.'\n },\n name: {\n type: 'string',\n description: 'Name of the RPC Node Flex.'\n },\n network: {\n type: 'string',\n description: 'Network type (e.g., mainnet, testnet).'\n },\n tags: {\n type: 'array',\n description: 'Tags to attach to the RPC Node Flex.',\n items: {\n type: 'string'\n }\n },\n updated_at: {\n type: 'string',\n description: 'When the RPC Node Flex was updated.',\n format: 'date-time'\n }\n },\n required: [ 'id',\n 'blockchain',\n 'created_at',\n 'endpoint',\n 'name',\n 'network',\n 'tags',\n 'updated_at'\n ]\n }\n }\n}\n```",
|
|
18
|
+
inputSchema: {
|
|
19
|
+
type: 'object',
|
|
20
|
+
properties: {
|
|
21
|
+
blockchain: {
|
|
22
|
+
type: 'string',
|
|
23
|
+
description: 'Blockchain.',
|
|
24
|
+
},
|
|
25
|
+
name: {
|
|
26
|
+
type: 'string',
|
|
27
|
+
description: 'Name of the RPC Node Flex.',
|
|
28
|
+
},
|
|
29
|
+
network: {
|
|
30
|
+
type: 'string',
|
|
31
|
+
description: 'Network type (e.g., mainnet, testnet).',
|
|
32
|
+
},
|
|
33
|
+
tags: {
|
|
34
|
+
type: 'array',
|
|
35
|
+
description: 'Tags to attach to the RPC Node Flex (optional, max 50).',
|
|
36
|
+
items: {
|
|
37
|
+
type: 'string',
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
jq_filter: {
|
|
41
|
+
type: 'string',
|
|
42
|
+
title: 'jq Filter',
|
|
43
|
+
description: 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
required: ['blockchain', 'name', 'network'],
|
|
47
|
+
},
|
|
48
|
+
annotations: {},
|
|
49
|
+
};
|
|
50
|
+
const handler = async (client, args) => {
|
|
51
|
+
const { jq_filter, ...body } = args;
|
|
52
|
+
return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.rpcNodes.flex.create(body)));
|
|
53
|
+
};
|
|
54
|
+
exports.handler = handler;
|
|
55
|
+
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
|
56
|
+
//# sourceMappingURL=create-rpc-nodes-flex.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-rpc-nodes-flex.js","sourceRoot":"","sources":["../../../src/tools/rpc-nodes/flex/create-rpc-nodes-flex.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,mEAAkE;AAClE,iEAAsF;AAKzE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,gBAAgB;IAC1B,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,oBAAoB;IAC9B,WAAW,EAAE,uBAAuB;CACrC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EACT,qmDAAqmD;IACvmD,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,aAAa;aAC3B;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,4BAA4B;aAC1C;YACD,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,wCAAwC;aACtD;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,OAAO;gBACb,WAAW,EAAE,yDAAyD;gBACtE,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,SAAS,CAAC;KAC5C;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAmB,EAAE,IAAyC,EAAE,EAAE;IAC9F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpG,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { maybeFilter } from '@nirvana-labs/nirvana-mcp/filtering';
|
|
3
|
+
import { asTextContentResult } from '@nirvana-labs/nirvana-mcp/tools/types';
|
|
4
|
+
export const metadata = {
|
|
5
|
+
resource: 'rpc_nodes.flex',
|
|
6
|
+
operation: 'write',
|
|
7
|
+
tags: [],
|
|
8
|
+
httpMethod: 'post',
|
|
9
|
+
httpPath: '/v1/rpc_nodes/flex',
|
|
10
|
+
operationId: 'create_rpc_nodes_flex',
|
|
11
|
+
};
|
|
12
|
+
export const tool = {
|
|
13
|
+
name: 'create_rpc_nodes_flex',
|
|
14
|
+
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nCreate a new RPC Node Flex\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/flex',\n $defs: {\n flex: {\n type: 'object',\n description: 'RPC Node Flex details.',\n properties: {\n id: {\n type: 'string',\n description: 'Unique identifier for the RPC Node Flex.'\n },\n blockchain: {\n type: 'string',\n description: 'Blockchain type.'\n },\n created_at: {\n type: 'string',\n description: 'When the RPC Node Flex was created.',\n format: 'date-time'\n },\n endpoint: {\n type: 'string',\n description: 'RPC endpoint URL.'\n },\n name: {\n type: 'string',\n description: 'Name of the RPC Node Flex.'\n },\n network: {\n type: 'string',\n description: 'Network type (e.g., mainnet, testnet).'\n },\n tags: {\n type: 'array',\n description: 'Tags to attach to the RPC Node Flex.',\n items: {\n type: 'string'\n }\n },\n updated_at: {\n type: 'string',\n description: 'When the RPC Node Flex was updated.',\n format: 'date-time'\n }\n },\n required: [ 'id',\n 'blockchain',\n 'created_at',\n 'endpoint',\n 'name',\n 'network',\n 'tags',\n 'updated_at'\n ]\n }\n }\n}\n```",
|
|
15
|
+
inputSchema: {
|
|
16
|
+
type: 'object',
|
|
17
|
+
properties: {
|
|
18
|
+
blockchain: {
|
|
19
|
+
type: 'string',
|
|
20
|
+
description: 'Blockchain.',
|
|
21
|
+
},
|
|
22
|
+
name: {
|
|
23
|
+
type: 'string',
|
|
24
|
+
description: 'Name of the RPC Node Flex.',
|
|
25
|
+
},
|
|
26
|
+
network: {
|
|
27
|
+
type: 'string',
|
|
28
|
+
description: 'Network type (e.g., mainnet, testnet).',
|
|
29
|
+
},
|
|
30
|
+
tags: {
|
|
31
|
+
type: 'array',
|
|
32
|
+
description: 'Tags to attach to the RPC Node Flex (optional, max 50).',
|
|
33
|
+
items: {
|
|
34
|
+
type: 'string',
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
jq_filter: {
|
|
38
|
+
type: 'string',
|
|
39
|
+
title: 'jq Filter',
|
|
40
|
+
description: 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
required: ['blockchain', 'name', 'network'],
|
|
44
|
+
},
|
|
45
|
+
annotations: {},
|
|
46
|
+
};
|
|
47
|
+
export const handler = async (client, args) => {
|
|
48
|
+
const { jq_filter, ...body } = args;
|
|
49
|
+
return asTextContentResult(await maybeFilter(jq_filter, await client.rpcNodes.flex.create(body)));
|
|
50
|
+
};
|
|
51
|
+
export default { metadata, tool, handler };
|
|
52
|
+
//# sourceMappingURL=create-rpc-nodes-flex.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-rpc-nodes-flex.mjs","sourceRoot":"","sources":["../../../src/tools/rpc-nodes/flex/create-rpc-nodes-flex.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,qCAAqC;OAC1D,EAAY,mBAAmB,EAAE,MAAM,uCAAuC;AAKrF,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,gBAAgB;IAC1B,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,oBAAoB;IAC9B,WAAW,EAAE,uBAAuB;CACrC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EACT,qmDAAqmD;IACvmD,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,aAAa;aAC3B;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,4BAA4B;aAC1C;YACD,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,wCAAwC;aACtD;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,OAAO;gBACb,WAAW,EAAE,yDAAyD;gBACtE,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,SAAS,CAAC;KAC5C;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAmB,EAAE,IAAyC,EAAE,EAAE;IAC9F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpG,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Metadata } from '@nirvana-labs/nirvana-mcp/tools/types';
|
|
2
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
3
|
+
import NirvanaLabs from '@nirvana-labs/nirvana';
|
|
4
|
+
export declare const metadata: Metadata;
|
|
5
|
+
export declare const tool: Tool;
|
|
6
|
+
export declare const handler: (client: NirvanaLabs, args: Record<string, unknown> | undefined) => Promise<import("@nirvana-labs/nirvana-mcp/tools/types").ToolCallResult>;
|
|
7
|
+
declare const _default: {
|
|
8
|
+
metadata: Metadata;
|
|
9
|
+
tool: {
|
|
10
|
+
[x: string]: unknown;
|
|
11
|
+
name: string;
|
|
12
|
+
inputSchema: {
|
|
13
|
+
[x: string]: unknown;
|
|
14
|
+
type: "object";
|
|
15
|
+
properties?: {
|
|
16
|
+
[x: string]: unknown;
|
|
17
|
+
} | undefined;
|
|
18
|
+
required?: string[] | undefined;
|
|
19
|
+
};
|
|
20
|
+
title?: string | undefined;
|
|
21
|
+
description?: string | undefined;
|
|
22
|
+
outputSchema?: {
|
|
23
|
+
[x: string]: unknown;
|
|
24
|
+
type: "object";
|
|
25
|
+
properties?: {
|
|
26
|
+
[x: string]: unknown;
|
|
27
|
+
} | undefined;
|
|
28
|
+
required?: string[] | undefined;
|
|
29
|
+
} | undefined;
|
|
30
|
+
annotations?: {
|
|
31
|
+
[x: string]: unknown;
|
|
32
|
+
title?: string | undefined;
|
|
33
|
+
readOnlyHint?: boolean | undefined;
|
|
34
|
+
destructiveHint?: boolean | undefined;
|
|
35
|
+
idempotentHint?: boolean | undefined;
|
|
36
|
+
openWorldHint?: boolean | undefined;
|
|
37
|
+
} | undefined;
|
|
38
|
+
_meta?: {
|
|
39
|
+
[x: string]: unknown;
|
|
40
|
+
} | undefined;
|
|
41
|
+
};
|
|
42
|
+
handler: (client: NirvanaLabs, args: Record<string, unknown> | undefined) => Promise<import("@nirvana-labs/nirvana-mcp/tools/types").ToolCallResult>;
|
|
43
|
+
};
|
|
44
|
+
export default _default;
|
|
45
|
+
//# sourceMappingURL=delete-rpc-nodes-flex.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-rpc-nodes-flex.d.mts","sourceRoot":"","sources":["../../../src/tools/rpc-nodes/flex/delete-rpc-nodes-flex.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB,MAAM,uCAAuC;OAE9E,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,WAAW,MAAM,uBAAuB;AAE/C,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAelB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,WAAW,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,4EAI3F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAJoC,WAAW,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAM5F,wBAA2C"}
|
package/tools/{connect/flux/create-connect-flux.d.mts → rpc-nodes/flex/delete-rpc-nodes-flex.d.ts}
RENAMED
|
@@ -42,4 +42,4 @@ declare const _default: {
|
|
|
42
42
|
handler: (client: NirvanaLabs, args: Record<string, unknown> | undefined) => Promise<import("@nirvana-labs/nirvana-mcp/tools/types").ToolCallResult>;
|
|
43
43
|
};
|
|
44
44
|
export default _default;
|
|
45
|
-
//# sourceMappingURL=
|
|
45
|
+
//# sourceMappingURL=delete-rpc-nodes-flex.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-rpc-nodes-flex.d.ts","sourceRoot":"","sources":["../../../src/tools/rpc-nodes/flex/delete-rpc-nodes-flex.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB,MAAM,uCAAuC;OAE9E,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,WAAW,MAAM,uBAAuB;AAE/C,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAelB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,WAAW,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,4EAI3F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAJoC,WAAW,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAM5F,wBAA2C"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.handler = exports.tool = exports.metadata = void 0;
|
|
5
|
+
const types_1 = require("@nirvana-labs/nirvana-mcp/tools/types");
|
|
6
|
+
exports.metadata = {
|
|
7
|
+
resource: 'rpc_nodes.flex',
|
|
8
|
+
operation: 'write',
|
|
9
|
+
tags: [],
|
|
10
|
+
httpMethod: 'delete',
|
|
11
|
+
httpPath: '/v1/rpc_nodes/flex/{node_id}',
|
|
12
|
+
operationId: 'delete_rpc_nodes_flex',
|
|
13
|
+
};
|
|
14
|
+
exports.tool = {
|
|
15
|
+
name: 'delete_rpc_nodes_flex',
|
|
16
|
+
description: 'Delete an RPC Node Flex',
|
|
17
|
+
inputSchema: {
|
|
18
|
+
type: 'object',
|
|
19
|
+
properties: {
|
|
20
|
+
node_id: {
|
|
21
|
+
type: 'string',
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
required: ['node_id'],
|
|
25
|
+
},
|
|
26
|
+
annotations: {
|
|
27
|
+
idempotentHint: true,
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
const handler = async (client, args) => {
|
|
31
|
+
const { node_id, ...body } = args;
|
|
32
|
+
const response = await client.rpcNodes.flex.delete(node_id).asResponse();
|
|
33
|
+
return (0, types_1.asTextContentResult)(await response.text());
|
|
34
|
+
};
|
|
35
|
+
exports.handler = handler;
|
|
36
|
+
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
|
37
|
+
//# sourceMappingURL=delete-rpc-nodes-flex.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-rpc-nodes-flex.js","sourceRoot":"","sources":["../../../src/tools/rpc-nodes/flex/delete-rpc-nodes-flex.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,iEAAsF;AAKzE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,gBAAgB;IAC1B,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,QAAQ;IACpB,QAAQ,EAAE,8BAA8B;IACxC,WAAW,EAAE,uBAAuB;CACrC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EAAE,yBAAyB;IACtC,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;aACf;SACF;QACD,QAAQ,EAAE,CAAC,SAAS,CAAC;KACtB;IACD,WAAW,EAAE;QACX,cAAc,EAAE,IAAI;KACrB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAmB,EAAE,IAAyC,EAAE,EAAE;IAC9F,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IACzC,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,UAAU,EAAE,CAAC;IACzE,OAAO,IAAA,2BAAmB,EAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;AACpD,CAAC,CAAC;AAJW,QAAA,OAAO,WAIlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|