@nirvana-labs/nirvana-mcp 1.22.1 → 1.24.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 (559) hide show
  1. package/README.md +8 -0
  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 +5 -0
  5. package/code-tool-worker.js.map +1 -1
  6. package/code-tool-worker.mjs +5 -0
  7. package/code-tool-worker.mjs.map +1 -1
  8. package/code-tool.js +1 -1
  9. package/code-tool.mjs +1 -1
  10. package/filtering.d.mts +1 -0
  11. package/filtering.d.mts.map +1 -1
  12. package/filtering.d.ts +1 -0
  13. package/filtering.d.ts.map +1 -1
  14. package/filtering.js +4 -0
  15. package/filtering.js.map +1 -1
  16. package/filtering.mjs +3 -0
  17. package/filtering.mjs.map +1 -1
  18. package/headers.d.mts.map +1 -1
  19. package/headers.d.ts.map +1 -1
  20. package/headers.js +1 -1
  21. package/headers.js.map +1 -1
  22. package/headers.mjs +1 -1
  23. package/headers.mjs.map +1 -1
  24. package/http.js +2 -2
  25. package/http.js.map +1 -1
  26. package/http.mjs +2 -2
  27. package/http.mjs.map +1 -1
  28. package/package.json +3 -3
  29. package/server.js +1 -1
  30. package/server.mjs +1 -1
  31. package/src/code-tool-worker.ts +5 -0
  32. package/src/code-tool.ts +1 -1
  33. package/src/filtering.ts +4 -0
  34. package/src/headers.ts +3 -1
  35. package/src/http.ts +2 -2
  36. package/src/server.ts +1 -1
  37. package/src/tools/api-keys/create-api-keys.ts +10 -3
  38. package/src/tools/api-keys/get-api-keys.ts +10 -3
  39. package/src/tools/api-keys/list-api-keys.ts +10 -3
  40. package/src/tools/api-keys/update-api-keys.ts +10 -3
  41. package/src/tools/compute/vms/availability/create-vms-compute-availability.ts +12 -5
  42. package/src/tools/compute/vms/availability/update-vms-compute-availability.ts +12 -5
  43. package/src/tools/compute/vms/create-compute-vms.ts +10 -3
  44. package/src/tools/compute/vms/delete-compute-vms.ts +10 -3
  45. package/src/tools/compute/vms/get-compute-vms.ts +10 -3
  46. package/src/tools/compute/vms/list-compute-vms.ts +10 -3
  47. package/src/tools/compute/vms/os-images/list-vms-compute-os-images.ts +10 -3
  48. package/src/tools/compute/vms/restart-compute-vms.ts +10 -3
  49. package/src/tools/compute/vms/update-compute-vms.ts +10 -3
  50. package/src/tools/compute/vms/volumes/list-vms-compute-volumes.ts +10 -3
  51. package/src/tools/compute/volumes/availability/create-volumes-compute-availability.ts +12 -5
  52. package/src/tools/compute/volumes/availability/update-volumes-compute-availability.ts +12 -5
  53. package/src/tools/compute/volumes/create-compute-volumes.ts +10 -3
  54. package/src/tools/compute/volumes/delete-compute-volumes.ts +10 -3
  55. package/src/tools/compute/volumes/get-compute-volumes.ts +10 -3
  56. package/src/tools/compute/volumes/list-compute-volumes.ts +10 -3
  57. package/src/tools/compute/volumes/update-compute-volumes.ts +12 -5
  58. package/src/tools/index.ts +10 -0
  59. package/src/tools/networking/connect/connections/create-connect-networking-connections.ts +14 -7
  60. package/src/tools/networking/connect/connections/delete-connect-networking-connections.ts +12 -5
  61. package/src/tools/networking/connect/connections/get-connect-networking-connections.ts +12 -5
  62. package/src/tools/networking/connect/connections/list-connect-networking-connections.ts +10 -3
  63. package/src/tools/networking/connect/connections/update-connect-networking-connections.ts +12 -5
  64. package/src/tools/networking/connect/routes/list-connect-networking-routes.ts +10 -3
  65. package/src/tools/networking/firewall-rules/create-networking-firewall-rules.ts +16 -7
  66. package/src/tools/networking/firewall-rules/delete-networking-firewall-rules.ts +12 -5
  67. package/src/tools/networking/firewall-rules/get-networking-firewall-rules.ts +12 -5
  68. package/src/tools/networking/firewall-rules/list-networking-firewall-rules.ts +10 -3
  69. package/src/tools/networking/firewall-rules/update-networking-firewall-rules.ts +16 -7
  70. package/src/tools/networking/vpcs/availability/create-vpcs-networking-availability.ts +12 -5
  71. package/src/tools/networking/vpcs/availability/update-vpcs-networking-availability.ts +12 -5
  72. package/src/tools/networking/vpcs/create-networking-vpcs.ts +10 -3
  73. package/src/tools/networking/vpcs/delete-networking-vpcs.ts +10 -3
  74. package/src/tools/networking/vpcs/get-networking-vpcs.ts +10 -3
  75. package/src/tools/networking/vpcs/list-networking-vpcs.ts +10 -3
  76. package/src/tools/networking/vpcs/update-networking-vpcs.ts +12 -3
  77. package/src/tools/operations/get-operations.ts +10 -3
  78. package/src/tools/operations/list-operations.ts +10 -3
  79. package/src/tools/projects/create-projects.ts +60 -0
  80. package/src/tools/projects/delete-projects.ts +40 -0
  81. package/src/tools/projects/get-projects.ts +54 -0
  82. package/src/tools/projects/list-projects.ts +60 -0
  83. package/src/tools/projects/update-projects.ts +63 -0
  84. package/src/tools/rpc-nodes/dedicated/blockchains/list-dedicated-rpc-nodes-blockchains.ts +10 -3
  85. package/src/tools/rpc-nodes/dedicated/get-rpc-nodes-dedicated.ts +11 -4
  86. package/src/tools/rpc-nodes/dedicated/list-rpc-nodes-dedicated.ts +15 -4
  87. package/src/tools/rpc-nodes/flex/blockchains/list-flex-rpc-nodes-blockchains.ts +10 -3
  88. package/src/tools/rpc-nodes/flex/create-rpc-nodes-flex.ts +16 -5
  89. package/src/tools/rpc-nodes/flex/get-rpc-nodes-flex.ts +11 -4
  90. package/src/tools/rpc-nodes/flex/list-rpc-nodes-flex.ts +15 -4
  91. package/src/tools/rpc-nodes/flex/update-rpc-nodes-flex.ts +13 -4
  92. package/src/tools/types.ts +12 -0
  93. package/src/tools/user/get-user.ts +10 -3
  94. package/src/tools/vektor/balances/list-historical-vektor-balances.ts +12 -3
  95. package/src/tools/vektor/balances/list-vektor-balances.ts +10 -3
  96. package/src/tools/vektor/borrow/accounts/list-borrow-vektor-accounts.ts +10 -3
  97. package/src/tools/vektor/borrow/accounts/list-historical-borrow-vektor-accounts.ts +12 -5
  98. package/src/tools/vektor/bridge/quotes/list-bridge-vektor-quotes.ts +10 -3
  99. package/src/tools/vektor/buy/quotes/list-buy-vektor-quotes.ts +10 -3
  100. package/src/tools/vektor/lock/markets/list-lock-vektor-markets.ts +10 -3
  101. package/src/tools/vektor/prices/list-historical-vektor-prices.ts +10 -3
  102. package/src/tools/vektor/prices/list-vektor-prices.ts +10 -3
  103. package/src/tools/vektor/registry/assets/list-registry-vektor-assets.ts +10 -3
  104. package/src/tools/vektor/registry/blockchains/list-registry-vektor-blockchains.ts +12 -5
  105. package/src/tools/vektor/registry/borrow-markets/list-registry-vektor-borrow-markets.ts +12 -5
  106. package/src/tools/vektor/registry/errors/list-registry-vektor-errors.ts +10 -3
  107. package/src/tools/vektor/registry/lend-markets/list-registry-vektor-lend-markets.ts +12 -5
  108. package/src/tools/vektor/registry/lp-pools/list-registry-vektor-lp-pools.ts +10 -3
  109. package/src/tools/vektor/registry/venues/list-registry-vektor-venues.ts +10 -3
  110. package/tools/api-keys/create-api-keys.d.mts.map +1 -1
  111. package/tools/api-keys/create-api-keys.d.ts.map +1 -1
  112. package/tools/api-keys/create-api-keys.js +9 -1
  113. package/tools/api-keys/create-api-keys.js.map +1 -1
  114. package/tools/api-keys/create-api-keys.mjs +11 -3
  115. package/tools/api-keys/create-api-keys.mjs.map +1 -1
  116. package/tools/api-keys/get-api-keys.d.mts.map +1 -1
  117. package/tools/api-keys/get-api-keys.d.ts.map +1 -1
  118. package/tools/api-keys/get-api-keys.js +9 -1
  119. package/tools/api-keys/get-api-keys.js.map +1 -1
  120. package/tools/api-keys/get-api-keys.mjs +11 -3
  121. package/tools/api-keys/get-api-keys.mjs.map +1 -1
  122. package/tools/api-keys/list-api-keys.d.mts.map +1 -1
  123. package/tools/api-keys/list-api-keys.d.ts.map +1 -1
  124. package/tools/api-keys/list-api-keys.js +9 -1
  125. package/tools/api-keys/list-api-keys.js.map +1 -1
  126. package/tools/api-keys/list-api-keys.mjs +11 -3
  127. package/tools/api-keys/list-api-keys.mjs.map +1 -1
  128. package/tools/api-keys/update-api-keys.d.mts.map +1 -1
  129. package/tools/api-keys/update-api-keys.d.ts.map +1 -1
  130. package/tools/api-keys/update-api-keys.js +9 -1
  131. package/tools/api-keys/update-api-keys.js.map +1 -1
  132. package/tools/api-keys/update-api-keys.mjs +11 -3
  133. package/tools/api-keys/update-api-keys.mjs.map +1 -1
  134. package/tools/compute/vms/availability/create-vms-compute-availability.d.mts.map +1 -1
  135. package/tools/compute/vms/availability/create-vms-compute-availability.d.ts.map +1 -1
  136. package/tools/compute/vms/availability/create-vms-compute-availability.js +9 -1
  137. package/tools/compute/vms/availability/create-vms-compute-availability.js.map +1 -1
  138. package/tools/compute/vms/availability/create-vms-compute-availability.mjs +11 -3
  139. package/tools/compute/vms/availability/create-vms-compute-availability.mjs.map +1 -1
  140. package/tools/compute/vms/availability/update-vms-compute-availability.d.mts.map +1 -1
  141. package/tools/compute/vms/availability/update-vms-compute-availability.d.ts.map +1 -1
  142. package/tools/compute/vms/availability/update-vms-compute-availability.js +9 -1
  143. package/tools/compute/vms/availability/update-vms-compute-availability.js.map +1 -1
  144. package/tools/compute/vms/availability/update-vms-compute-availability.mjs +11 -3
  145. package/tools/compute/vms/availability/update-vms-compute-availability.mjs.map +1 -1
  146. package/tools/compute/vms/create-compute-vms.d.mts.map +1 -1
  147. package/tools/compute/vms/create-compute-vms.d.ts.map +1 -1
  148. package/tools/compute/vms/create-compute-vms.js +9 -1
  149. package/tools/compute/vms/create-compute-vms.js.map +1 -1
  150. package/tools/compute/vms/create-compute-vms.mjs +11 -3
  151. package/tools/compute/vms/create-compute-vms.mjs.map +1 -1
  152. package/tools/compute/vms/delete-compute-vms.d.mts.map +1 -1
  153. package/tools/compute/vms/delete-compute-vms.d.ts.map +1 -1
  154. package/tools/compute/vms/delete-compute-vms.js +9 -1
  155. package/tools/compute/vms/delete-compute-vms.js.map +1 -1
  156. package/tools/compute/vms/delete-compute-vms.mjs +11 -3
  157. package/tools/compute/vms/delete-compute-vms.mjs.map +1 -1
  158. package/tools/compute/vms/get-compute-vms.d.mts.map +1 -1
  159. package/tools/compute/vms/get-compute-vms.d.ts.map +1 -1
  160. package/tools/compute/vms/get-compute-vms.js +9 -1
  161. package/tools/compute/vms/get-compute-vms.js.map +1 -1
  162. package/tools/compute/vms/get-compute-vms.mjs +11 -3
  163. package/tools/compute/vms/get-compute-vms.mjs.map +1 -1
  164. package/tools/compute/vms/list-compute-vms.d.mts.map +1 -1
  165. package/tools/compute/vms/list-compute-vms.d.ts.map +1 -1
  166. package/tools/compute/vms/list-compute-vms.js +9 -1
  167. package/tools/compute/vms/list-compute-vms.js.map +1 -1
  168. package/tools/compute/vms/list-compute-vms.mjs +11 -3
  169. package/tools/compute/vms/list-compute-vms.mjs.map +1 -1
  170. package/tools/compute/vms/os-images/list-vms-compute-os-images.d.mts.map +1 -1
  171. package/tools/compute/vms/os-images/list-vms-compute-os-images.d.ts.map +1 -1
  172. package/tools/compute/vms/os-images/list-vms-compute-os-images.js +9 -1
  173. package/tools/compute/vms/os-images/list-vms-compute-os-images.js.map +1 -1
  174. package/tools/compute/vms/os-images/list-vms-compute-os-images.mjs +11 -3
  175. package/tools/compute/vms/os-images/list-vms-compute-os-images.mjs.map +1 -1
  176. package/tools/compute/vms/restart-compute-vms.d.mts.map +1 -1
  177. package/tools/compute/vms/restart-compute-vms.d.ts.map +1 -1
  178. package/tools/compute/vms/restart-compute-vms.js +9 -1
  179. package/tools/compute/vms/restart-compute-vms.js.map +1 -1
  180. package/tools/compute/vms/restart-compute-vms.mjs +11 -3
  181. package/tools/compute/vms/restart-compute-vms.mjs.map +1 -1
  182. package/tools/compute/vms/update-compute-vms.d.mts.map +1 -1
  183. package/tools/compute/vms/update-compute-vms.d.ts.map +1 -1
  184. package/tools/compute/vms/update-compute-vms.js +9 -1
  185. package/tools/compute/vms/update-compute-vms.js.map +1 -1
  186. package/tools/compute/vms/update-compute-vms.mjs +11 -3
  187. package/tools/compute/vms/update-compute-vms.mjs.map +1 -1
  188. package/tools/compute/vms/volumes/list-vms-compute-volumes.d.mts.map +1 -1
  189. package/tools/compute/vms/volumes/list-vms-compute-volumes.d.ts.map +1 -1
  190. package/tools/compute/vms/volumes/list-vms-compute-volumes.js +9 -1
  191. package/tools/compute/vms/volumes/list-vms-compute-volumes.js.map +1 -1
  192. package/tools/compute/vms/volumes/list-vms-compute-volumes.mjs +11 -3
  193. package/tools/compute/vms/volumes/list-vms-compute-volumes.mjs.map +1 -1
  194. package/tools/compute/volumes/availability/create-volumes-compute-availability.d.mts.map +1 -1
  195. package/tools/compute/volumes/availability/create-volumes-compute-availability.d.ts.map +1 -1
  196. package/tools/compute/volumes/availability/create-volumes-compute-availability.js +9 -1
  197. package/tools/compute/volumes/availability/create-volumes-compute-availability.js.map +1 -1
  198. package/tools/compute/volumes/availability/create-volumes-compute-availability.mjs +11 -3
  199. package/tools/compute/volumes/availability/create-volumes-compute-availability.mjs.map +1 -1
  200. package/tools/compute/volumes/availability/update-volumes-compute-availability.d.mts.map +1 -1
  201. package/tools/compute/volumes/availability/update-volumes-compute-availability.d.ts.map +1 -1
  202. package/tools/compute/volumes/availability/update-volumes-compute-availability.js +9 -1
  203. package/tools/compute/volumes/availability/update-volumes-compute-availability.js.map +1 -1
  204. package/tools/compute/volumes/availability/update-volumes-compute-availability.mjs +11 -3
  205. package/tools/compute/volumes/availability/update-volumes-compute-availability.mjs.map +1 -1
  206. package/tools/compute/volumes/create-compute-volumes.d.mts.map +1 -1
  207. package/tools/compute/volumes/create-compute-volumes.d.ts.map +1 -1
  208. package/tools/compute/volumes/create-compute-volumes.js +9 -1
  209. package/tools/compute/volumes/create-compute-volumes.js.map +1 -1
  210. package/tools/compute/volumes/create-compute-volumes.mjs +11 -3
  211. package/tools/compute/volumes/create-compute-volumes.mjs.map +1 -1
  212. package/tools/compute/volumes/delete-compute-volumes.d.mts.map +1 -1
  213. package/tools/compute/volumes/delete-compute-volumes.d.ts.map +1 -1
  214. package/tools/compute/volumes/delete-compute-volumes.js +9 -1
  215. package/tools/compute/volumes/delete-compute-volumes.js.map +1 -1
  216. package/tools/compute/volumes/delete-compute-volumes.mjs +11 -3
  217. package/tools/compute/volumes/delete-compute-volumes.mjs.map +1 -1
  218. package/tools/compute/volumes/get-compute-volumes.d.mts.map +1 -1
  219. package/tools/compute/volumes/get-compute-volumes.d.ts.map +1 -1
  220. package/tools/compute/volumes/get-compute-volumes.js +9 -1
  221. package/tools/compute/volumes/get-compute-volumes.js.map +1 -1
  222. package/tools/compute/volumes/get-compute-volumes.mjs +11 -3
  223. package/tools/compute/volumes/get-compute-volumes.mjs.map +1 -1
  224. package/tools/compute/volumes/list-compute-volumes.d.mts.map +1 -1
  225. package/tools/compute/volumes/list-compute-volumes.d.ts.map +1 -1
  226. package/tools/compute/volumes/list-compute-volumes.js +9 -1
  227. package/tools/compute/volumes/list-compute-volumes.js.map +1 -1
  228. package/tools/compute/volumes/list-compute-volumes.mjs +11 -3
  229. package/tools/compute/volumes/list-compute-volumes.mjs.map +1 -1
  230. package/tools/compute/volumes/update-compute-volumes.d.mts.map +1 -1
  231. package/tools/compute/volumes/update-compute-volumes.d.ts.map +1 -1
  232. package/tools/compute/volumes/update-compute-volumes.js +9 -1
  233. package/tools/compute/volumes/update-compute-volumes.js.map +1 -1
  234. package/tools/compute/volumes/update-compute-volumes.mjs +11 -3
  235. package/tools/compute/volumes/update-compute-volumes.mjs.map +1 -1
  236. package/tools/index.d.mts.map +1 -1
  237. package/tools/index.d.ts.map +1 -1
  238. package/tools/index.js +10 -0
  239. package/tools/index.js.map +1 -1
  240. package/tools/index.mjs +10 -0
  241. package/tools/index.mjs.map +1 -1
  242. package/tools/networking/connect/connections/create-connect-networking-connections.d.mts.map +1 -1
  243. package/tools/networking/connect/connections/create-connect-networking-connections.d.ts.map +1 -1
  244. package/tools/networking/connect/connections/create-connect-networking-connections.js +11 -3
  245. package/tools/networking/connect/connections/create-connect-networking-connections.js.map +1 -1
  246. package/tools/networking/connect/connections/create-connect-networking-connections.mjs +13 -5
  247. package/tools/networking/connect/connections/create-connect-networking-connections.mjs.map +1 -1
  248. package/tools/networking/connect/connections/delete-connect-networking-connections.d.mts.map +1 -1
  249. package/tools/networking/connect/connections/delete-connect-networking-connections.d.ts.map +1 -1
  250. package/tools/networking/connect/connections/delete-connect-networking-connections.js +9 -1
  251. package/tools/networking/connect/connections/delete-connect-networking-connections.js.map +1 -1
  252. package/tools/networking/connect/connections/delete-connect-networking-connections.mjs +11 -3
  253. package/tools/networking/connect/connections/delete-connect-networking-connections.mjs.map +1 -1
  254. package/tools/networking/connect/connections/get-connect-networking-connections.d.mts.map +1 -1
  255. package/tools/networking/connect/connections/get-connect-networking-connections.d.ts.map +1 -1
  256. package/tools/networking/connect/connections/get-connect-networking-connections.js +9 -1
  257. package/tools/networking/connect/connections/get-connect-networking-connections.js.map +1 -1
  258. package/tools/networking/connect/connections/get-connect-networking-connections.mjs +11 -3
  259. package/tools/networking/connect/connections/get-connect-networking-connections.mjs.map +1 -1
  260. package/tools/networking/connect/connections/list-connect-networking-connections.d.mts.map +1 -1
  261. package/tools/networking/connect/connections/list-connect-networking-connections.d.ts.map +1 -1
  262. package/tools/networking/connect/connections/list-connect-networking-connections.js +9 -1
  263. package/tools/networking/connect/connections/list-connect-networking-connections.js.map +1 -1
  264. package/tools/networking/connect/connections/list-connect-networking-connections.mjs +11 -3
  265. package/tools/networking/connect/connections/list-connect-networking-connections.mjs.map +1 -1
  266. package/tools/networking/connect/connections/update-connect-networking-connections.d.mts.map +1 -1
  267. package/tools/networking/connect/connections/update-connect-networking-connections.d.ts.map +1 -1
  268. package/tools/networking/connect/connections/update-connect-networking-connections.js +9 -1
  269. package/tools/networking/connect/connections/update-connect-networking-connections.js.map +1 -1
  270. package/tools/networking/connect/connections/update-connect-networking-connections.mjs +11 -3
  271. package/tools/networking/connect/connections/update-connect-networking-connections.mjs.map +1 -1
  272. package/tools/networking/connect/routes/list-connect-networking-routes.d.mts.map +1 -1
  273. package/tools/networking/connect/routes/list-connect-networking-routes.d.ts.map +1 -1
  274. package/tools/networking/connect/routes/list-connect-networking-routes.js +9 -1
  275. package/tools/networking/connect/routes/list-connect-networking-routes.js.map +1 -1
  276. package/tools/networking/connect/routes/list-connect-networking-routes.mjs +11 -3
  277. package/tools/networking/connect/routes/list-connect-networking-routes.mjs.map +1 -1
  278. package/tools/networking/firewall-rules/create-networking-firewall-rules.d.mts.map +1 -1
  279. package/tools/networking/firewall-rules/create-networking-firewall-rules.d.ts.map +1 -1
  280. package/tools/networking/firewall-rules/create-networking-firewall-rules.js +11 -3
  281. package/tools/networking/firewall-rules/create-networking-firewall-rules.js.map +1 -1
  282. package/tools/networking/firewall-rules/create-networking-firewall-rules.mjs +13 -5
  283. package/tools/networking/firewall-rules/create-networking-firewall-rules.mjs.map +1 -1
  284. package/tools/networking/firewall-rules/delete-networking-firewall-rules.d.mts.map +1 -1
  285. package/tools/networking/firewall-rules/delete-networking-firewall-rules.d.ts.map +1 -1
  286. package/tools/networking/firewall-rules/delete-networking-firewall-rules.js +9 -1
  287. package/tools/networking/firewall-rules/delete-networking-firewall-rules.js.map +1 -1
  288. package/tools/networking/firewall-rules/delete-networking-firewall-rules.mjs +11 -3
  289. package/tools/networking/firewall-rules/delete-networking-firewall-rules.mjs.map +1 -1
  290. package/tools/networking/firewall-rules/get-networking-firewall-rules.d.mts.map +1 -1
  291. package/tools/networking/firewall-rules/get-networking-firewall-rules.d.ts.map +1 -1
  292. package/tools/networking/firewall-rules/get-networking-firewall-rules.js +9 -1
  293. package/tools/networking/firewall-rules/get-networking-firewall-rules.js.map +1 -1
  294. package/tools/networking/firewall-rules/get-networking-firewall-rules.mjs +11 -3
  295. package/tools/networking/firewall-rules/get-networking-firewall-rules.mjs.map +1 -1
  296. package/tools/networking/firewall-rules/list-networking-firewall-rules.d.mts.map +1 -1
  297. package/tools/networking/firewall-rules/list-networking-firewall-rules.d.ts.map +1 -1
  298. package/tools/networking/firewall-rules/list-networking-firewall-rules.js +9 -1
  299. package/tools/networking/firewall-rules/list-networking-firewall-rules.js.map +1 -1
  300. package/tools/networking/firewall-rules/list-networking-firewall-rules.mjs +11 -3
  301. package/tools/networking/firewall-rules/list-networking-firewall-rules.mjs.map +1 -1
  302. package/tools/networking/firewall-rules/update-networking-firewall-rules.d.mts.map +1 -1
  303. package/tools/networking/firewall-rules/update-networking-firewall-rules.d.ts.map +1 -1
  304. package/tools/networking/firewall-rules/update-networking-firewall-rules.js +11 -3
  305. package/tools/networking/firewall-rules/update-networking-firewall-rules.js.map +1 -1
  306. package/tools/networking/firewall-rules/update-networking-firewall-rules.mjs +13 -5
  307. package/tools/networking/firewall-rules/update-networking-firewall-rules.mjs.map +1 -1
  308. package/tools/networking/vpcs/availability/create-vpcs-networking-availability.d.mts.map +1 -1
  309. package/tools/networking/vpcs/availability/create-vpcs-networking-availability.d.ts.map +1 -1
  310. package/tools/networking/vpcs/availability/create-vpcs-networking-availability.js +9 -1
  311. package/tools/networking/vpcs/availability/create-vpcs-networking-availability.js.map +1 -1
  312. package/tools/networking/vpcs/availability/create-vpcs-networking-availability.mjs +11 -3
  313. package/tools/networking/vpcs/availability/create-vpcs-networking-availability.mjs.map +1 -1
  314. package/tools/networking/vpcs/availability/update-vpcs-networking-availability.d.mts.map +1 -1
  315. package/tools/networking/vpcs/availability/update-vpcs-networking-availability.d.ts.map +1 -1
  316. package/tools/networking/vpcs/availability/update-vpcs-networking-availability.js +9 -1
  317. package/tools/networking/vpcs/availability/update-vpcs-networking-availability.js.map +1 -1
  318. package/tools/networking/vpcs/availability/update-vpcs-networking-availability.mjs +11 -3
  319. package/tools/networking/vpcs/availability/update-vpcs-networking-availability.mjs.map +1 -1
  320. package/tools/networking/vpcs/create-networking-vpcs.d.mts.map +1 -1
  321. package/tools/networking/vpcs/create-networking-vpcs.d.ts.map +1 -1
  322. package/tools/networking/vpcs/create-networking-vpcs.js +9 -1
  323. package/tools/networking/vpcs/create-networking-vpcs.js.map +1 -1
  324. package/tools/networking/vpcs/create-networking-vpcs.mjs +11 -3
  325. package/tools/networking/vpcs/create-networking-vpcs.mjs.map +1 -1
  326. package/tools/networking/vpcs/delete-networking-vpcs.d.mts.map +1 -1
  327. package/tools/networking/vpcs/delete-networking-vpcs.d.ts.map +1 -1
  328. package/tools/networking/vpcs/delete-networking-vpcs.js +9 -1
  329. package/tools/networking/vpcs/delete-networking-vpcs.js.map +1 -1
  330. package/tools/networking/vpcs/delete-networking-vpcs.mjs +11 -3
  331. package/tools/networking/vpcs/delete-networking-vpcs.mjs.map +1 -1
  332. package/tools/networking/vpcs/get-networking-vpcs.d.mts.map +1 -1
  333. package/tools/networking/vpcs/get-networking-vpcs.d.ts.map +1 -1
  334. package/tools/networking/vpcs/get-networking-vpcs.js +9 -1
  335. package/tools/networking/vpcs/get-networking-vpcs.js.map +1 -1
  336. package/tools/networking/vpcs/get-networking-vpcs.mjs +11 -3
  337. package/tools/networking/vpcs/get-networking-vpcs.mjs.map +1 -1
  338. package/tools/networking/vpcs/list-networking-vpcs.d.mts.map +1 -1
  339. package/tools/networking/vpcs/list-networking-vpcs.d.ts.map +1 -1
  340. package/tools/networking/vpcs/list-networking-vpcs.js +9 -1
  341. package/tools/networking/vpcs/list-networking-vpcs.js.map +1 -1
  342. package/tools/networking/vpcs/list-networking-vpcs.mjs +11 -3
  343. package/tools/networking/vpcs/list-networking-vpcs.mjs.map +1 -1
  344. package/tools/networking/vpcs/update-networking-vpcs.d.mts.map +1 -1
  345. package/tools/networking/vpcs/update-networking-vpcs.d.ts.map +1 -1
  346. package/tools/networking/vpcs/update-networking-vpcs.js +9 -1
  347. package/tools/networking/vpcs/update-networking-vpcs.js.map +1 -1
  348. package/tools/networking/vpcs/update-networking-vpcs.mjs +11 -3
  349. package/tools/networking/vpcs/update-networking-vpcs.mjs.map +1 -1
  350. package/tools/operations/get-operations.d.mts.map +1 -1
  351. package/tools/operations/get-operations.d.ts.map +1 -1
  352. package/tools/operations/get-operations.js +9 -1
  353. package/tools/operations/get-operations.js.map +1 -1
  354. package/tools/operations/get-operations.mjs +11 -3
  355. package/tools/operations/get-operations.mjs.map +1 -1
  356. package/tools/operations/list-operations.d.mts.map +1 -1
  357. package/tools/operations/list-operations.d.ts.map +1 -1
  358. package/tools/operations/list-operations.js +9 -1
  359. package/tools/operations/list-operations.js.map +1 -1
  360. package/tools/operations/list-operations.mjs +11 -3
  361. package/tools/operations/list-operations.mjs.map +1 -1
  362. package/tools/projects/create-projects.d.mts +51 -0
  363. package/tools/projects/create-projects.d.mts.map +1 -0
  364. package/tools/projects/create-projects.d.ts +51 -0
  365. package/tools/projects/create-projects.d.ts.map +1 -0
  366. package/tools/projects/create-projects.js +56 -0
  367. package/tools/projects/create-projects.js.map +1 -0
  368. package/tools/projects/create-projects.mjs +52 -0
  369. package/tools/projects/create-projects.mjs.map +1 -0
  370. package/tools/projects/delete-projects.d.mts +51 -0
  371. package/tools/projects/delete-projects.d.mts.map +1 -0
  372. package/tools/projects/delete-projects.d.ts +51 -0
  373. package/tools/projects/delete-projects.d.ts.map +1 -0
  374. package/tools/projects/delete-projects.js +37 -0
  375. package/tools/projects/delete-projects.js.map +1 -0
  376. package/tools/projects/delete-projects.mjs +33 -0
  377. package/tools/projects/delete-projects.mjs.map +1 -0
  378. package/tools/projects/get-projects.d.mts +51 -0
  379. package/tools/projects/get-projects.d.mts.map +1 -0
  380. package/tools/projects/get-projects.d.ts +51 -0
  381. package/tools/projects/get-projects.d.ts.map +1 -0
  382. package/tools/projects/get-projects.js +50 -0
  383. package/tools/projects/get-projects.js.map +1 -0
  384. package/tools/projects/get-projects.mjs +46 -0
  385. package/tools/projects/get-projects.mjs.map +1 -0
  386. package/tools/projects/list-projects.d.mts +51 -0
  387. package/tools/projects/list-projects.d.mts.map +1 -0
  388. package/tools/projects/list-projects.d.ts +51 -0
  389. package/tools/projects/list-projects.d.ts.map +1 -0
  390. package/tools/projects/list-projects.js +56 -0
  391. package/tools/projects/list-projects.js.map +1 -0
  392. package/tools/projects/list-projects.mjs +52 -0
  393. package/tools/projects/list-projects.mjs.map +1 -0
  394. package/tools/projects/update-projects.d.mts +51 -0
  395. package/tools/projects/update-projects.d.mts.map +1 -0
  396. package/tools/projects/update-projects.d.ts +51 -0
  397. package/tools/projects/update-projects.d.ts.map +1 -0
  398. package/tools/projects/update-projects.js +59 -0
  399. package/tools/projects/update-projects.js.map +1 -0
  400. package/tools/projects/update-projects.mjs +55 -0
  401. package/tools/projects/update-projects.mjs.map +1 -0
  402. package/tools/rpc-nodes/dedicated/blockchains/list-dedicated-rpc-nodes-blockchains.d.mts.map +1 -1
  403. package/tools/rpc-nodes/dedicated/blockchains/list-dedicated-rpc-nodes-blockchains.d.ts.map +1 -1
  404. package/tools/rpc-nodes/dedicated/blockchains/list-dedicated-rpc-nodes-blockchains.js +9 -1
  405. package/tools/rpc-nodes/dedicated/blockchains/list-dedicated-rpc-nodes-blockchains.js.map +1 -1
  406. package/tools/rpc-nodes/dedicated/blockchains/list-dedicated-rpc-nodes-blockchains.mjs +11 -3
  407. package/tools/rpc-nodes/dedicated/blockchains/list-dedicated-rpc-nodes-blockchains.mjs.map +1 -1
  408. package/tools/rpc-nodes/dedicated/get-rpc-nodes-dedicated.d.mts.map +1 -1
  409. package/tools/rpc-nodes/dedicated/get-rpc-nodes-dedicated.d.ts.map +1 -1
  410. package/tools/rpc-nodes/dedicated/get-rpc-nodes-dedicated.js +10 -2
  411. package/tools/rpc-nodes/dedicated/get-rpc-nodes-dedicated.js.map +1 -1
  412. package/tools/rpc-nodes/dedicated/get-rpc-nodes-dedicated.mjs +12 -4
  413. package/tools/rpc-nodes/dedicated/get-rpc-nodes-dedicated.mjs.map +1 -1
  414. package/tools/rpc-nodes/dedicated/list-rpc-nodes-dedicated.d.mts.map +1 -1
  415. package/tools/rpc-nodes/dedicated/list-rpc-nodes-dedicated.d.ts.map +1 -1
  416. package/tools/rpc-nodes/dedicated/list-rpc-nodes-dedicated.js +14 -2
  417. package/tools/rpc-nodes/dedicated/list-rpc-nodes-dedicated.js.map +1 -1
  418. package/tools/rpc-nodes/dedicated/list-rpc-nodes-dedicated.mjs +16 -4
  419. package/tools/rpc-nodes/dedicated/list-rpc-nodes-dedicated.mjs.map +1 -1
  420. package/tools/rpc-nodes/flex/blockchains/list-flex-rpc-nodes-blockchains.d.mts.map +1 -1
  421. package/tools/rpc-nodes/flex/blockchains/list-flex-rpc-nodes-blockchains.d.ts.map +1 -1
  422. package/tools/rpc-nodes/flex/blockchains/list-flex-rpc-nodes-blockchains.js +9 -1
  423. package/tools/rpc-nodes/flex/blockchains/list-flex-rpc-nodes-blockchains.js.map +1 -1
  424. package/tools/rpc-nodes/flex/blockchains/list-flex-rpc-nodes-blockchains.mjs +11 -3
  425. package/tools/rpc-nodes/flex/blockchains/list-flex-rpc-nodes-blockchains.mjs.map +1 -1
  426. package/tools/rpc-nodes/flex/create-rpc-nodes-flex.d.mts.map +1 -1
  427. package/tools/rpc-nodes/flex/create-rpc-nodes-flex.d.ts.map +1 -1
  428. package/tools/rpc-nodes/flex/create-rpc-nodes-flex.js +15 -3
  429. package/tools/rpc-nodes/flex/create-rpc-nodes-flex.js.map +1 -1
  430. package/tools/rpc-nodes/flex/create-rpc-nodes-flex.mjs +17 -5
  431. package/tools/rpc-nodes/flex/create-rpc-nodes-flex.mjs.map +1 -1
  432. package/tools/rpc-nodes/flex/get-rpc-nodes-flex.d.mts.map +1 -1
  433. package/tools/rpc-nodes/flex/get-rpc-nodes-flex.d.ts.map +1 -1
  434. package/tools/rpc-nodes/flex/get-rpc-nodes-flex.js +10 -2
  435. package/tools/rpc-nodes/flex/get-rpc-nodes-flex.js.map +1 -1
  436. package/tools/rpc-nodes/flex/get-rpc-nodes-flex.mjs +12 -4
  437. package/tools/rpc-nodes/flex/get-rpc-nodes-flex.mjs.map +1 -1
  438. package/tools/rpc-nodes/flex/list-rpc-nodes-flex.d.mts.map +1 -1
  439. package/tools/rpc-nodes/flex/list-rpc-nodes-flex.d.ts.map +1 -1
  440. package/tools/rpc-nodes/flex/list-rpc-nodes-flex.js +14 -2
  441. package/tools/rpc-nodes/flex/list-rpc-nodes-flex.js.map +1 -1
  442. package/tools/rpc-nodes/flex/list-rpc-nodes-flex.mjs +16 -4
  443. package/tools/rpc-nodes/flex/list-rpc-nodes-flex.mjs.map +1 -1
  444. package/tools/rpc-nodes/flex/update-rpc-nodes-flex.d.mts.map +1 -1
  445. package/tools/rpc-nodes/flex/update-rpc-nodes-flex.d.ts.map +1 -1
  446. package/tools/rpc-nodes/flex/update-rpc-nodes-flex.js +10 -2
  447. package/tools/rpc-nodes/flex/update-rpc-nodes-flex.js.map +1 -1
  448. package/tools/rpc-nodes/flex/update-rpc-nodes-flex.mjs +12 -4
  449. package/tools/rpc-nodes/flex/update-rpc-nodes-flex.mjs.map +1 -1
  450. package/tools/types.d.mts +1 -0
  451. package/tools/types.d.mts.map +1 -1
  452. package/tools/types.d.ts +1 -0
  453. package/tools/types.d.ts.map +1 -1
  454. package/tools/types.js +12 -0
  455. package/tools/types.js.map +1 -1
  456. package/tools/types.mjs +11 -0
  457. package/tools/types.mjs.map +1 -1
  458. package/tools/user/get-user.d.mts.map +1 -1
  459. package/tools/user/get-user.d.ts.map +1 -1
  460. package/tools/user/get-user.js +9 -1
  461. package/tools/user/get-user.js.map +1 -1
  462. package/tools/user/get-user.mjs +11 -3
  463. package/tools/user/get-user.mjs.map +1 -1
  464. package/tools/vektor/balances/list-historical-vektor-balances.d.mts.map +1 -1
  465. package/tools/vektor/balances/list-historical-vektor-balances.d.ts.map +1 -1
  466. package/tools/vektor/balances/list-historical-vektor-balances.js +9 -1
  467. package/tools/vektor/balances/list-historical-vektor-balances.js.map +1 -1
  468. package/tools/vektor/balances/list-historical-vektor-balances.mjs +11 -3
  469. package/tools/vektor/balances/list-historical-vektor-balances.mjs.map +1 -1
  470. package/tools/vektor/balances/list-vektor-balances.d.mts.map +1 -1
  471. package/tools/vektor/balances/list-vektor-balances.d.ts.map +1 -1
  472. package/tools/vektor/balances/list-vektor-balances.js +9 -1
  473. package/tools/vektor/balances/list-vektor-balances.js.map +1 -1
  474. package/tools/vektor/balances/list-vektor-balances.mjs +11 -3
  475. package/tools/vektor/balances/list-vektor-balances.mjs.map +1 -1
  476. package/tools/vektor/borrow/accounts/list-borrow-vektor-accounts.d.mts.map +1 -1
  477. package/tools/vektor/borrow/accounts/list-borrow-vektor-accounts.d.ts.map +1 -1
  478. package/tools/vektor/borrow/accounts/list-borrow-vektor-accounts.js +9 -1
  479. package/tools/vektor/borrow/accounts/list-borrow-vektor-accounts.js.map +1 -1
  480. package/tools/vektor/borrow/accounts/list-borrow-vektor-accounts.mjs +11 -3
  481. package/tools/vektor/borrow/accounts/list-borrow-vektor-accounts.mjs.map +1 -1
  482. package/tools/vektor/borrow/accounts/list-historical-borrow-vektor-accounts.d.mts.map +1 -1
  483. package/tools/vektor/borrow/accounts/list-historical-borrow-vektor-accounts.d.ts.map +1 -1
  484. package/tools/vektor/borrow/accounts/list-historical-borrow-vektor-accounts.js +9 -1
  485. package/tools/vektor/borrow/accounts/list-historical-borrow-vektor-accounts.js.map +1 -1
  486. package/tools/vektor/borrow/accounts/list-historical-borrow-vektor-accounts.mjs +11 -3
  487. package/tools/vektor/borrow/accounts/list-historical-borrow-vektor-accounts.mjs.map +1 -1
  488. package/tools/vektor/bridge/quotes/list-bridge-vektor-quotes.d.mts.map +1 -1
  489. package/tools/vektor/bridge/quotes/list-bridge-vektor-quotes.d.ts.map +1 -1
  490. package/tools/vektor/bridge/quotes/list-bridge-vektor-quotes.js +9 -1
  491. package/tools/vektor/bridge/quotes/list-bridge-vektor-quotes.js.map +1 -1
  492. package/tools/vektor/bridge/quotes/list-bridge-vektor-quotes.mjs +11 -3
  493. package/tools/vektor/bridge/quotes/list-bridge-vektor-quotes.mjs.map +1 -1
  494. package/tools/vektor/buy/quotes/list-buy-vektor-quotes.d.mts.map +1 -1
  495. package/tools/vektor/buy/quotes/list-buy-vektor-quotes.d.ts.map +1 -1
  496. package/tools/vektor/buy/quotes/list-buy-vektor-quotes.js +9 -1
  497. package/tools/vektor/buy/quotes/list-buy-vektor-quotes.js.map +1 -1
  498. package/tools/vektor/buy/quotes/list-buy-vektor-quotes.mjs +11 -3
  499. package/tools/vektor/buy/quotes/list-buy-vektor-quotes.mjs.map +1 -1
  500. package/tools/vektor/lock/markets/list-lock-vektor-markets.d.mts.map +1 -1
  501. package/tools/vektor/lock/markets/list-lock-vektor-markets.d.ts.map +1 -1
  502. package/tools/vektor/lock/markets/list-lock-vektor-markets.js +9 -1
  503. package/tools/vektor/lock/markets/list-lock-vektor-markets.js.map +1 -1
  504. package/tools/vektor/lock/markets/list-lock-vektor-markets.mjs +11 -3
  505. package/tools/vektor/lock/markets/list-lock-vektor-markets.mjs.map +1 -1
  506. package/tools/vektor/prices/list-historical-vektor-prices.d.mts.map +1 -1
  507. package/tools/vektor/prices/list-historical-vektor-prices.d.ts.map +1 -1
  508. package/tools/vektor/prices/list-historical-vektor-prices.js +9 -1
  509. package/tools/vektor/prices/list-historical-vektor-prices.js.map +1 -1
  510. package/tools/vektor/prices/list-historical-vektor-prices.mjs +11 -3
  511. package/tools/vektor/prices/list-historical-vektor-prices.mjs.map +1 -1
  512. package/tools/vektor/prices/list-vektor-prices.d.mts.map +1 -1
  513. package/tools/vektor/prices/list-vektor-prices.d.ts.map +1 -1
  514. package/tools/vektor/prices/list-vektor-prices.js +9 -1
  515. package/tools/vektor/prices/list-vektor-prices.js.map +1 -1
  516. package/tools/vektor/prices/list-vektor-prices.mjs +11 -3
  517. package/tools/vektor/prices/list-vektor-prices.mjs.map +1 -1
  518. package/tools/vektor/registry/assets/list-registry-vektor-assets.d.mts.map +1 -1
  519. package/tools/vektor/registry/assets/list-registry-vektor-assets.d.ts.map +1 -1
  520. package/tools/vektor/registry/assets/list-registry-vektor-assets.js +9 -1
  521. package/tools/vektor/registry/assets/list-registry-vektor-assets.js.map +1 -1
  522. package/tools/vektor/registry/assets/list-registry-vektor-assets.mjs +11 -3
  523. package/tools/vektor/registry/assets/list-registry-vektor-assets.mjs.map +1 -1
  524. package/tools/vektor/registry/blockchains/list-registry-vektor-blockchains.d.mts.map +1 -1
  525. package/tools/vektor/registry/blockchains/list-registry-vektor-blockchains.d.ts.map +1 -1
  526. package/tools/vektor/registry/blockchains/list-registry-vektor-blockchains.js +9 -1
  527. package/tools/vektor/registry/blockchains/list-registry-vektor-blockchains.js.map +1 -1
  528. package/tools/vektor/registry/blockchains/list-registry-vektor-blockchains.mjs +11 -3
  529. package/tools/vektor/registry/blockchains/list-registry-vektor-blockchains.mjs.map +1 -1
  530. package/tools/vektor/registry/borrow-markets/list-registry-vektor-borrow-markets.d.mts.map +1 -1
  531. package/tools/vektor/registry/borrow-markets/list-registry-vektor-borrow-markets.d.ts.map +1 -1
  532. package/tools/vektor/registry/borrow-markets/list-registry-vektor-borrow-markets.js +9 -1
  533. package/tools/vektor/registry/borrow-markets/list-registry-vektor-borrow-markets.js.map +1 -1
  534. package/tools/vektor/registry/borrow-markets/list-registry-vektor-borrow-markets.mjs +11 -3
  535. package/tools/vektor/registry/borrow-markets/list-registry-vektor-borrow-markets.mjs.map +1 -1
  536. package/tools/vektor/registry/errors/list-registry-vektor-errors.d.mts.map +1 -1
  537. package/tools/vektor/registry/errors/list-registry-vektor-errors.d.ts.map +1 -1
  538. package/tools/vektor/registry/errors/list-registry-vektor-errors.js +9 -1
  539. package/tools/vektor/registry/errors/list-registry-vektor-errors.js.map +1 -1
  540. package/tools/vektor/registry/errors/list-registry-vektor-errors.mjs +11 -3
  541. package/tools/vektor/registry/errors/list-registry-vektor-errors.mjs.map +1 -1
  542. package/tools/vektor/registry/lend-markets/list-registry-vektor-lend-markets.d.mts.map +1 -1
  543. package/tools/vektor/registry/lend-markets/list-registry-vektor-lend-markets.d.ts.map +1 -1
  544. package/tools/vektor/registry/lend-markets/list-registry-vektor-lend-markets.js +9 -1
  545. package/tools/vektor/registry/lend-markets/list-registry-vektor-lend-markets.js.map +1 -1
  546. package/tools/vektor/registry/lend-markets/list-registry-vektor-lend-markets.mjs +11 -3
  547. package/tools/vektor/registry/lend-markets/list-registry-vektor-lend-markets.mjs.map +1 -1
  548. package/tools/vektor/registry/lp-pools/list-registry-vektor-lp-pools.d.mts.map +1 -1
  549. package/tools/vektor/registry/lp-pools/list-registry-vektor-lp-pools.d.ts.map +1 -1
  550. package/tools/vektor/registry/lp-pools/list-registry-vektor-lp-pools.js +9 -1
  551. package/tools/vektor/registry/lp-pools/list-registry-vektor-lp-pools.js.map +1 -1
  552. package/tools/vektor/registry/lp-pools/list-registry-vektor-lp-pools.mjs +11 -3
  553. package/tools/vektor/registry/lp-pools/list-registry-vektor-lp-pools.mjs.map +1 -1
  554. package/tools/vektor/registry/venues/list-registry-vektor-venues.d.mts.map +1 -1
  555. package/tools/vektor/registry/venues/list-registry-vektor-venues.d.ts.map +1 -1
  556. package/tools/vektor/registry/venues/list-registry-vektor-venues.js +9 -1
  557. package/tools/vektor/registry/venues/list-registry-vektor-venues.js.map +1 -1
  558. package/tools/vektor/registry/venues/list-registry-vektor-venues.mjs +11 -3
  559. package/tools/vektor/registry/venues/list-registry-vektor-venues.mjs.map +1 -1
