@nirvana-labs/nirvana-mcp 1.20.3 → 1.21.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.
Files changed (124) hide show
  1. package/README.md +21 -1
  2. package/code-tool-worker.d.mts.map +1 -1
  3. package/code-tool-worker.d.ts.map +1 -1
  4. package/code-tool-worker.js +211 -7
  5. package/code-tool-worker.js.map +1 -1
  6. package/code-tool-worker.mjs +211 -7
  7. package/code-tool-worker.mjs.map +1 -1
  8. package/code-tool.d.mts +1 -1
  9. package/code-tool.d.mts.map +1 -1
  10. package/code-tool.d.ts +1 -1
  11. package/code-tool.d.ts.map +1 -1
  12. package/code-tool.js +11 -13
  13. package/code-tool.js.map +1 -1
  14. package/code-tool.mjs +11 -13
  15. package/code-tool.mjs.map +1 -1
  16. package/dynamic-tools.d.mts +1 -1
  17. package/dynamic-tools.d.ts +1 -1
  18. package/dynamic-tools.js +1 -1
  19. package/dynamic-tools.mjs +1 -1
  20. package/options.d.mts.map +1 -1
  21. package/options.d.ts.map +1 -1
  22. package/options.js +6 -3
  23. package/options.js.map +1 -1
  24. package/options.mjs +6 -3
  25. package/options.mjs.map +1 -1
  26. package/package.json +4 -2
  27. package/server.js +1 -1
  28. package/server.mjs +1 -1
  29. package/src/code-tool-worker.ts +256 -7
  30. package/src/code-tool.ts +14 -13
  31. package/src/dynamic-tools.ts +1 -1
  32. package/src/options.ts +10 -3
  33. package/src/server.ts +1 -1
  34. package/src/tools/api-keys/list-api-keys.ts +12 -3
  35. package/src/tools/compute/vms/list-compute-vms.ts +12 -3
  36. package/src/tools/compute/vms/volumes/list-vms-compute-volumes.ts +11 -2
  37. package/src/tools/compute/volumes/list-compute-volumes.ts +12 -3
  38. package/src/tools/networking/connect/connections/list-connect-networking-connections.ts +12 -5
  39. package/src/tools/networking/connect/routes/list-connect-networking-routes.ts +12 -3
  40. package/src/tools/networking/firewall-rules/list-networking-firewall-rules.ts +11 -4
  41. package/src/tools/networking/vpcs/list-networking-vpcs.ts +12 -3
  42. package/src/tools/operations/list-operations.ts +12 -3
  43. package/src/tools/rpc-nodes/dedicated/blockchains/list-dedicated-rpc-nodes-blockchains.ts +13 -6
  44. package/src/tools/rpc-nodes/dedicated/list-rpc-nodes-dedicated.ts +12 -3
  45. package/src/tools/rpc-nodes/flex/blockchains/list-flex-rpc-nodes-blockchains.ts +13 -4
  46. package/src/tools/rpc-nodes/flex/list-rpc-nodes-flex.ts +12 -3
  47. package/tools/api-keys/list-api-keys.d.mts.map +1 -1
  48. package/tools/api-keys/list-api-keys.d.ts.map +1 -1
  49. package/tools/api-keys/list-api-keys.js +12 -3
  50. package/tools/api-keys/list-api-keys.js.map +1 -1
  51. package/tools/api-keys/list-api-keys.mjs +12 -3
  52. package/tools/api-keys/list-api-keys.mjs.map +1 -1
  53. package/tools/compute/vms/list-compute-vms.d.mts.map +1 -1
  54. package/tools/compute/vms/list-compute-vms.d.ts.map +1 -1
  55. package/tools/compute/vms/list-compute-vms.js +12 -3
  56. package/tools/compute/vms/list-compute-vms.js.map +1 -1
  57. package/tools/compute/vms/list-compute-vms.mjs +12 -3
  58. package/tools/compute/vms/list-compute-vms.mjs.map +1 -1
  59. package/tools/compute/vms/volumes/list-vms-compute-volumes.d.mts.map +1 -1
  60. package/tools/compute/vms/volumes/list-vms-compute-volumes.d.ts.map +1 -1
  61. package/tools/compute/vms/volumes/list-vms-compute-volumes.js +11 -2
  62. package/tools/compute/vms/volumes/list-vms-compute-volumes.js.map +1 -1
  63. package/tools/compute/vms/volumes/list-vms-compute-volumes.mjs +11 -2
  64. package/tools/compute/vms/volumes/list-vms-compute-volumes.mjs.map +1 -1
  65. package/tools/compute/volumes/list-compute-volumes.d.mts.map +1 -1
  66. package/tools/compute/volumes/list-compute-volumes.d.ts.map +1 -1
  67. package/tools/compute/volumes/list-compute-volumes.js +12 -3
  68. package/tools/compute/volumes/list-compute-volumes.js.map +1 -1
  69. package/tools/compute/volumes/list-compute-volumes.mjs +12 -3
  70. package/tools/compute/volumes/list-compute-volumes.mjs.map +1 -1
  71. package/tools/networking/connect/connections/list-connect-networking-connections.d.mts.map +1 -1
  72. package/tools/networking/connect/connections/list-connect-networking-connections.d.ts.map +1 -1
  73. package/tools/networking/connect/connections/list-connect-networking-connections.js +12 -3
  74. package/tools/networking/connect/connections/list-connect-networking-connections.js.map +1 -1
  75. package/tools/networking/connect/connections/list-connect-networking-connections.mjs +12 -3
  76. package/tools/networking/connect/connections/list-connect-networking-connections.mjs.map +1 -1
  77. package/tools/networking/connect/routes/list-connect-networking-routes.d.mts.map +1 -1
  78. package/tools/networking/connect/routes/list-connect-networking-routes.d.ts.map +1 -1
  79. package/tools/networking/connect/routes/list-connect-networking-routes.js +12 -3
  80. package/tools/networking/connect/routes/list-connect-networking-routes.js.map +1 -1
  81. package/tools/networking/connect/routes/list-connect-networking-routes.mjs +12 -3
  82. package/tools/networking/connect/routes/list-connect-networking-routes.mjs.map +1 -1
  83. package/tools/networking/firewall-rules/list-networking-firewall-rules.d.mts.map +1 -1
  84. package/tools/networking/firewall-rules/list-networking-firewall-rules.d.ts.map +1 -1
  85. package/tools/networking/firewall-rules/list-networking-firewall-rules.js +11 -2
  86. package/tools/networking/firewall-rules/list-networking-firewall-rules.js.map +1 -1
  87. package/tools/networking/firewall-rules/list-networking-firewall-rules.mjs +11 -2
  88. package/tools/networking/firewall-rules/list-networking-firewall-rules.mjs.map +1 -1
  89. package/tools/networking/vpcs/list-networking-vpcs.d.mts.map +1 -1
  90. package/tools/networking/vpcs/list-networking-vpcs.d.ts.map +1 -1
  91. package/tools/networking/vpcs/list-networking-vpcs.js +12 -3
  92. package/tools/networking/vpcs/list-networking-vpcs.js.map +1 -1
  93. package/tools/networking/vpcs/list-networking-vpcs.mjs +12 -3
  94. package/tools/networking/vpcs/list-networking-vpcs.mjs.map +1 -1
  95. package/tools/operations/list-operations.d.mts.map +1 -1
  96. package/tools/operations/list-operations.d.ts.map +1 -1
  97. package/tools/operations/list-operations.js +12 -3
  98. package/tools/operations/list-operations.js.map +1 -1
  99. package/tools/operations/list-operations.mjs +12 -3
  100. package/tools/operations/list-operations.mjs.map +1 -1
  101. package/tools/rpc-nodes/dedicated/blockchains/list-dedicated-rpc-nodes-blockchains.d.mts.map +1 -1
  102. package/tools/rpc-nodes/dedicated/blockchains/list-dedicated-rpc-nodes-blockchains.d.ts.map +1 -1
  103. package/tools/rpc-nodes/dedicated/blockchains/list-dedicated-rpc-nodes-blockchains.js +13 -4
  104. package/tools/rpc-nodes/dedicated/blockchains/list-dedicated-rpc-nodes-blockchains.js.map +1 -1
  105. package/tools/rpc-nodes/dedicated/blockchains/list-dedicated-rpc-nodes-blockchains.mjs +13 -4
  106. package/tools/rpc-nodes/dedicated/blockchains/list-dedicated-rpc-nodes-blockchains.mjs.map +1 -1
  107. package/tools/rpc-nodes/dedicated/list-rpc-nodes-dedicated.d.mts.map +1 -1
  108. package/tools/rpc-nodes/dedicated/list-rpc-nodes-dedicated.d.ts.map +1 -1
  109. package/tools/rpc-nodes/dedicated/list-rpc-nodes-dedicated.js +12 -3
  110. package/tools/rpc-nodes/dedicated/list-rpc-nodes-dedicated.js.map +1 -1
  111. package/tools/rpc-nodes/dedicated/list-rpc-nodes-dedicated.mjs +12 -3
  112. package/tools/rpc-nodes/dedicated/list-rpc-nodes-dedicated.mjs.map +1 -1
  113. package/tools/rpc-nodes/flex/blockchains/list-flex-rpc-nodes-blockchains.d.mts.map +1 -1
  114. package/tools/rpc-nodes/flex/blockchains/list-flex-rpc-nodes-blockchains.d.ts.map +1 -1
  115. package/tools/rpc-nodes/flex/blockchains/list-flex-rpc-nodes-blockchains.js +13 -4
  116. package/tools/rpc-nodes/flex/blockchains/list-flex-rpc-nodes-blockchains.js.map +1 -1
  117. package/tools/rpc-nodes/flex/blockchains/list-flex-rpc-nodes-blockchains.mjs +13 -4
  118. package/tools/rpc-nodes/flex/blockchains/list-flex-rpc-nodes-blockchains.mjs.map +1 -1
  119. package/tools/rpc-nodes/flex/list-rpc-nodes-flex.d.mts.map +1 -1
  120. package/tools/rpc-nodes/flex/list-rpc-nodes-flex.d.ts.map +1 -1
  121. package/tools/rpc-nodes/flex/list-rpc-nodes-flex.js +12 -3
  122. package/tools/rpc-nodes/flex/list-rpc-nodes-flex.js.map +1 -1
  123. package/tools/rpc-nodes/flex/list-rpc-nodes-flex.mjs +12 -3
  124. package/tools/rpc-nodes/flex/list-rpc-nodes-flex.mjs.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"list-compute-vms.js","sourceRoot":"","sources":["../../../src/tools/compute/vms/list-compute-vms.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,mEAAkE;AAClE,iEAAsF;AAKzE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,aAAa;IACvB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,iBAAiB;IAC3B,WAAW,EAAE,UAAU;CACxB,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,kBAAkB;IACxB,WAAW,EACT,0iIAA0iI;IAC5iI,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,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAC5F,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"list-compute-vms.js","sourceRoot":"","sources":["../../../src/tools/compute/vms/list-compute-vms.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,mEAAkE;AAClE,iEAAsF;AAKzE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,aAAa;IACvB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,iBAAiB;IAC3B,WAAW,EAAE,UAAU;CACxB,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,kBAAkB;IACxB,WAAW,EACT,kjJAAkjJ;IACpjJ,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,kDAAkD;aAChE;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,mCAAmC;aACjD;YACD,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,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IAClE,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAClF,CAAC,CAAC;AAJW,QAAA,OAAO,WAIlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -11,10 +11,18 @@ export const metadata = {
11
11
  };
12
12
  export const tool = {
13
13
  name: 'list_compute_vms',
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 VMs\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/vm_list',\n $defs: {\n vm_list: {\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n $ref: '#/$defs/vm'\n }\n }\n },\n required: [ 'items'\n ]\n },\n vm: {\n type: 'object',\n description: 'VM details.',\n properties: {\n id: {\n type: 'string',\n description: 'Unique identifier for the VM.'\n },\n boot_volume_id: {\n type: 'string',\n description: 'ID of the boot volume attached to the VM.'\n },\n cpu_config: {\n $ref: '#/$defs/cpu_config'\n },\n created_at: {\n type: 'string',\n description: 'When the VM was created.',\n format: 'date-time'\n },\n data_volume_ids: {\n type: 'array',\n description: 'IDs of the data volumes attached to the VM.',\n items: {\n type: 'string'\n }\n },\n memory_config: {\n $ref: '#/$defs/memory_config'\n },\n name: {\n type: 'string',\n description: 'Name of the VM.'\n },\n private_ip: {\n type: 'string',\n description: 'Private IP of the VM.'\n },\n public_ip: {\n type: 'string',\n description: 'Public IP of the VM.'\n },\n public_ip_enabled: {\n type: 'boolean',\n description: 'Whether the public IP is enabled for the VM.'\n },\n region: {\n $ref: '#/$defs/region_name'\n },\n status: {\n $ref: '#/$defs/resource_status'\n },\n subnet_id: {\n type: 'string',\n description: 'ID of the subnet the VM is in.'\n },\n tags: {\n type: 'array',\n description: 'Tags to attach to the VM.',\n items: {\n type: 'string'\n }\n },\n updated_at: {\n type: 'string',\n description: 'When the VM was updated.',\n format: 'date-time'\n },\n vpc_id: {\n type: 'string',\n description: 'ID of the VPC the VM is in.'\n },\n vpc_name: {\n type: 'string',\n description: 'Name of the VPC the VM is in.'\n }\n },\n required: [ 'id',\n 'boot_volume_id',\n 'cpu_config',\n 'created_at',\n 'data_volume_ids',\n 'memory_config',\n 'name',\n 'private_ip',\n 'public_ip',\n 'public_ip_enabled',\n 'region',\n 'status',\n 'subnet_id',\n 'tags',\n 'updated_at',\n 'vpc_id',\n 'vpc_name'\n ]\n },\n cpu_config: {\n type: 'object',\n description: 'CPU configuration for the VM.',\n properties: {\n vcpu: {\n type: 'integer',\n description: 'Number of virtual CPUs.'\n }\n },\n required: [ 'vcpu'\n ]\n },\n memory_config: {\n type: 'object',\n description: 'Memory configuration for the VM.',\n properties: {\n size: {\n type: 'integer',\n description: 'Size of the memory in GB.'\n }\n },\n required: [ 'size'\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 resource_status: {\n type: 'string',\n description: 'Status of the resource.',\n enum: [ 'pending',\n 'creating',\n 'updating',\n 'ready',\n 'deleting',\n 'deleted',\n 'error'\n ]\n }\n }\n}\n```",
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 VMs\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/vm_list',\n $defs: {\n vm_list: {\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n $ref: '#/$defs/vm'\n }\n },\n pagination: {\n $ref: '#/$defs/pagination'\n }\n },\n required: [ 'items',\n 'pagination'\n ]\n },\n vm: {\n type: 'object',\n description: 'VM details.',\n properties: {\n id: {\n type: 'string',\n description: 'Unique identifier for the VM.'\n },\n boot_volume_id: {\n type: 'string',\n description: 'ID of the boot volume attached to the VM.'\n },\n cpu_config: {\n $ref: '#/$defs/cpu_config'\n },\n created_at: {\n type: 'string',\n description: 'When the VM was created.',\n format: 'date-time'\n },\n data_volume_ids: {\n type: 'array',\n description: 'IDs of the data volumes attached to the VM.',\n items: {\n type: 'string'\n }\n },\n memory_config: {\n $ref: '#/$defs/memory_config'\n },\n name: {\n type: 'string',\n description: 'Name of the VM.'\n },\n private_ip: {\n type: 'string',\n description: 'Private IP of the VM.'\n },\n public_ip: {\n type: 'string',\n description: 'Public IP of the VM.'\n },\n public_ip_enabled: {\n type: 'boolean',\n description: 'Whether the public IP is enabled for the VM.'\n },\n region: {\n $ref: '#/$defs/region_name'\n },\n status: {\n $ref: '#/$defs/resource_status'\n },\n subnet_id: {\n type: 'string',\n description: 'ID of the subnet the VM is in.'\n },\n tags: {\n type: 'array',\n description: 'Tags to attach to the VM.',\n items: {\n type: 'string'\n }\n },\n updated_at: {\n type: 'string',\n description: 'When the VM was updated.',\n format: 'date-time'\n },\n vpc_id: {\n type: 'string',\n description: 'ID of the VPC the VM is in.'\n },\n vpc_name: {\n type: 'string',\n description: 'Name of the VPC the VM is in.'\n }\n },\n required: [ 'id',\n 'boot_volume_id',\n 'cpu_config',\n 'created_at',\n 'data_volume_ids',\n 'memory_config',\n 'name',\n 'private_ip',\n 'public_ip',\n 'public_ip_enabled',\n 'region',\n 'status',\n 'subnet_id',\n 'tags',\n 'updated_at',\n 'vpc_id',\n 'vpc_name'\n ]\n },\n cpu_config: {\n type: 'object',\n description: 'CPU configuration for the VM.',\n properties: {\n vcpu: {\n type: 'integer',\n description: 'Number of virtual CPUs.'\n }\n },\n required: [ 'vcpu'\n ]\n },\n memory_config: {\n type: 'object',\n description: 'Memory configuration for the VM.',\n properties: {\n size: {\n type: 'integer',\n description: 'Size of the memory in GB.'\n }\n },\n required: [ 'size'\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 resource_status: {\n type: 'string',\n description: 'Status of the resource.',\n enum: [ 'pending',\n 'creating',\n 'updating',\n 'ready',\n 'deleting',\n 'deleted',\n 'error'\n ]\n },\n pagination: {\n type: 'object',\n description: 'Pagination response details.',\n properties: {\n next_cursor: {\n type: 'string'\n },\n previous_cursor: {\n type: 'string'\n },\n total_count: {\n type: 'integer'\n }\n },\n required: [ 'next_cursor',\n 'previous_cursor',\n 'total_count'\n ]\n }\n }\n}\n```",
15
15
  inputSchema: {
16
16
  type: 'object',
17
17
  properties: {
18
+ cursor: {
19
+ type: 'string',
20
+ description: 'Pagination cursor returned by a previous request',
21
+ },
22
+ limit: {
23
+ type: 'integer',
24
+ description: 'Maximum number of items to return',
25
+ },
18
26
  jq_filter: {
19
27
  type: 'string',
20
28
  title: 'jq Filter',
@@ -28,8 +36,9 @@ export const tool = {
28
36
  },
29
37
  };
30
38
  export const handler = async (client, args) => {
31
- const { jq_filter } = args;
32
- return asTextContentResult(await maybeFilter(jq_filter, await client.compute.vms.list()));
39
+ const { jq_filter, ...body } = args;
40
+ const response = await client.compute.vms.list(body).asResponse();
41
+ return asTextContentResult(await maybeFilter(jq_filter, await response.json()));
33
42
  };
34
43
  export default { metadata, tool, handler };
35
44
  //# sourceMappingURL=list-compute-vms.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-compute-vms.mjs","sourceRoot":"","sources":["../../../src/tools/compute/vms/list-compute-vms.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,aAAa;IACvB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,iBAAiB;IAC3B,WAAW,EAAE,UAAU;CACxB,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,kBAAkB;IACxB,WAAW,EACT,0iIAA0iI;IAC5iI,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,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAC5F,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"list-compute-vms.mjs","sourceRoot":"","sources":["../../../src/tools/compute/vms/list-compute-vms.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,aAAa;IACvB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,iBAAiB;IAC3B,WAAW,EAAE,UAAU;CACxB,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,kBAAkB;IACxB,WAAW,EACT,kjJAAkjJ;IACpjJ,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,kDAAkD;aAChE;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,mCAAmC;aACjD;YACD,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,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IAClE,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAClF,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"list-vms-compute-volumes.d.mts","sourceRoot":"","sources":["../../../../src/tools/compute/vms/volumes/list-vms-compute-volumes.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,IAsBlB,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"}
1
+ {"version":3,"file":"list-vms-compute-volumes.d.mts","sourceRoot":"","sources":["../../../../src/tools/compute/vms/volumes/list-vms-compute-volumes.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,IA8BlB,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"}
@@ -1 +1 @@
1
- {"version":3,"file":"list-vms-compute-volumes.d.ts","sourceRoot":"","sources":["../../../../src/tools/compute/vms/volumes/list-vms-compute-volumes.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,IAsBlB,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"}
1
+ {"version":3,"file":"list-vms-compute-volumes.d.ts","sourceRoot":"","sources":["../../../../src/tools/compute/vms/volumes/list-vms-compute-volumes.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,IA8BlB,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"}
@@ -14,13 +14,21 @@ exports.metadata = {
14
14
  };
15
15
  exports.tool = {
16
16
  name: 'list_vms_compute_volumes',
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 VM's Volumes\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/volume_list',\n $defs: {\n volume_list: {\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n $ref: '#/$defs/volume'\n }\n }\n },\n required: [ 'items'\n ]\n },\n volume: {\n type: 'object',\n description: 'Volume details.',\n properties: {\n id: {\n type: 'string',\n description: 'Unique identifier for the Volume.'\n },\n created_at: {\n type: 'string',\n description: 'When the Volume was created.',\n format: 'date-time'\n },\n kind: {\n $ref: '#/$defs/volume_kind'\n },\n name: {\n type: 'string',\n description: 'Name of the Volume.'\n },\n size: {\n type: 'integer',\n description: 'Size of the Volume in GB.'\n },\n status: {\n $ref: '#/$defs/resource_status'\n },\n tags: {\n type: 'array',\n description: 'Tags to attach to the Volume.',\n items: {\n type: 'string'\n }\n },\n type: {\n $ref: '#/$defs/storage_type'\n },\n updated_at: {\n type: 'string',\n description: 'When the Volume was updated.',\n format: 'date-time'\n },\n vm_id: {\n type: 'string',\n description: 'ID of the VM the Volume is attached to.'\n },\n vm_name: {\n type: 'string',\n description: 'Name of the VM the Volume is attached to.'\n }\n },\n required: [ 'id',\n 'created_at',\n 'kind',\n 'name',\n 'size',\n 'status',\n 'tags',\n 'type',\n 'updated_at',\n 'vm_id',\n 'vm_name'\n ]\n },\n volume_kind: {\n type: 'string',\n description: 'Volume kind.',\n enum: [ 'boot',\n 'data'\n ]\n },\n resource_status: {\n type: 'string',\n description: 'Status of the resource.',\n enum: [ 'pending',\n 'creating',\n 'updating',\n 'ready',\n 'deleting',\n 'deleted',\n 'error'\n ]\n },\n storage_type: {\n type: 'string',\n description: 'Storage type the Volume is using.',\n enum: [ 'nvme'\n ]\n }\n }\n}\n```",
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 VM's Volumes\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/volume_list',\n $defs: {\n volume_list: {\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n $ref: '#/$defs/volume'\n }\n },\n pagination: {\n $ref: '#/$defs/pagination'\n }\n },\n required: [ 'items',\n 'pagination'\n ]\n },\n volume: {\n type: 'object',\n description: 'Volume details.',\n properties: {\n id: {\n type: 'string',\n description: 'Unique identifier for the Volume.'\n },\n created_at: {\n type: 'string',\n description: 'When the Volume was created.',\n format: 'date-time'\n },\n kind: {\n $ref: '#/$defs/volume_kind'\n },\n name: {\n type: 'string',\n description: 'Name of the Volume.'\n },\n size: {\n type: 'integer',\n description: 'Size of the Volume in GB.'\n },\n status: {\n $ref: '#/$defs/resource_status'\n },\n tags: {\n type: 'array',\n description: 'Tags to attach to the Volume.',\n items: {\n type: 'string'\n }\n },\n type: {\n $ref: '#/$defs/storage_type'\n },\n updated_at: {\n type: 'string',\n description: 'When the Volume was updated.',\n format: 'date-time'\n },\n vm_id: {\n type: 'string',\n description: 'ID of the VM the Volume is attached to.'\n },\n vm_name: {\n type: 'string',\n description: 'Name of the VM the Volume is attached to.'\n }\n },\n required: [ 'id',\n 'created_at',\n 'kind',\n 'name',\n 'size',\n 'status',\n 'tags',\n 'type',\n 'updated_at',\n 'vm_id',\n 'vm_name'\n ]\n },\n volume_kind: {\n type: 'string',\n description: 'Volume kind.',\n enum: [ 'boot',\n 'data'\n ]\n },\n resource_status: {\n type: 'string',\n description: 'Status of the resource.',\n enum: [ 'pending',\n 'creating',\n 'updating',\n 'ready',\n 'deleting',\n 'deleted',\n 'error'\n ]\n },\n storage_type: {\n type: 'string',\n description: 'Storage type the Volume is using.',\n enum: [ 'nvme'\n ]\n },\n pagination: {\n type: 'object',\n description: 'Pagination response details.',\n properties: {\n next_cursor: {\n type: 'string'\n },\n previous_cursor: {\n type: 'string'\n },\n total_count: {\n type: 'integer'\n }\n },\n required: [ 'next_cursor',\n 'previous_cursor',\n 'total_count'\n ]\n }\n }\n}\n```",
18
18
  inputSchema: {
19
19
  type: 'object',
20
20
  properties: {
21
21
  vm_id: {
22
22
  type: 'string',
23
23
  },
24
+ cursor: {
25
+ type: 'string',
26
+ description: 'Pagination cursor returned by a previous request',
27
+ },
28
+ limit: {
29
+ type: 'integer',
30
+ description: 'Maximum number of items to return',
31
+ },
24
32
  jq_filter: {
25
33
  type: 'string',
26
34
  title: 'jq Filter',
@@ -35,7 +43,8 @@ exports.tool = {
35
43
  };
36
44
  const handler = async (client, args) => {
37
45
  const { vm_id, jq_filter, ...body } = args;
38
- return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.compute.vms.volumes.list(vm_id)));
46
+ const response = await client.compute.vms.volumes.list(vm_id, body).asResponse();
47
+ return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await response.json()));
39
48
  };
40
49
  exports.handler = handler;
41
50
  exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
@@ -1 +1 @@
1
- {"version":3,"file":"list-vms-compute-volumes.js","sourceRoot":"","sources":["../../../../src/tools/compute/vms/volumes/list-vms-compute-volumes.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,mEAAkE;AAClE,iEAAsF;AAKzE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,qBAAqB;IAC/B,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,iCAAiC;IAC3C,WAAW,EAAE,iBAAiB;CAC/B,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,0BAA0B;IAChC,WAAW,EACT,onFAAonF;IACtnF,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,OAAO,CAAC;KACpB;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAmB,EAAE,IAAyC,EAAE,EAAE;IAC9F,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAClD,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AACzG,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"list-vms-compute-volumes.js","sourceRoot":"","sources":["../../../../src/tools/compute/vms/volumes/list-vms-compute-volumes.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,mEAAkE;AAClE,iEAAsF;AAKzE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,qBAAqB;IAC/B,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,iCAAiC;IAC3C,WAAW,EAAE,iBAAiB;CAC/B,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,0BAA0B;IAChC,WAAW,EACT,4nGAA4nG;IAC9nG,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;aACf;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,kDAAkD;aAChE;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,mCAAmC;aACjD;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,OAAO,CAAC;KACpB;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAmB,EAAE,IAAyC,EAAE,EAAE;IAC9F,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAClD,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IACjF,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAClF,CAAC,CAAC;AAJW,QAAA,OAAO,WAIlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -11,13 +11,21 @@ export const metadata = {
11
11
  };
12
12
  export const tool = {
13
13
  name: 'list_vms_compute_volumes',
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 VM's Volumes\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/volume_list',\n $defs: {\n volume_list: {\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n $ref: '#/$defs/volume'\n }\n }\n },\n required: [ 'items'\n ]\n },\n volume: {\n type: 'object',\n description: 'Volume details.',\n properties: {\n id: {\n type: 'string',\n description: 'Unique identifier for the Volume.'\n },\n created_at: {\n type: 'string',\n description: 'When the Volume was created.',\n format: 'date-time'\n },\n kind: {\n $ref: '#/$defs/volume_kind'\n },\n name: {\n type: 'string',\n description: 'Name of the Volume.'\n },\n size: {\n type: 'integer',\n description: 'Size of the Volume in GB.'\n },\n status: {\n $ref: '#/$defs/resource_status'\n },\n tags: {\n type: 'array',\n description: 'Tags to attach to the Volume.',\n items: {\n type: 'string'\n }\n },\n type: {\n $ref: '#/$defs/storage_type'\n },\n updated_at: {\n type: 'string',\n description: 'When the Volume was updated.',\n format: 'date-time'\n },\n vm_id: {\n type: 'string',\n description: 'ID of the VM the Volume is attached to.'\n },\n vm_name: {\n type: 'string',\n description: 'Name of the VM the Volume is attached to.'\n }\n },\n required: [ 'id',\n 'created_at',\n 'kind',\n 'name',\n 'size',\n 'status',\n 'tags',\n 'type',\n 'updated_at',\n 'vm_id',\n 'vm_name'\n ]\n },\n volume_kind: {\n type: 'string',\n description: 'Volume kind.',\n enum: [ 'boot',\n 'data'\n ]\n },\n resource_status: {\n type: 'string',\n description: 'Status of the resource.',\n enum: [ 'pending',\n 'creating',\n 'updating',\n 'ready',\n 'deleting',\n 'deleted',\n 'error'\n ]\n },\n storage_type: {\n type: 'string',\n description: 'Storage type the Volume is using.',\n enum: [ 'nvme'\n ]\n }\n }\n}\n```",
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 VM's Volumes\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/volume_list',\n $defs: {\n volume_list: {\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n $ref: '#/$defs/volume'\n }\n },\n pagination: {\n $ref: '#/$defs/pagination'\n }\n },\n required: [ 'items',\n 'pagination'\n ]\n },\n volume: {\n type: 'object',\n description: 'Volume details.',\n properties: {\n id: {\n type: 'string',\n description: 'Unique identifier for the Volume.'\n },\n created_at: {\n type: 'string',\n description: 'When the Volume was created.',\n format: 'date-time'\n },\n kind: {\n $ref: '#/$defs/volume_kind'\n },\n name: {\n type: 'string',\n description: 'Name of the Volume.'\n },\n size: {\n type: 'integer',\n description: 'Size of the Volume in GB.'\n },\n status: {\n $ref: '#/$defs/resource_status'\n },\n tags: {\n type: 'array',\n description: 'Tags to attach to the Volume.',\n items: {\n type: 'string'\n }\n },\n type: {\n $ref: '#/$defs/storage_type'\n },\n updated_at: {\n type: 'string',\n description: 'When the Volume was updated.',\n format: 'date-time'\n },\n vm_id: {\n type: 'string',\n description: 'ID of the VM the Volume is attached to.'\n },\n vm_name: {\n type: 'string',\n description: 'Name of the VM the Volume is attached to.'\n }\n },\n required: [ 'id',\n 'created_at',\n 'kind',\n 'name',\n 'size',\n 'status',\n 'tags',\n 'type',\n 'updated_at',\n 'vm_id',\n 'vm_name'\n ]\n },\n volume_kind: {\n type: 'string',\n description: 'Volume kind.',\n enum: [ 'boot',\n 'data'\n ]\n },\n resource_status: {\n type: 'string',\n description: 'Status of the resource.',\n enum: [ 'pending',\n 'creating',\n 'updating',\n 'ready',\n 'deleting',\n 'deleted',\n 'error'\n ]\n },\n storage_type: {\n type: 'string',\n description: 'Storage type the Volume is using.',\n enum: [ 'nvme'\n ]\n },\n pagination: {\n type: 'object',\n description: 'Pagination response details.',\n properties: {\n next_cursor: {\n type: 'string'\n },\n previous_cursor: {\n type: 'string'\n },\n total_count: {\n type: 'integer'\n }\n },\n required: [ 'next_cursor',\n 'previous_cursor',\n 'total_count'\n ]\n }\n }\n}\n```",
15
15
  inputSchema: {
16
16
  type: 'object',
17
17
  properties: {
18
18
  vm_id: {
19
19
  type: 'string',
20
20
  },
21
+ cursor: {
22
+ type: 'string',
23
+ description: 'Pagination cursor returned by a previous request',
24
+ },
25
+ limit: {
26
+ type: 'integer',
27
+ description: 'Maximum number of items to return',
28
+ },
21
29
  jq_filter: {
22
30
  type: 'string',
23
31
  title: 'jq Filter',
@@ -32,7 +40,8 @@ export const tool = {
32
40
  };
33
41
  export const handler = async (client, args) => {
34
42
  const { vm_id, jq_filter, ...body } = args;
35
- return asTextContentResult(await maybeFilter(jq_filter, await client.compute.vms.volumes.list(vm_id)));
43
+ const response = await client.compute.vms.volumes.list(vm_id, body).asResponse();
44
+ return asTextContentResult(await maybeFilter(jq_filter, await response.json()));
36
45
  };
37
46
  export default { metadata, tool, handler };
38
47
  //# sourceMappingURL=list-vms-compute-volumes.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-vms-compute-volumes.mjs","sourceRoot":"","sources":["../../../../src/tools/compute/vms/volumes/list-vms-compute-volumes.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,qBAAqB;IAC/B,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,iCAAiC;IAC3C,WAAW,EAAE,iBAAiB;CAC/B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,0BAA0B;IAChC,WAAW,EACT,onFAAonF;IACtnF,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,OAAO,CAAC;KACpB;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,KAAK,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAClD,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AACzG,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"list-vms-compute-volumes.mjs","sourceRoot":"","sources":["../../../../src/tools/compute/vms/volumes/list-vms-compute-volumes.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,qBAAqB;IAC/B,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,iCAAiC;IAC3C,WAAW,EAAE,iBAAiB;CAC/B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,0BAA0B;IAChC,WAAW,EACT,4nGAA4nG;IAC9nG,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;aACf;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,kDAAkD;aAChE;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,mCAAmC;aACjD;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,OAAO,CAAC;KACpB;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,KAAK,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAClD,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IACjF,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAClF,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"list-compute-volumes.d.mts","sourceRoot":"","sources":["../../../src/tools/compute/volumes/list-compute-volumes.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"}
1
+ {"version":3,"file":"list-compute-volumes.d.mts","sourceRoot":"","sources":["../../../src/tools/compute/volumes/list-compute-volumes.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,IA2BlB,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"}
@@ -1 +1 @@
1
- {"version":3,"file":"list-compute-volumes.d.ts","sourceRoot":"","sources":["../../../src/tools/compute/volumes/list-compute-volumes.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"}
1
+ {"version":3,"file":"list-compute-volumes.d.ts","sourceRoot":"","sources":["../../../src/tools/compute/volumes/list-compute-volumes.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,IA2BlB,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"}
@@ -14,10 +14,18 @@ exports.metadata = {
14
14
  };
15
15
  exports.tool = {
16
16
  name: 'list_compute_volumes',
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 volumes\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/volume_list',\n $defs: {\n volume_list: {\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n $ref: '#/$defs/volume'\n }\n }\n },\n required: [ 'items'\n ]\n },\n volume: {\n type: 'object',\n description: 'Volume details.',\n properties: {\n id: {\n type: 'string',\n description: 'Unique identifier for the Volume.'\n },\n created_at: {\n type: 'string',\n description: 'When the Volume was created.',\n format: 'date-time'\n },\n kind: {\n $ref: '#/$defs/volume_kind'\n },\n name: {\n type: 'string',\n description: 'Name of the Volume.'\n },\n size: {\n type: 'integer',\n description: 'Size of the Volume in GB.'\n },\n status: {\n $ref: '#/$defs/resource_status'\n },\n tags: {\n type: 'array',\n description: 'Tags to attach to the Volume.',\n items: {\n type: 'string'\n }\n },\n type: {\n $ref: '#/$defs/storage_type'\n },\n updated_at: {\n type: 'string',\n description: 'When the Volume was updated.',\n format: 'date-time'\n },\n vm_id: {\n type: 'string',\n description: 'ID of the VM the Volume is attached to.'\n },\n vm_name: {\n type: 'string',\n description: 'Name of the VM the Volume is attached to.'\n }\n },\n required: [ 'id',\n 'created_at',\n 'kind',\n 'name',\n 'size',\n 'status',\n 'tags',\n 'type',\n 'updated_at',\n 'vm_id',\n 'vm_name'\n ]\n },\n volume_kind: {\n type: 'string',\n description: 'Volume kind.',\n enum: [ 'boot',\n 'data'\n ]\n },\n resource_status: {\n type: 'string',\n description: 'Status of the resource.',\n enum: [ 'pending',\n 'creating',\n 'updating',\n 'ready',\n 'deleting',\n 'deleted',\n 'error'\n ]\n },\n storage_type: {\n type: 'string',\n description: 'Storage type the Volume is using.',\n enum: [ 'nvme'\n ]\n }\n }\n}\n```",
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 volumes\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/volume_list',\n $defs: {\n volume_list: {\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n $ref: '#/$defs/volume'\n }\n },\n pagination: {\n $ref: '#/$defs/pagination'\n }\n },\n required: [ 'items',\n 'pagination'\n ]\n },\n volume: {\n type: 'object',\n description: 'Volume details.',\n properties: {\n id: {\n type: 'string',\n description: 'Unique identifier for the Volume.'\n },\n created_at: {\n type: 'string',\n description: 'When the Volume was created.',\n format: 'date-time'\n },\n kind: {\n $ref: '#/$defs/volume_kind'\n },\n name: {\n type: 'string',\n description: 'Name of the Volume.'\n },\n size: {\n type: 'integer',\n description: 'Size of the Volume in GB.'\n },\n status: {\n $ref: '#/$defs/resource_status'\n },\n tags: {\n type: 'array',\n description: 'Tags to attach to the Volume.',\n items: {\n type: 'string'\n }\n },\n type: {\n $ref: '#/$defs/storage_type'\n },\n updated_at: {\n type: 'string',\n description: 'When the Volume was updated.',\n format: 'date-time'\n },\n vm_id: {\n type: 'string',\n description: 'ID of the VM the Volume is attached to.'\n },\n vm_name: {\n type: 'string',\n description: 'Name of the VM the Volume is attached to.'\n }\n },\n required: [ 'id',\n 'created_at',\n 'kind',\n 'name',\n 'size',\n 'status',\n 'tags',\n 'type',\n 'updated_at',\n 'vm_id',\n 'vm_name'\n ]\n },\n volume_kind: {\n type: 'string',\n description: 'Volume kind.',\n enum: [ 'boot',\n 'data'\n ]\n },\n resource_status: {\n type: 'string',\n description: 'Status of the resource.',\n enum: [ 'pending',\n 'creating',\n 'updating',\n 'ready',\n 'deleting',\n 'deleted',\n 'error'\n ]\n },\n storage_type: {\n type: 'string',\n description: 'Storage type the Volume is using.',\n enum: [ 'nvme'\n ]\n },\n pagination: {\n type: 'object',\n description: 'Pagination response details.',\n properties: {\n next_cursor: {\n type: 'string'\n },\n previous_cursor: {\n type: 'string'\n },\n total_count: {\n type: 'integer'\n }\n },\n required: [ 'next_cursor',\n 'previous_cursor',\n 'total_count'\n ]\n }\n }\n}\n```",
18
18
  inputSchema: {
19
19
  type: 'object',
20
20
  properties: {
21
+ cursor: {
22
+ type: 'string',
23
+ description: 'Pagination cursor returned by a previous request',
24
+ },
25
+ limit: {
26
+ type: 'integer',
27
+ description: 'Maximum number of items to return',
28
+ },
21
29
  jq_filter: {
22
30
  type: 'string',
23
31
  title: 'jq Filter',
@@ -31,8 +39,9 @@ exports.tool = {
31
39
  },
32
40
  };
33
41
  const handler = async (client, args) => {
34
- const { jq_filter } = args;
35
- return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.compute.volumes.list()));
42
+ const { jq_filter, ...body } = args;
43
+ const response = await client.compute.volumes.list(body).asResponse();
44
+ return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await response.json()));
36
45
  };
37
46
  exports.handler = handler;
38
47
  exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
@@ -1 +1 @@
1
- {"version":3,"file":"list-compute-volumes.js","sourceRoot":"","sources":["../../../src/tools/compute/volumes/list-compute-volumes.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,mEAAkE;AAClE,iEAAsF;AAKzE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,iBAAiB;IAC3B,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,qBAAqB;IAC/B,WAAW,EAAE,cAAc;CAC5B,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EACT,mnFAAmnF;IACrnF,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,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAChG,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"list-compute-volumes.js","sourceRoot":"","sources":["../../../src/tools/compute/volumes/list-compute-volumes.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,mEAAkE;AAClE,iEAAsF;AAKzE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,iBAAiB;IAC3B,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,qBAAqB;IAC/B,WAAW,EAAE,cAAc;CAC5B,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EACT,2nGAA2nG;IAC7nG,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,kDAAkD;aAChE;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,mCAAmC;aACjD;YACD,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,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IACtE,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAClF,CAAC,CAAC;AAJW,QAAA,OAAO,WAIlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -11,10 +11,18 @@ export const metadata = {
11
11
  };
12
12
  export const tool = {
13
13
  name: 'list_compute_volumes',
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 volumes\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/volume_list',\n $defs: {\n volume_list: {\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n $ref: '#/$defs/volume'\n }\n }\n },\n required: [ 'items'\n ]\n },\n volume: {\n type: 'object',\n description: 'Volume details.',\n properties: {\n id: {\n type: 'string',\n description: 'Unique identifier for the Volume.'\n },\n created_at: {\n type: 'string',\n description: 'When the Volume was created.',\n format: 'date-time'\n },\n kind: {\n $ref: '#/$defs/volume_kind'\n },\n name: {\n type: 'string',\n description: 'Name of the Volume.'\n },\n size: {\n type: 'integer',\n description: 'Size of the Volume in GB.'\n },\n status: {\n $ref: '#/$defs/resource_status'\n },\n tags: {\n type: 'array',\n description: 'Tags to attach to the Volume.',\n items: {\n type: 'string'\n }\n },\n type: {\n $ref: '#/$defs/storage_type'\n },\n updated_at: {\n type: 'string',\n description: 'When the Volume was updated.',\n format: 'date-time'\n },\n vm_id: {\n type: 'string',\n description: 'ID of the VM the Volume is attached to.'\n },\n vm_name: {\n type: 'string',\n description: 'Name of the VM the Volume is attached to.'\n }\n },\n required: [ 'id',\n 'created_at',\n 'kind',\n 'name',\n 'size',\n 'status',\n 'tags',\n 'type',\n 'updated_at',\n 'vm_id',\n 'vm_name'\n ]\n },\n volume_kind: {\n type: 'string',\n description: 'Volume kind.',\n enum: [ 'boot',\n 'data'\n ]\n },\n resource_status: {\n type: 'string',\n description: 'Status of the resource.',\n enum: [ 'pending',\n 'creating',\n 'updating',\n 'ready',\n 'deleting',\n 'deleted',\n 'error'\n ]\n },\n storage_type: {\n type: 'string',\n description: 'Storage type the Volume is using.',\n enum: [ 'nvme'\n ]\n }\n }\n}\n```",
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 volumes\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/volume_list',\n $defs: {\n volume_list: {\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n $ref: '#/$defs/volume'\n }\n },\n pagination: {\n $ref: '#/$defs/pagination'\n }\n },\n required: [ 'items',\n 'pagination'\n ]\n },\n volume: {\n type: 'object',\n description: 'Volume details.',\n properties: {\n id: {\n type: 'string',\n description: 'Unique identifier for the Volume.'\n },\n created_at: {\n type: 'string',\n description: 'When the Volume was created.',\n format: 'date-time'\n },\n kind: {\n $ref: '#/$defs/volume_kind'\n },\n name: {\n type: 'string',\n description: 'Name of the Volume.'\n },\n size: {\n type: 'integer',\n description: 'Size of the Volume in GB.'\n },\n status: {\n $ref: '#/$defs/resource_status'\n },\n tags: {\n type: 'array',\n description: 'Tags to attach to the Volume.',\n items: {\n type: 'string'\n }\n },\n type: {\n $ref: '#/$defs/storage_type'\n },\n updated_at: {\n type: 'string',\n description: 'When the Volume was updated.',\n format: 'date-time'\n },\n vm_id: {\n type: 'string',\n description: 'ID of the VM the Volume is attached to.'\n },\n vm_name: {\n type: 'string',\n description: 'Name of the VM the Volume is attached to.'\n }\n },\n required: [ 'id',\n 'created_at',\n 'kind',\n 'name',\n 'size',\n 'status',\n 'tags',\n 'type',\n 'updated_at',\n 'vm_id',\n 'vm_name'\n ]\n },\n volume_kind: {\n type: 'string',\n description: 'Volume kind.',\n enum: [ 'boot',\n 'data'\n ]\n },\n resource_status: {\n type: 'string',\n description: 'Status of the resource.',\n enum: [ 'pending',\n 'creating',\n 'updating',\n 'ready',\n 'deleting',\n 'deleted',\n 'error'\n ]\n },\n storage_type: {\n type: 'string',\n description: 'Storage type the Volume is using.',\n enum: [ 'nvme'\n ]\n },\n pagination: {\n type: 'object',\n description: 'Pagination response details.',\n properties: {\n next_cursor: {\n type: 'string'\n },\n previous_cursor: {\n type: 'string'\n },\n total_count: {\n type: 'integer'\n }\n },\n required: [ 'next_cursor',\n 'previous_cursor',\n 'total_count'\n ]\n }\n }\n}\n```",
15
15
  inputSchema: {
16
16
  type: 'object',
17
17
  properties: {
18
+ cursor: {
19
+ type: 'string',
20
+ description: 'Pagination cursor returned by a previous request',
21
+ },
22
+ limit: {
23
+ type: 'integer',
24
+ description: 'Maximum number of items to return',
25
+ },
18
26
  jq_filter: {
19
27
  type: 'string',
20
28
  title: 'jq Filter',
@@ -28,8 +36,9 @@ export const tool = {
28
36
  },
29
37
  };
30
38
  export const handler = async (client, args) => {
31
- const { jq_filter } = args;
32
- return asTextContentResult(await maybeFilter(jq_filter, await client.compute.volumes.list()));
39
+ const { jq_filter, ...body } = args;
40
+ const response = await client.compute.volumes.list(body).asResponse();
41
+ return asTextContentResult(await maybeFilter(jq_filter, await response.json()));
33
42
  };
34
43
  export default { metadata, tool, handler };
35
44
  //# sourceMappingURL=list-compute-volumes.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-compute-volumes.mjs","sourceRoot":"","sources":["../../../src/tools/compute/volumes/list-compute-volumes.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,iBAAiB;IAC3B,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,qBAAqB;IAC/B,WAAW,EAAE,cAAc;CAC5B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EACT,mnFAAmnF;IACrnF,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,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAChG,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"list-compute-volumes.mjs","sourceRoot":"","sources":["../../../src/tools/compute/volumes/list-compute-volumes.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,iBAAiB;IAC3B,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,qBAAqB;IAC/B,WAAW,EAAE,cAAc;CAC5B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EACT,2nGAA2nG;IAC7nG,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,kDAAkD;aAChE;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,mCAAmC;aACjD;YACD,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,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IACtE,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAClF,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"list-connect-networking-connections.d.mts","sourceRoot":"","sources":["../../../../src/tools/networking/connect/connections/list-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,IAmBlB,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"}
1
+ {"version":3,"file":"list-connect-networking-connections.d.mts","sourceRoot":"","sources":["../../../../src/tools/networking/connect/connections/list-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,IA2BlB,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"}
@@ -1 +1 @@
1
- {"version":3,"file":"list-connect-networking-connections.d.ts","sourceRoot":"","sources":["../../../../src/tools/networking/connect/connections/list-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,IAmBlB,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"}
1
+ {"version":3,"file":"list-connect-networking-connections.d.ts","sourceRoot":"","sources":["../../../../src/tools/networking/connect/connections/list-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,IA2BlB,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"}
@@ -14,10 +14,18 @@ exports.metadata = {
14
14
  };
15
15
  exports.tool = {
16
16
  name: 'list_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\nList all Connect Connections\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/connect_connection_list',\n $defs: {\n connect_connection_list: {\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n $ref: '#/$defs/connect_connection'\n }\n }\n },\n required: [ 'items'\n ]\n },\n connect_connection: {\n type: 'object',\n description: 'Connect Connection details.',\n properties: {\n id: {\n type: 'string',\n description: 'Unique identifier for the Connect Connection'\n },\n asn: {\n type: 'integer',\n description: 'ASN'\n },\n aws: {\n $ref: '#/$defs/connect_connection_aws_config'\n },\n bandwidth_mbps: {\n $ref: '#/$defs/connect_bandwidth_mbps'\n },\n cidrs: {\n type: 'array',\n description: 'CIDRs for the Connect Connection',\n items: {\n type: 'string'\n }\n },\n created_at: {\n type: 'string',\n description: 'When the Connect Connection was created',\n format: 'date-time'\n },\n name: {\n type: 'string',\n description: 'Name of the Connect Connection'\n },\n provider_asn: {\n type: 'integer',\n description: 'Provider ASN'\n },\n provider_cidrs: {\n type: 'array',\n description: 'Provider CIDRs for the Connect Connection',\n items: {\n type: 'string'\n }\n },\n provider_router_ip: {\n type: 'string',\n description: 'Provider Router IP for the Connect Connection'\n },\n region: {\n $ref: '#/$defs/region_name'\n },\n router_ip: {\n type: 'string',\n description: 'Router IP'\n },\n status: {\n $ref: '#/$defs/resource_status'\n },\n tags: {\n type: 'array',\n description: 'Tags to attach to the Connect Connection',\n items: {\n type: 'string'\n }\n },\n updated_at: {\n type: 'string',\n description: 'When the Connect Connection was updated',\n format: 'date-time'\n }\n },\n required: [ 'id',\n 'asn',\n 'aws',\n 'bandwidth_mbps',\n 'cidrs',\n 'created_at',\n 'name',\n 'provider_asn',\n 'provider_cidrs',\n 'provider_router_ip',\n 'region',\n 'router_ip',\n 'status',\n 'tags',\n 'updated_at'\n ]\n },\n connect_connection_aws_config: {\n type: 'object',\n description: 'AWS provider configuration',\n properties: {\n region: {\n type: 'string',\n description: 'AWS region where the connection is established'\n }\n },\n required: [ 'region'\n ]\n },\n connect_bandwidth_mbps: {\n type: 'string',\n description: 'Connect Connection speed in Mbps',\n enum: [ 50,\n 200,\n 500,\n 1000,\n 2000\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 resource_status: {\n type: 'string',\n description: 'Status of the resource.',\n enum: [ 'pending',\n 'creating',\n 'updating',\n 'ready',\n 'deleting',\n 'deleted',\n 'error'\n ]\n }\n }\n}\n```",
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 Connect Connections\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/connect_connection_list',\n $defs: {\n connect_connection_list: {\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n $ref: '#/$defs/connect_connection'\n }\n },\n pagination: {\n $ref: '#/$defs/pagination'\n }\n },\n required: [ 'items',\n 'pagination'\n ]\n },\n connect_connection: {\n type: 'object',\n description: 'Connect Connection details.',\n properties: {\n id: {\n type: 'string',\n description: 'Unique identifier for the Connect Connection'\n },\n asn: {\n type: 'integer',\n description: 'ASN'\n },\n aws: {\n $ref: '#/$defs/connect_connection_aws_config'\n },\n bandwidth_mbps: {\n $ref: '#/$defs/connect_bandwidth_mbps'\n },\n cidrs: {\n type: 'array',\n description: 'CIDRs for the Connect Connection',\n items: {\n type: 'string'\n }\n },\n created_at: {\n type: 'string',\n description: 'When the Connect Connection was created',\n format: 'date-time'\n },\n name: {\n type: 'string',\n description: 'Name of the Connect Connection'\n },\n provider_asn: {\n type: 'integer',\n description: 'Provider ASN'\n },\n provider_cidrs: {\n type: 'array',\n description: 'Provider CIDRs for the Connect Connection',\n items: {\n type: 'string'\n }\n },\n provider_router_ip: {\n type: 'string',\n description: 'Provider Router IP for the Connect Connection'\n },\n region: {\n $ref: '#/$defs/region_name'\n },\n router_ip: {\n type: 'string',\n description: 'Router IP'\n },\n status: {\n $ref: '#/$defs/resource_status'\n },\n tags: {\n type: 'array',\n description: 'Tags to attach to the Connect Connection',\n items: {\n type: 'string'\n }\n },\n updated_at: {\n type: 'string',\n description: 'When the Connect Connection was updated',\n format: 'date-time'\n }\n },\n required: [ 'id',\n 'asn',\n 'aws',\n 'bandwidth_mbps',\n 'cidrs',\n 'created_at',\n 'name',\n 'provider_asn',\n 'provider_cidrs',\n 'provider_router_ip',\n 'region',\n 'router_ip',\n 'status',\n 'tags',\n 'updated_at'\n ]\n },\n connect_connection_aws_config: {\n type: 'object',\n description: 'AWS provider configuration',\n properties: {\n region: {\n type: 'string',\n description: 'AWS region where the connection is established'\n }\n },\n required: [ 'region'\n ]\n },\n connect_bandwidth_mbps: {\n type: 'string',\n description: 'Connect Connection speed in Mbps',\n enum: [ 50,\n 200,\n 500,\n 1000,\n 2000\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 resource_status: {\n type: 'string',\n description: 'Status of the resource.',\n enum: [ 'pending',\n 'creating',\n 'updating',\n 'ready',\n 'deleting',\n 'deleted',\n 'error'\n ]\n },\n pagination: {\n type: 'object',\n description: 'Pagination response details.',\n properties: {\n next_cursor: {\n type: 'string'\n },\n previous_cursor: {\n type: 'string'\n },\n total_count: {\n type: 'integer'\n }\n },\n required: [ 'next_cursor',\n 'previous_cursor',\n 'total_count'\n ]\n }\n }\n}\n```",
18
18
  inputSchema: {
19
19
  type: 'object',
20
20
  properties: {
21
+ cursor: {
22
+ type: 'string',
23
+ description: 'Pagination cursor returned by a previous request',
24
+ },
25
+ limit: {
26
+ type: 'integer',
27
+ description: 'Maximum number of items to return',
28
+ },
21
29
  jq_filter: {
22
30
  type: 'string',
23
31
  title: 'jq Filter',
@@ -31,8 +39,9 @@ exports.tool = {
31
39
  },
32
40
  };
33
41
  const handler = async (client, args) => {
34
- const { jq_filter } = args;
35
- return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.networking.connect.connections.list()));
42
+ const { jq_filter, ...body } = args;
43
+ const response = await client.networking.connect.connections.list(body).asResponse();
44
+ return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await response.json()));
36
45
  };
37
46
  exports.handler = handler;
38
47
  exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
@@ -1 +1 @@
1
- {"version":3,"file":"list-connect-networking-connections.js","sourceRoot":"","sources":["../../../../src/tools/networking/connect/connections/list-connect-networking-connections.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,mEAAkE;AAClE,iEAAsF;AAKzE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,gCAAgC;IAC1C,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,oCAAoC;IAC9C,WAAW,EAAE,0BAA0B;CACxC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,qCAAqC;IAC3C,WAAW,EACT,85HAA85H;IACh6H,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,EACxB,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC,CACjF,CAAC;AACJ,CAAC,CAAC;AALW,QAAA,OAAO,WAKlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"list-connect-networking-connections.js","sourceRoot":"","sources":["../../../../src/tools/networking/connect/connections/list-connect-networking-connections.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,mEAAkE;AAClE,iEAAsF;AAKzE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,gCAAgC;IAC1C,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,oCAAoC;IAC9C,WAAW,EAAE,0BAA0B;CACxC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,qCAAqC;IAC3C,WAAW,EACT,s6IAAs6I;IACx6I,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,kDAAkD;aAChE;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,mCAAmC;aACjD;YACD,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,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IACrF,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAClF,CAAC,CAAC;AAJW,QAAA,OAAO,WAIlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -11,10 +11,18 @@ export const metadata = {
11
11
  };
12
12
  export const tool = {
13
13
  name: 'list_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\nList all Connect Connections\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/connect_connection_list',\n $defs: {\n connect_connection_list: {\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n $ref: '#/$defs/connect_connection'\n }\n }\n },\n required: [ 'items'\n ]\n },\n connect_connection: {\n type: 'object',\n description: 'Connect Connection details.',\n properties: {\n id: {\n type: 'string',\n description: 'Unique identifier for the Connect Connection'\n },\n asn: {\n type: 'integer',\n description: 'ASN'\n },\n aws: {\n $ref: '#/$defs/connect_connection_aws_config'\n },\n bandwidth_mbps: {\n $ref: '#/$defs/connect_bandwidth_mbps'\n },\n cidrs: {\n type: 'array',\n description: 'CIDRs for the Connect Connection',\n items: {\n type: 'string'\n }\n },\n created_at: {\n type: 'string',\n description: 'When the Connect Connection was created',\n format: 'date-time'\n },\n name: {\n type: 'string',\n description: 'Name of the Connect Connection'\n },\n provider_asn: {\n type: 'integer',\n description: 'Provider ASN'\n },\n provider_cidrs: {\n type: 'array',\n description: 'Provider CIDRs for the Connect Connection',\n items: {\n type: 'string'\n }\n },\n provider_router_ip: {\n type: 'string',\n description: 'Provider Router IP for the Connect Connection'\n },\n region: {\n $ref: '#/$defs/region_name'\n },\n router_ip: {\n type: 'string',\n description: 'Router IP'\n },\n status: {\n $ref: '#/$defs/resource_status'\n },\n tags: {\n type: 'array',\n description: 'Tags to attach to the Connect Connection',\n items: {\n type: 'string'\n }\n },\n updated_at: {\n type: 'string',\n description: 'When the Connect Connection was updated',\n format: 'date-time'\n }\n },\n required: [ 'id',\n 'asn',\n 'aws',\n 'bandwidth_mbps',\n 'cidrs',\n 'created_at',\n 'name',\n 'provider_asn',\n 'provider_cidrs',\n 'provider_router_ip',\n 'region',\n 'router_ip',\n 'status',\n 'tags',\n 'updated_at'\n ]\n },\n connect_connection_aws_config: {\n type: 'object',\n description: 'AWS provider configuration',\n properties: {\n region: {\n type: 'string',\n description: 'AWS region where the connection is established'\n }\n },\n required: [ 'region'\n ]\n },\n connect_bandwidth_mbps: {\n type: 'string',\n description: 'Connect Connection speed in Mbps',\n enum: [ 50,\n 200,\n 500,\n 1000,\n 2000\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 resource_status: {\n type: 'string',\n description: 'Status of the resource.',\n enum: [ 'pending',\n 'creating',\n 'updating',\n 'ready',\n 'deleting',\n 'deleted',\n 'error'\n ]\n }\n }\n}\n```",
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 Connect Connections\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/connect_connection_list',\n $defs: {\n connect_connection_list: {\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n $ref: '#/$defs/connect_connection'\n }\n },\n pagination: {\n $ref: '#/$defs/pagination'\n }\n },\n required: [ 'items',\n 'pagination'\n ]\n },\n connect_connection: {\n type: 'object',\n description: 'Connect Connection details.',\n properties: {\n id: {\n type: 'string',\n description: 'Unique identifier for the Connect Connection'\n },\n asn: {\n type: 'integer',\n description: 'ASN'\n },\n aws: {\n $ref: '#/$defs/connect_connection_aws_config'\n },\n bandwidth_mbps: {\n $ref: '#/$defs/connect_bandwidth_mbps'\n },\n cidrs: {\n type: 'array',\n description: 'CIDRs for the Connect Connection',\n items: {\n type: 'string'\n }\n },\n created_at: {\n type: 'string',\n description: 'When the Connect Connection was created',\n format: 'date-time'\n },\n name: {\n type: 'string',\n description: 'Name of the Connect Connection'\n },\n provider_asn: {\n type: 'integer',\n description: 'Provider ASN'\n },\n provider_cidrs: {\n type: 'array',\n description: 'Provider CIDRs for the Connect Connection',\n items: {\n type: 'string'\n }\n },\n provider_router_ip: {\n type: 'string',\n description: 'Provider Router IP for the Connect Connection'\n },\n region: {\n $ref: '#/$defs/region_name'\n },\n router_ip: {\n type: 'string',\n description: 'Router IP'\n },\n status: {\n $ref: '#/$defs/resource_status'\n },\n tags: {\n type: 'array',\n description: 'Tags to attach to the Connect Connection',\n items: {\n type: 'string'\n }\n },\n updated_at: {\n type: 'string',\n description: 'When the Connect Connection was updated',\n format: 'date-time'\n }\n },\n required: [ 'id',\n 'asn',\n 'aws',\n 'bandwidth_mbps',\n 'cidrs',\n 'created_at',\n 'name',\n 'provider_asn',\n 'provider_cidrs',\n 'provider_router_ip',\n 'region',\n 'router_ip',\n 'status',\n 'tags',\n 'updated_at'\n ]\n },\n connect_connection_aws_config: {\n type: 'object',\n description: 'AWS provider configuration',\n properties: {\n region: {\n type: 'string',\n description: 'AWS region where the connection is established'\n }\n },\n required: [ 'region'\n ]\n },\n connect_bandwidth_mbps: {\n type: 'string',\n description: 'Connect Connection speed in Mbps',\n enum: [ 50,\n 200,\n 500,\n 1000,\n 2000\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 resource_status: {\n type: 'string',\n description: 'Status of the resource.',\n enum: [ 'pending',\n 'creating',\n 'updating',\n 'ready',\n 'deleting',\n 'deleted',\n 'error'\n ]\n },\n pagination: {\n type: 'object',\n description: 'Pagination response details.',\n properties: {\n next_cursor: {\n type: 'string'\n },\n previous_cursor: {\n type: 'string'\n },\n total_count: {\n type: 'integer'\n }\n },\n required: [ 'next_cursor',\n 'previous_cursor',\n 'total_count'\n ]\n }\n }\n}\n```",
15
15
  inputSchema: {
16
16
  type: 'object',
17
17
  properties: {
18
+ cursor: {
19
+ type: 'string',
20
+ description: 'Pagination cursor returned by a previous request',
21
+ },
22
+ limit: {
23
+ type: 'integer',
24
+ description: 'Maximum number of items to return',
25
+ },
18
26
  jq_filter: {
19
27
  type: 'string',
20
28
  title: 'jq Filter',
@@ -28,8 +36,9 @@ export const tool = {
28
36
  },
29
37
  };
30
38
  export const handler = async (client, args) => {
31
- const { jq_filter } = args;
32
- return asTextContentResult(await maybeFilter(jq_filter, await client.networking.connect.connections.list()));
39
+ const { jq_filter, ...body } = args;
40
+ const response = await client.networking.connect.connections.list(body).asResponse();
41
+ return asTextContentResult(await maybeFilter(jq_filter, await response.json()));
33
42
  };
34
43
  export default { metadata, tool, handler };
35
44
  //# sourceMappingURL=list-connect-networking-connections.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-connect-networking-connections.mjs","sourceRoot":"","sources":["../../../../src/tools/networking/connect/connections/list-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,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,oCAAoC;IAC9C,WAAW,EAAE,0BAA0B;CACxC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,qCAAqC;IAC3C,WAAW,EACT,85HAA85H;IACh6H,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,CACxB,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC,CACjF,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"list-connect-networking-connections.mjs","sourceRoot":"","sources":["../../../../src/tools/networking/connect/connections/list-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,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,oCAAoC;IAC9C,WAAW,EAAE,0BAA0B;CACxC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,qCAAqC;IAC3C,WAAW,EACT,s6IAAs6I;IACx6I,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,kDAAkD;aAChE;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,mCAAmC;aACjD;YACD,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,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IACrF,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAClF,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -1 +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"}
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,IA2BlB,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"}
@@ -1 +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"}
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,IA2BlB,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"}
@@ -14,10 +14,18 @@ exports.metadata = {
14
14
  };
15
15
  exports.tool = {
16
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```",
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 pagination: {\n $ref: '#/$defs/pagination'\n }\n },\n required: [ 'items',\n 'pagination'\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 pagination: {\n type: 'object',\n description: 'Pagination response details.',\n properties: {\n next_cursor: {\n type: 'string'\n },\n previous_cursor: {\n type: 'string'\n },\n total_count: {\n type: 'integer'\n }\n },\n required: [ 'next_cursor',\n 'previous_cursor',\n 'total_count'\n ]\n }\n }\n}\n```",
18
18
  inputSchema: {
19
19
  type: 'object',
20
20
  properties: {
21
+ cursor: {
22
+ type: 'string',
23
+ description: 'Pagination cursor returned by a previous request',
24
+ },
25
+ limit: {
26
+ type: 'integer',
27
+ description: 'Maximum number of items to return',
28
+ },
21
29
  jq_filter: {
22
30
  type: 'string',
23
31
  title: 'jq Filter',
@@ -31,8 +39,9 @@ exports.tool = {
31
39
  },
32
40
  };
33
41
  const handler = async (client, args) => {
34
- const { jq_filter } = args;
35
- return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.networking.connect.routes.list()));
42
+ const { jq_filter, ...body } = args;
43
+ const response = await client.networking.connect.routes.list(body).asResponse();
44
+ return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await response.json()));
36
45
  };
37
46
  exports.handler = handler;
38
47
  exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
@@ -1 +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"}
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,i4DAAi4D;IACn4D,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,kDAAkD;aAChE;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,mCAAmC;aACjD;YACD,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,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IAChF,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAClF,CAAC,CAAC;AAJW,QAAA,OAAO,WAIlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -11,10 +11,18 @@ export const metadata = {
11
11
  };
12
12
  export const tool = {
13
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```",
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 pagination: {\n $ref: '#/$defs/pagination'\n }\n },\n required: [ 'items',\n 'pagination'\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 pagination: {\n type: 'object',\n description: 'Pagination response details.',\n properties: {\n next_cursor: {\n type: 'string'\n },\n previous_cursor: {\n type: 'string'\n },\n total_count: {\n type: 'integer'\n }\n },\n required: [ 'next_cursor',\n 'previous_cursor',\n 'total_count'\n ]\n }\n }\n}\n```",
15
15
  inputSchema: {
16
16
  type: 'object',
17
17
  properties: {
18
+ cursor: {
19
+ type: 'string',
20
+ description: 'Pagination cursor returned by a previous request',
21
+ },
22
+ limit: {
23
+ type: 'integer',
24
+ description: 'Maximum number of items to return',
25
+ },
18
26
  jq_filter: {
19
27
  type: 'string',
20
28
  title: 'jq Filter',
@@ -28,8 +36,9 @@ export const tool = {
28
36
  },
29
37
  };
30
38
  export const handler = async (client, args) => {
31
- const { jq_filter } = args;
32
- return asTextContentResult(await maybeFilter(jq_filter, await client.networking.connect.routes.list()));
39
+ const { jq_filter, ...body } = args;
40
+ const response = await client.networking.connect.routes.list(body).asResponse();
41
+ return asTextContentResult(await maybeFilter(jq_filter, await response.json()));
33
42
  };
34
43
  export default { metadata, tool, handler };
35
44
  //# sourceMappingURL=list-connect-networking-routes.mjs.map
@@ -1 +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"}
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,i4DAAi4D;IACn4D,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,kDAAkD;aAChE;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,mCAAmC;aACjD;YACD,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,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IAChF,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAClF,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}