@@ -1,6 +1,6 @@
1
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';
2
+ import { isJqError, maybeFilter } from '@nirvana-labs/nirvana-mcp/filtering';
3
+ import { asErrorResult, asTextContentResult } from '@nirvana-labs/nirvana-mcp/tools/types';
4
4
  export const metadata = {
5
5
  resource: 'rpc_nodes.flex.blockchains',
6
6
  operation: 'read',
@@ -38,7 +38,15 @@ export const tool = {
38
38
  export const handler = async (client, args) => {
39
39
  const { jq_filter, ...body } = args;
40
40
  const response = await client.rpcNodes.flex.blockchains.list(body).asResponse();
41
- return asTextContentResult(await maybeFilter(jq_filter, await response.json()));
41
+ try {
42
+ return asTextContentResult(await maybeFilter(jq_filter, await response.json()));
43
+ }
44
+ catch (error) {
45
+ if (isJqError(error)) {
46
+ return asErrorResult(error.message);
47
+ }
48
+ throw error;
49
+ }
42
50
  };
43
51
  export default { metadata, tool, handler };
44
52
  //# sourceMappingURL=list-flex-rpc-nodes-blockchains.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-flex-rpc-nodes-blockchains.mjs","sourceRoot":"","sources":["../../../../src/tools/rpc-nodes/flex/blockchains/list-flex-rpc-nodes-blockchains.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,4BAA4B;IACtC,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,gCAAgC;IAC1C,WAAW,EAAE,iCAAiC;CAC/C,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,iCAAiC;IACvC,WAAW,EACT,w/CAAw/C;IAC1/C,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,QAAQ,CAAC,IAAI,CAAC,WAAW,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"}
1
+ {"version":3,"file":"list-flex-rpc-nodes-blockchains.mjs","sourceRoot":"","sources":["../../../../src/tools/rpc-nodes/flex/blockchains/list-flex-rpc-nodes-blockchains.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,qCAAqC;OACrE,EAAY,aAAa,EAAE,mBAAmB,EAAE,MAAM,uCAAuC;AAKpG,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,4BAA4B;IACtC,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,gCAAgC;IAC1C,WAAW,EAAE,iCAAiC;CAC/C,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,iCAAiC;IACvC,WAAW,EACT,w/CAAw/C;IAC1/C,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,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IAChF,IAAI,CAAC;QACH,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;IAClF,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;YACrB,OAAO,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -1 +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"}
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,EAAsC,MAAM,uCAAuC;OAE7F,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,WAAW,MAAM,uBAAuB;AAE/C,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAwClB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,WAAW,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,4EAU3F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAVoC,WAAW,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAY5F,wBAA2C"}
@@ -1 +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"}
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,EAAsC,MAAM,uCAAuC;OAE7F,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,WAAW,MAAM,uBAAuB;AAE/C,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAwClB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,WAAW,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,4EAU3F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAVoC,WAAW,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAY5F,wBAA2C"}
@@ -14,7 +14,7 @@ exports.metadata = {
14
14
  };
15
15
  exports.tool = {
16
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```",
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 project_id: {\n type: 'string',\n description: 'Project identifier associated with the RPC Node Flex.'\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 'project_id',\n 'tags',\n 'updated_at'\n ]\n }\n }\n}\n```",
18
18
  inputSchema: {
19
19
  type: 'object',
20
20
  properties: {
@@ -30,6 +30,10 @@ exports.tool = {
30
30
  type: 'string',
31
31
  description: 'Network type (e.g., mainnet, testnet).',
32
32
  },
33
+ project_id: {
34
+ type: 'string',
35
+ description: 'Project ID to associate with the RPC Node Flex.',
36
+ },
33
37
  tags: {
34
38
  type: 'array',
35
39
  description: 'Tags to attach to the RPC Node Flex (optional, max 50).',
@@ -43,13 +47,21 @@ exports.tool = {
43
47
  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
48
  },
45
49
  },
46
- required: ['blockchain', 'name', 'network'],
50
+ required: ['blockchain', 'name', 'network', 'project_id'],
47
51
  },
48
52
  annotations: {},
49
53
  };
50
54
  const handler = async (client, args) => {
51
55
  const { jq_filter, ...body } = args;
52
- return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.rpcNodes.flex.create(body)));
56
+ try {
57
+ return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.rpcNodes.flex.create(body)));
58
+ }
59
+ catch (error) {
60
+ if ((0, filtering_1.isJqError)(error)) {
61
+ return (0, types_1.asErrorResult)(error.message);
62
+ }
63
+ throw error;
64
+ }
53
65
  };
54
66
  exports.handler = handler;
55
67
  exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
@@ -1 +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,EAA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AE,CAAC"}
@@ -1,6 +1,6 @@
1
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';
2
+ import { isJqError, maybeFilter } from '@nirvana-labs/nirvana-mcp/filtering';
3
+ import { asErrorResult, asTextContentResult } from '@nirvana-labs/nirvana-mcp/tools/types';
4
4
  export const metadata = {
5
5
  resource: 'rpc_nodes.flex',
6
6
  operation: 'write',
@@ -11,7 +11,7 @@ export const metadata = {
11
11
  };
12
12
  export const tool = {
13
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```",
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 project_id: {\n type: 'string',\n description: 'Project identifier associated with the RPC Node Flex.'\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 'project_id',\n 'tags',\n 'updated_at'\n ]\n }\n }\n}\n```",
15
15
  inputSchema: {
16
16
  type: 'object',
17
17
  properties: {
@@ -27,6 +27,10 @@ export const tool = {
27
27
  type: 'string',
28
28
  description: 'Network type (e.g., mainnet, testnet).',
29
29
  },
30
+ project_id: {
31
+ type: 'string',
32
+ description: 'Project ID to associate with the RPC Node Flex.',
33
+ },
30
34
  tags: {
31
35
  type: 'array',
32
36
  description: 'Tags to attach to the RPC Node Flex (optional, max 50).',
@@ -40,13 +44,21 @@ export const tool = {
40
44
  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
45
  },
42
46
  },
43
- required: ['blockchain', 'name', 'network'],
47
+ required: ['blockchain', 'name', 'network', 'project_id'],
44
48
  },
45
49
  annotations: {},
46
50
  };
47
51
  export const handler = async (client, args) => {
48
52
  const { jq_filter, ...body } = args;
49
- return asTextContentResult(await maybeFilter(jq_filter, await client.rpcNodes.flex.create(body)));
53
+ try {
54
+ return asTextContentResult(await maybeFilter(jq_filter, await client.rpcNodes.flex.create(body)));
55
+ }
56
+ catch (error) {
57
+ if (isJqError(error)) {
58
+ return asErrorResult(error.message);
59
+ }
60
+ throw error;
61
+ }
50
62
  };
51
63
  export default { metadata, tool, handler };
52
64
  //# sourceMappingURL=create-rpc-nodes-flex.mjs.map
@@ -1 +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,QA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],"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":"get-rpc-nodes-flex.d.mts","sourceRoot":"","sources":["../../../src/tools/rpc-nodes/flex/get-rpc-nodes-flex.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAsC,MAAM,uCAAuC;OAE7F,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,4EAU3F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAVoC,WAAW,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAY5F,wBAA2C"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-rpc-nodes-flex.d.ts","sourceRoot":"","sources":["../../../src/tools/rpc-nodes/flex/get-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,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":"get-rpc-nodes-flex.d.ts","sourceRoot":"","sources":["../../../src/tools/rpc-nodes/flex/get-rpc-nodes-flex.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAsC,MAAM,uCAAuC;OAE7F,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,4EAU3F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAVoC,WAAW,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAY5F,wBAA2C"}
@@ -14,7 +14,7 @@ exports.metadata = {
14
14
  };
15
15
  exports.tool = {
16
16
  name: 'get_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\nGet details about an 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```",
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\nGet details about an 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 project_id: {\n type: 'string',\n description: 'Project identifier associated with the RPC Node Flex.'\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 'project_id',\n 'tags',\n 'updated_at'\n ]\n }\n }\n}\n```",
18
18
  inputSchema: {
19
19
  type: 'object',
20
20
  properties: {
@@ -35,7 +35,15 @@ exports.tool = {
35
35
  };
36
36
  const handler = async (client, args) => {
37
37
  const { node_id, jq_filter, ...body } = args;
38
- return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.rpcNodes.flex.get(node_id)));
38
+ try {
39
+ return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.rpcNodes.flex.get(node_id)));
40
+ }
41
+ catch (error) {
42
+ if ((0, filtering_1.isJqError)(error)) {
43
+ return (0, types_1.asErrorResult)(error.message);
44
+ }
45
+ throw error;
46
+ }
39
47
  };
40
48
  exports.handler = handler;
41
49
  exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
@@ -1 +1 @@
1
- {"version":3,"file":"get-rpc-nodes-flex.js","sourceRoot":"","sources":["../../../src/tools/rpc-nodes/flex/get-rpc-nodes-flex.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,mEAAkE;AAClE,iEAAsF;AAKzE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,gBAAgB;IAC1B,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,8BAA8B;IACxC,WAAW,EAAE,oBAAoB;CAClC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EACT,6mDAA6mD;IAC/mD,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,OAAO,EAAE;gBACP,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,SAAS,CAAC;KACtB;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,C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mB,EAAE,IAAyC,EAAE,EAAE;IAC9F,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IACpD,IAAI,CAAC;QACH,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IACpG,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,IAAA,qBAAS,EAAC,KAAK,CAAC,EAAE,CAAC;YACrB,OAAO,IAAA,qBAAa,EAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAVW,QAAA,OAAO,WAUlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -1,6 +1,6 @@
1
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';
2
+ import { isJqError, maybeFilter } from '@nirvana-labs/nirvana-mcp/filtering';
3
+ import { asErrorResult, asTextContentResult } from '@nirvana-labs/nirvana-mcp/tools/types';
4
4
  export const metadata = {
5
5
  resource: 'rpc_nodes.flex',
6
6
  operation: 'read',
@@ -11,7 +11,7 @@ export const metadata = {
11
11
  };
12
12
  export const tool = {
13
13
  name: 'get_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\nGet details about an 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```",
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\nGet details about an 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 project_id: {\n type: 'string',\n description: 'Project identifier associated with the RPC Node Flex.'\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 'project_id',\n 'tags',\n 'updated_at'\n ]\n }\n }\n}\n```",
15
15
  inputSchema: {
16
16
  type: 'object',
17
17
  properties: {
@@ -32,7 +32,15 @@ export const tool = {
32
32
  };
33
33
  export const handler = async (client, args) => {
34
34
  const { node_id, jq_filter, ...body } = args;
35
- return asTextContentResult(await maybeFilter(jq_filter, await client.rpcNodes.flex.get(node_id)));
35
+ try {
36
+ return asTextContentResult(await maybeFilter(jq_filter, await client.rpcNodes.flex.get(node_id)));
37
+ }
38
+ catch (error) {
39
+ if (isJqError(error)) {
40
+ return asErrorResult(error.message);
41
+ }
42
+ throw error;
43
+ }
36
44
  };
37
45
  export default { metadata, tool, handler };
38
46
  //# sourceMappingURL=get-rpc-nodes-flex.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-rpc-nodes-flex.mjs","sourceRoot":"","sources":["../../../src/tools/rpc-nodes/flex/get-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,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,8BAA8B;IACxC,WAAW,EAAE,oBAAoB;CAClC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EACT,6mDAA6mD;IAC/mD,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,OAAO,EAAE;gBACP,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,SAAS,CAAC;KACtB;IACD,WAAW,EAAE;QACX,YAA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KACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAmB,EAAE,IAAyC,EAAE,EAAE;IAC9F,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IACpD,IAAI,CAAC;QACH,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IACpG,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;YACrB,OAAO,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"list-rpc-nodes-flex.d.mts","sourceRoot":"","sources":["../../../src/tools/rpc-nodes/flex/list-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,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
+ {"version":3,"file":"list-rpc-nodes-flex.d.mts","sourceRoot":"","sources":["../../../src/tools/rpc-nodes/flex/list-rpc-nodes-flex.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAsC,MAAM,uCAAuC;OAE7F,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,4EAW3F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAXoC,WAAW,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAa5F,wBAA2C"}
@@ -1 +1 @@
1
- {"version":3,"file":"list-rpc-nodes-flex.d.ts","sourceRoot":"","sources":["../../../src/tools/rpc-nodes/flex/list-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,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
+ {"version":3,"file":"list-rpc-nodes-flex.d.ts","sourceRoot":"","sources":["../../../src/tools/rpc-nodes/flex/list-rpc-nodes-flex.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAsC,MAAM,uCAAuC;OAE7F,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,4EAW3F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAXoC,WAAW,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAa5F,wBAA2C"}
@@ -14,7 +14,7 @@ exports.metadata = {
14
14
  };
15
15
  exports.tool = {
16
16
  name: 'list_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\nList all RPC Node Flex you created\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/flex_list',\n $defs: {\n flex_list: {\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n $ref: '#/$defs/flex'\n }\n },\n pagination: {\n $ref: '#/$defs/pagination'\n }\n },\n required: [ 'items',\n 'pagination'\n ]\n },\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 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```",
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 RPC Node Flex you created\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/flex_list',\n $defs: {\n flex_list: {\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n $ref: '#/$defs/flex'\n }\n },\n pagination: {\n $ref: '#/$defs/pagination'\n }\n },\n required: [ 'items',\n 'pagination'\n ]\n },\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 project_id: {\n type: 'string',\n description: 'Project identifier associated with the RPC Node Flex.'\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 'project_id',\n 'tags',\n 'updated_at'\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: {
@@ -26,6 +26,10 @@ exports.tool = {
26
26
  type: 'integer',
27
27
  description: 'Maximum number of items to return',
28
28
  },
29
+ project_id: {
30
+ type: 'string',
31
+ description: 'Project ID of resources to request',
32
+ },
29
33
  jq_filter: {
30
34
  type: 'string',
31
35
  title: 'jq Filter',
@@ -41,7 +45,15 @@ exports.tool = {
41
45
  const handler = async (client, args) => {
42
46
  const { jq_filter, ...body } = args;
43
47
  const response = await client.rpcNodes.flex.list(body).asResponse();
44
- return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await response.json()));
48
+ try {
49
+ return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await response.json()));
50
+ }
51
+ catch (error) {
52
+ if ((0, filtering_1.isJqError)(error)) {
53
+ return (0, types_1.asErrorResult)(error.message);
54
+ }
55
+ throw error;
56
+ }
45
57
  };
46
58
  exports.handler = handler;
47
59
  exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
@@ -1 +1 @@
1
- {"version":3,"file":"list-rpc-nodes-flex.js","sourceRoot":"","sources":["../../../src/tools/rpc-nodes/flex/list-rpc-nodes-flex.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,mEAAkE;AAClE,iEAAsF;AAKzE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,gBAAgB;IAC1B,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,oBAAoB;IAC9B,WAAW,EAAE,qBAAqB;CACnC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EACT,+2EAA+2E;IACj3E,WAAW,EAAE;QACX,IAA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EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -1,6 +1,6 @@
1
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';
2
+ import { isJqError, maybeFilter } from '@nirvana-labs/nirvana-mcp/filtering';
3
+ import { asErrorResult, asTextContentResult } from '@nirvana-labs/nirvana-mcp/tools/types';
4
4
  export const metadata = {
5
5
  resource: 'rpc_nodes.flex',
6
6
  operation: 'read',
@@ -11,7 +11,7 @@ export const metadata = {
11
11
  };
12
12
  export const tool = {
13
13
  name: 'list_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\nList all RPC Node Flex you created\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/flex_list',\n $defs: {\n flex_list: {\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n $ref: '#/$defs/flex'\n }\n },\n pagination: {\n $ref: '#/$defs/pagination'\n }\n },\n required: [ 'items',\n 'pagination'\n ]\n },\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 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```",
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 RPC Node Flex you created\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/flex_list',\n $defs: {\n flex_list: {\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n $ref: '#/$defs/flex'\n }\n },\n pagination: {\n $ref: '#/$defs/pagination'\n }\n },\n required: [ 'items',\n 'pagination'\n ]\n },\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 project_id: {\n type: 'string',\n description: 'Project identifier associated with the RPC Node Flex.'\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 'project_id',\n 'tags',\n 'updated_at'\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: {
@@ -23,6 +23,10 @@ export const tool = {
23
23
  type: 'integer',
24
24
  description: 'Maximum number of items to return',
25
25
  },
26
+ project_id: {
27
+ type: 'string',
28
+ description: 'Project ID of resources to request',
29
+ },
26
30
  jq_filter: {
27
31
  type: 'string',
28
32
  title: 'jq Filter',
@@ -38,7 +42,15 @@ export const tool = {
38
42
  export const handler = async (client, args) => {
39
43
  const { jq_filter, ...body } = args;
40
44
  const response = await client.rpcNodes.flex.list(body).asResponse();
41
- return asTextContentResult(await maybeFilter(jq_filter, await response.json()));
45
+ try {
46
+ return asTextContentResult(await maybeFilter(jq_filter, await response.json()));
47
+ }
48
+ catch (error) {
49
+ if (isJqError(error)) {
50
+ return asErrorResult(error.message);
51
+ }
52
+ throw error;
53
+ }
42
54
  };
43
55
  export default { metadata, tool, handler };
44
56
  //# sourceMappingURL=list-rpc-nodes-flex.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-rpc-nodes-flex.mjs","sourceRoot":"","sources":["../../../src/tools/rpc-nodes/flex/list-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,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,oBAAoB;IAC9B,WAAW,EAAE,qBAAqB;CACnC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EACT,+2EAA+2E;IACj3E,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAA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{"version":3,"file":"update-rpc-nodes-flex.d.mts","sourceRoot":"","sources":["../../../src/tools/rpc-nodes/flex/update-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,IA+BlB,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":"update-rpc-nodes-flex.d.mts","sourceRoot":"","sources":["../../../src/tools/rpc-nodes/flex/update-rpc-nodes-flex.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAsC,MAAM,uCAAuC;OAE7F,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,4EAY3F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAZoC,WAAW,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAc5F,wBAA2C"}
@@ -1 +1 @@
1
- {"version":3,"file":"update-rpc-nodes-flex.d.ts","sourceRoot":"","sources":["../../../src/tools/rpc-nodes/flex/update-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,IA+BlB,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":"update-rpc-nodes-flex.d.ts","sourceRoot":"","sources":["../../../src/tools/rpc-nodes/flex/update-rpc-nodes-flex.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAsC,MAAM,uCAAuC;OAE7F,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,4EAY3F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAZoC,WAAW,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAc5F,wBAA2C"}
@@ -14,7 +14,7 @@ exports.metadata = {
14
14
  };
15
15
  exports.tool = {
16
16
  name: 'update_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\nUpdate an existing 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```",
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 an existing 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 project_id: {\n type: 'string',\n description: 'Project identifier associated with the RPC Node Flex.'\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 'project_id',\n 'tags',\n 'updated_at'\n ]\n }\n }\n}\n```",
18
18
  inputSchema: {
19
19
  type: 'object',
20
20
  properties: {
@@ -44,7 +44,15 @@ exports.tool = {
44
44
  };
45
45
  const handler = async (client, args) => {
46
46
  const { node_id, jq_filter, ...body } = args;
47
- return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.rpcNodes.flex.update(node_id, body)));
47
+ try {
48
+ return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.rpcNodes.flex.update(node_id, body)));
49
+ }
50
+ catch (error) {
51
+ if ((0, filtering_1.isJqError)(error)) {
52
+ return (0, types_1.asErrorResult)(error.message);
53
+ }
54
+ throw error;
55
+ }
48
56
  };
49
57
  exports.handler = handler;
50
58
  exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
@@ -1 +1 @@
1
- {"version":3,"file":"update-rpc-nodes-flex.js","sourceRoot":"","sources":["../../../src/tools/rpc-nodes/flex/update-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,OAAO;IACnB,QAAQ,EAAE,8BAA8B;IACxC,WAAW,EAAE,uBAAuB;CACrC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EACT,2mDAA2mD;IAC7mD,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;aACf;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,4BAA4B;aAC1C;YACD,IAAI,EA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AAU,EAAE;YACV,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;aACf;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,4BAA4B;aAC1C;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,SAAS,CAAC;KACtB;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAmB,EAAE,IAAyC,EAAE,EAAE;IAC9F,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IACpD,IAAI,CAAC;QACH,OAAO,IAAA,2BAAmB,EACxB,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAC/E,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,IAAA,qBAAS,EAAC,KAAK,CAAC,EAAE,CAAC;YACrB,OAAO,IAAA,qBAAa,EAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAZW,QAAA,OAAO,WAYlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -1,6 +1,6 @@
1
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';
2
+ import { isJqError, maybeFilter } from '@nirvana-labs/nirvana-mcp/filtering';
3
+ import { asErrorResult, asTextContentResult } from '@nirvana-labs/nirvana-mcp/tools/types';
4
4
  export const metadata = {
5
5
  resource: 'rpc_nodes.flex',
6
6
  operation: 'write',
@@ -11,7 +11,7 @@ export const metadata = {
11
11
  };
12
12
  export const tool = {
13
13
  name: 'update_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\nUpdate an existing 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```",
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 an existing 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 project_id: {\n type: 'string',\n description: 'Project identifier associated with the RPC Node Flex.'\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 'project_id',\n 'tags',\n 'updated_at'\n ]\n }\n }\n}\n```",
15
15
  inputSchema: {
16
16
  type: 'object',
17
17
  properties: {
@@ -41,7 +41,15 @@ export const tool = {
41
41
  };
42
42
  export const handler = async (client, args) => {
43
43
  const { node_id, jq_filter, ...body } = args;
44
- return asTextContentResult(await maybeFilter(jq_filter, await client.rpcNodes.flex.update(node_id, body)));
44
+ try {
45
+ return asTextContentResult(await maybeFilter(jq_filter, await client.rpcNodes.flex.update(node_id, body)));
46
+ }
47
+ catch (error) {
48
+ if (isJqError(error)) {
49
+ return asErrorResult(error.message);
50
+ }
51
+ throw error;
52
+ }
45
53
  };
46
54
  export default { metadata, tool, handler };
47
55
  //# sourceMappingURL=update-rpc-nodes-flex.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-rpc-nodes-flex.mjs","sourceRoot":"","sources":["../../../src/tools/rpc-nodes/flex/update-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,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C;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;YACrB,OAAO,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
package/tools/types.d.mts CHANGED
@@ -34,6 +34,7 @@ export type ToolCallResult = {
34
34
  export type HandlerFunction = (client: NirvanaLabs, args: Record<string, unknown> | undefined) => Promise<ToolCallResult>;
35
35
  export declare function asTextContentResult(result: unknown): ToolCallResult;
36
36
  export declare function asBinaryContentResult(response: Response): Promise<ToolCallResult>;
37
+ export declare function asErrorResult(message: string): ToolCallResult;
37
38
  export type Metadata = {
38
39
  resource: string;
39
40
  operation: 'read' | 'write';
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.mts","sourceRoot":"","sources":["../src/tools/types.ts"],"names":[],"mappings":"OAEO,WAAW,MAAM,uBAAuB;OACxC,EAAE,IAAI,EAAE,MAAM,oCAAoC;AAEzD,KAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,KAAK,oBAAoB,GAAG;IAC1B,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,EACJ;QACE,GAAG,EAAE,MAAM,CAAC;QACZ,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;KACd,GACD;QAC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AG,OAAO,CAAC;IAC5B,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG;IACrB,QAAQ,EAAE,QAAQ,CAAC;IACnB,IAAI,EAAE,IAAI,CAAC;IACX,OAAO,EAAE,eAAe,CAAC;CAC1B,CAAC"}
package/tools/types.d.ts CHANGED
@@ -34,6 +34,7 @@ export type ToolCallResult = {
34
34
  export type HandlerFunction = (client: NirvanaLabs, args: Record<string, unknown> | undefined) => Promise<ToolCallResult>;
35
35
  export declare function asTextContentResult(result: unknown): ToolCallResult;
36
36
  export declare function asBinaryContentResult(response: Response): Promise<ToolCallResult>;
37
+ export declare function asErrorResult(message: string): ToolCallResult;
37
38
  export type Metadata = {
38
39
  resource: string;
39
40
  operation: 'read' | 'write';
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/tools/types.ts"],"names":[],"mappings":"OAEO,WAAW,MAAM,uBAAuB;OACxC,EAAE,IAAI,EAAE,MAAM,oCAAoC;AAEzD,KAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,KAAK,oBAAoB,GAAG;IAC1B,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,EACJ;QACE,GAAG,EAAE,MAAM,CAAC;QACZ,QAAQ,EAAE,MA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