@nirvana-labs/nirvana-mcp 1.22.1 → 1.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/code-tool-worker.d.mts.map +1 -1
- package/code-tool-worker.d.ts.map +1 -1
- package/code-tool-worker.js +5 -0
- package/code-tool-worker.js.map +1 -1
- package/code-tool-worker.mjs +5 -0
- package/code-tool-worker.mjs.map +1 -1
- package/code-tool.js +1 -1
- package/code-tool.mjs +1 -1
- package/filtering.d.mts +1 -0
- package/filtering.d.mts.map +1 -1
- package/filtering.d.ts +1 -0
- package/filtering.d.ts.map +1 -1
- package/filtering.js +4 -0
- package/filtering.js.map +1 -1
- package/filtering.mjs +3 -0
- package/filtering.mjs.map +1 -1
- package/headers.d.mts.map +1 -1
- package/headers.d.ts.map +1 -1
- package/headers.js +1 -1
- package/headers.js.map +1 -1
- package/headers.mjs +1 -1
- package/headers.mjs.map +1 -1
- package/http.js +2 -2
- package/http.js.map +1 -1
- package/http.mjs +2 -2
- package/http.mjs.map +1 -1
- package/package.json +3 -3
- package/server.js +1 -1
- package/server.mjs +1 -1
- package/src/code-tool-worker.ts +5 -0
- package/src/code-tool.ts +1 -1
- package/src/filtering.ts +4 -0
- package/src/headers.ts +3 -1
- package/src/http.ts +2 -2
- package/src/server.ts +1 -1
- package/src/tools/api-keys/create-api-keys.ts +10 -3
- package/src/tools/api-keys/get-api-keys.ts +10 -3
- package/src/tools/api-keys/list-api-keys.ts +10 -3
- package/src/tools/api-keys/update-api-keys.ts +10 -3
- package/src/tools/compute/vms/availability/create-vms-compute-availability.ts +12 -5
- package/src/tools/compute/vms/availability/update-vms-compute-availability.ts +12 -5
- package/src/tools/compute/vms/create-compute-vms.ts +10 -3
- package/src/tools/compute/vms/delete-compute-vms.ts +10 -3
- package/src/tools/compute/vms/get-compute-vms.ts +10 -3
- package/src/tools/compute/vms/list-compute-vms.ts +10 -3
- package/src/tools/compute/vms/os-images/list-vms-compute-os-images.ts +10 -3
- package/src/tools/compute/vms/restart-compute-vms.ts +10 -3
- package/src/tools/compute/vms/update-compute-vms.ts +10 -3
- package/src/tools/compute/vms/volumes/list-vms-compute-volumes.ts +10 -3
- package/src/tools/compute/volumes/availability/create-volumes-compute-availability.ts +12 -5
- package/src/tools/compute/volumes/availability/update-volumes-compute-availability.ts +12 -5
- package/src/tools/compute/volumes/create-compute-volumes.ts +10 -3
- package/src/tools/compute/volumes/delete-compute-volumes.ts +10 -3
- package/src/tools/compute/volumes/get-compute-volumes.ts +10 -3
- package/src/tools/compute/volumes/list-compute-volumes.ts +10 -3
- package/src/tools/compute/volumes/update-compute-volumes.ts +12 -5
- package/src/tools/index.ts +10 -0
- package/src/tools/networking/connect/connections/create-connect-networking-connections.ts +14 -7
- package/src/tools/networking/connect/connections/delete-connect-networking-connections.ts +12 -5
- package/src/tools/networking/connect/connections/get-connect-networking-connections.ts +12 -5
- package/src/tools/networking/connect/connections/list-connect-networking-connections.ts +10 -3
- package/src/tools/networking/connect/connections/update-connect-networking-connections.ts +12 -5
- package/src/tools/networking/connect/routes/list-connect-networking-routes.ts +10 -3
- package/src/tools/networking/firewall-rules/create-networking-firewall-rules.ts +16 -7
- package/src/tools/networking/firewall-rules/delete-networking-firewall-rules.ts +12 -5
- package/src/tools/networking/firewall-rules/get-networking-firewall-rules.ts +12 -5
- package/src/tools/networking/firewall-rules/list-networking-firewall-rules.ts +10 -3
- package/src/tools/networking/firewall-rules/update-networking-firewall-rules.ts +16 -7
- package/src/tools/networking/vpcs/availability/create-vpcs-networking-availability.ts +12 -5
- package/src/tools/networking/vpcs/availability/update-vpcs-networking-availability.ts +12 -5
- package/src/tools/networking/vpcs/create-networking-vpcs.ts +10 -3
- package/src/tools/networking/vpcs/delete-networking-vpcs.ts +10 -3
- package/src/tools/networking/vpcs/get-networking-vpcs.ts +10 -3
- package/src/tools/networking/vpcs/list-networking-vpcs.ts +10 -3
- package/src/tools/networking/vpcs/update-networking-vpcs.ts +12 -3
- package/src/tools/operations/get-operations.ts +10 -3
- package/src/tools/operations/list-operations.ts +10 -3
- package/src/tools/projects/create-projects.ts +60 -0
- package/src/tools/projects/delete-projects.ts +40 -0
- package/src/tools/projects/get-projects.ts +54 -0
- package/src/tools/projects/list-projects.ts +60 -0
- package/src/tools/projects/update-projects.ts +63 -0
- package/src/tools/rpc-nodes/dedicated/blockchains/list-dedicated-rpc-nodes-blockchains.ts +10 -3
- package/src/tools/rpc-nodes/dedicated/get-rpc-nodes-dedicated.ts +11 -4
- package/src/tools/rpc-nodes/dedicated/list-rpc-nodes-dedicated.ts +15 -4
- package/src/tools/rpc-nodes/flex/blockchains/list-flex-rpc-nodes-blockchains.ts +10 -3
- package/src/tools/rpc-nodes/flex/create-rpc-nodes-flex.ts +11 -4
- package/src/tools/rpc-nodes/flex/get-rpc-nodes-flex.ts +11 -4
- package/src/tools/rpc-nodes/flex/list-rpc-nodes-flex.ts +15 -4
- package/src/tools/rpc-nodes/flex/update-rpc-nodes-flex.ts +13 -4
- package/src/tools/types.ts +12 -0
- package/src/tools/user/get-user.ts +10 -3
- package/src/tools/vektor/balances/list-historical-vektor-balances.ts +12 -3
- package/src/tools/vektor/balances/list-vektor-balances.ts +10 -3
- package/src/tools/vektor/borrow/accounts/list-borrow-vektor-accounts.ts +10 -3
- package/src/tools/vektor/borrow/accounts/list-historical-borrow-vektor-accounts.ts +12 -5
- package/src/tools/vektor/bridge/quotes/list-bridge-vektor-quotes.ts +10 -3
- package/src/tools/vektor/buy/quotes/list-buy-vektor-quotes.ts +10 -3
- package/src/tools/vektor/lock/markets/list-lock-vektor-markets.ts +10 -3
- package/src/tools/vektor/prices/list-historical-vektor-prices.ts +10 -3
- package/src/tools/vektor/prices/list-vektor-prices.ts +10 -3
- package/src/tools/vektor/registry/assets/list-registry-vektor-assets.ts +10 -3
- package/src/tools/vektor/registry/blockchains/list-registry-vektor-blockchains.ts +12 -5
- package/src/tools/vektor/registry/borrow-markets/list-registry-vektor-borrow-markets.ts +12 -5
- package/src/tools/vektor/registry/errors/list-registry-vektor-errors.ts +10 -3
- package/src/tools/vektor/registry/lend-markets/list-registry-vektor-lend-markets.ts +12 -5
- package/src/tools/vektor/registry/lp-pools/list-registry-vektor-lp-pools.ts +10 -3
- package/src/tools/vektor/registry/venues/list-registry-vektor-venues.ts +10 -3
- package/tools/api-keys/create-api-keys.d.mts.map +1 -1
- package/tools/api-keys/create-api-keys.d.ts.map +1 -1
- package/tools/api-keys/create-api-keys.js +9 -1
- package/tools/api-keys/create-api-keys.js.map +1 -1
- package/tools/api-keys/create-api-keys.mjs +11 -3
- package/tools/api-keys/create-api-keys.mjs.map +1 -1
- package/tools/api-keys/get-api-keys.d.mts.map +1 -1
- package/tools/api-keys/get-api-keys.d.ts.map +1 -1
- package/tools/api-keys/get-api-keys.js +9 -1
- package/tools/api-keys/get-api-keys.js.map +1 -1
- package/tools/api-keys/get-api-keys.mjs +11 -3
- package/tools/api-keys/get-api-keys.mjs.map +1 -1
- package/tools/api-keys/list-api-keys.d.mts.map +1 -1
- package/tools/api-keys/list-api-keys.d.ts.map +1 -1
- package/tools/api-keys/list-api-keys.js +9 -1
- package/tools/api-keys/list-api-keys.js.map +1 -1
- package/tools/api-keys/list-api-keys.mjs +11 -3
- package/tools/api-keys/list-api-keys.mjs.map +1 -1
- package/tools/api-keys/update-api-keys.d.mts.map +1 -1
- package/tools/api-keys/update-api-keys.d.ts.map +1 -1
- package/tools/api-keys/update-api-keys.js +9 -1
- package/tools/api-keys/update-api-keys.js.map +1 -1
- package/tools/api-keys/update-api-keys.mjs +11 -3
- package/tools/api-keys/update-api-keys.mjs.map +1 -1
- package/tools/compute/vms/availability/create-vms-compute-availability.d.mts.map +1 -1
- package/tools/compute/vms/availability/create-vms-compute-availability.d.ts.map +1 -1
- package/tools/compute/vms/availability/create-vms-compute-availability.js +9 -1
- package/tools/compute/vms/availability/create-vms-compute-availability.js.map +1 -1
- package/tools/compute/vms/availability/create-vms-compute-availability.mjs +11 -3
- package/tools/compute/vms/availability/create-vms-compute-availability.mjs.map +1 -1
- package/tools/compute/vms/availability/update-vms-compute-availability.d.mts.map +1 -1
- package/tools/compute/vms/availability/update-vms-compute-availability.d.ts.map +1 -1
- package/tools/compute/vms/availability/update-vms-compute-availability.js +9 -1
- package/tools/compute/vms/availability/update-vms-compute-availability.js.map +1 -1
- package/tools/compute/vms/availability/update-vms-compute-availability.mjs +11 -3
- package/tools/compute/vms/availability/update-vms-compute-availability.mjs.map +1 -1
- package/tools/compute/vms/create-compute-vms.d.mts.map +1 -1
- package/tools/compute/vms/create-compute-vms.d.ts.map +1 -1
- package/tools/compute/vms/create-compute-vms.js +9 -1
- package/tools/compute/vms/create-compute-vms.js.map +1 -1
- package/tools/compute/vms/create-compute-vms.mjs +11 -3
- package/tools/compute/vms/create-compute-vms.mjs.map +1 -1
- package/tools/compute/vms/delete-compute-vms.d.mts.map +1 -1
- package/tools/compute/vms/delete-compute-vms.d.ts.map +1 -1
- package/tools/compute/vms/delete-compute-vms.js +9 -1
- package/tools/compute/vms/delete-compute-vms.js.map +1 -1
- package/tools/compute/vms/delete-compute-vms.mjs +11 -3
- package/tools/compute/vms/delete-compute-vms.mjs.map +1 -1
- package/tools/compute/vms/get-compute-vms.d.mts.map +1 -1
- package/tools/compute/vms/get-compute-vms.d.ts.map +1 -1
- package/tools/compute/vms/get-compute-vms.js +9 -1
- package/tools/compute/vms/get-compute-vms.js.map +1 -1
- package/tools/compute/vms/get-compute-vms.mjs +11 -3
- package/tools/compute/vms/get-compute-vms.mjs.map +1 -1
- package/tools/compute/vms/list-compute-vms.d.mts.map +1 -1
- package/tools/compute/vms/list-compute-vms.d.ts.map +1 -1
- package/tools/compute/vms/list-compute-vms.js +9 -1
- package/tools/compute/vms/list-compute-vms.js.map +1 -1
- package/tools/compute/vms/list-compute-vms.mjs +11 -3
- package/tools/compute/vms/list-compute-vms.mjs.map +1 -1
- package/tools/compute/vms/os-images/list-vms-compute-os-images.d.mts.map +1 -1
- package/tools/compute/vms/os-images/list-vms-compute-os-images.d.ts.map +1 -1
- package/tools/compute/vms/os-images/list-vms-compute-os-images.js +9 -1
- package/tools/compute/vms/os-images/list-vms-compute-os-images.js.map +1 -1
- package/tools/compute/vms/os-images/list-vms-compute-os-images.mjs +11 -3
- package/tools/compute/vms/os-images/list-vms-compute-os-images.mjs.map +1 -1
- package/tools/compute/vms/restart-compute-vms.d.mts.map +1 -1
- package/tools/compute/vms/restart-compute-vms.d.ts.map +1 -1
- package/tools/compute/vms/restart-compute-vms.js +9 -1
- package/tools/compute/vms/restart-compute-vms.js.map +1 -1
- package/tools/compute/vms/restart-compute-vms.mjs +11 -3
- package/tools/compute/vms/restart-compute-vms.mjs.map +1 -1
- package/tools/compute/vms/update-compute-vms.d.mts.map +1 -1
- package/tools/compute/vms/update-compute-vms.d.ts.map +1 -1
- package/tools/compute/vms/update-compute-vms.js +9 -1
- package/tools/compute/vms/update-compute-vms.js.map +1 -1
- package/tools/compute/vms/update-compute-vms.mjs +11 -3
- package/tools/compute/vms/update-compute-vms.mjs.map +1 -1
- package/tools/compute/vms/volumes/list-vms-compute-volumes.d.mts.map +1 -1
- package/tools/compute/vms/volumes/list-vms-compute-volumes.d.ts.map +1 -1
- package/tools/compute/vms/volumes/list-vms-compute-volumes.js +9 -1
- package/tools/compute/vms/volumes/list-vms-compute-volumes.js.map +1 -1
- package/tools/compute/vms/volumes/list-vms-compute-volumes.mjs +11 -3
- package/tools/compute/vms/volumes/list-vms-compute-volumes.mjs.map +1 -1
- package/tools/compute/volumes/availability/create-volumes-compute-availability.d.mts.map +1 -1
- package/tools/compute/volumes/availability/create-volumes-compute-availability.d.ts.map +1 -1
- package/tools/compute/volumes/availability/create-volumes-compute-availability.js +9 -1
- package/tools/compute/volumes/availability/create-volumes-compute-availability.js.map +1 -1
- package/tools/compute/volumes/availability/create-volumes-compute-availability.mjs +11 -3
- package/tools/compute/volumes/availability/create-volumes-compute-availability.mjs.map +1 -1
- package/tools/compute/volumes/availability/update-volumes-compute-availability.d.mts.map +1 -1
- package/tools/compute/volumes/availability/update-volumes-compute-availability.d.ts.map +1 -1
- package/tools/compute/volumes/availability/update-volumes-compute-availability.js +9 -1
- package/tools/compute/volumes/availability/update-volumes-compute-availability.js.map +1 -1
- package/tools/compute/volumes/availability/update-volumes-compute-availability.mjs +11 -3
- package/tools/compute/volumes/availability/update-volumes-compute-availability.mjs.map +1 -1
- package/tools/compute/volumes/create-compute-volumes.d.mts.map +1 -1
- package/tools/compute/volumes/create-compute-volumes.d.ts.map +1 -1
- package/tools/compute/volumes/create-compute-volumes.js +9 -1
- package/tools/compute/volumes/create-compute-volumes.js.map +1 -1
- package/tools/compute/volumes/create-compute-volumes.mjs +11 -3
- package/tools/compute/volumes/create-compute-volumes.mjs.map +1 -1
- package/tools/compute/volumes/delete-compute-volumes.d.mts.map +1 -1
- package/tools/compute/volumes/delete-compute-volumes.d.ts.map +1 -1
- package/tools/compute/volumes/delete-compute-volumes.js +9 -1
- package/tools/compute/volumes/delete-compute-volumes.js.map +1 -1
- package/tools/compute/volumes/delete-compute-volumes.mjs +11 -3
- package/tools/compute/volumes/delete-compute-volumes.mjs.map +1 -1
- package/tools/compute/volumes/get-compute-volumes.d.mts.map +1 -1
- package/tools/compute/volumes/get-compute-volumes.d.ts.map +1 -1
- package/tools/compute/volumes/get-compute-volumes.js +9 -1
- package/tools/compute/volumes/get-compute-volumes.js.map +1 -1
- package/tools/compute/volumes/get-compute-volumes.mjs +11 -3
- package/tools/compute/volumes/get-compute-volumes.mjs.map +1 -1
- package/tools/compute/volumes/list-compute-volumes.d.mts.map +1 -1
- package/tools/compute/volumes/list-compute-volumes.d.ts.map +1 -1
- package/tools/compute/volumes/list-compute-volumes.js +9 -1
- package/tools/compute/volumes/list-compute-volumes.js.map +1 -1
- package/tools/compute/volumes/list-compute-volumes.mjs +11 -3
- package/tools/compute/volumes/list-compute-volumes.mjs.map +1 -1
- package/tools/compute/volumes/update-compute-volumes.d.mts.map +1 -1
- package/tools/compute/volumes/update-compute-volumes.d.ts.map +1 -1
- package/tools/compute/volumes/update-compute-volumes.js +9 -1
- package/tools/compute/volumes/update-compute-volumes.js.map +1 -1
- package/tools/compute/volumes/update-compute-volumes.mjs +11 -3
- package/tools/compute/volumes/update-compute-volumes.mjs.map +1 -1
- package/tools/index.d.mts.map +1 -1
- package/tools/index.d.ts.map +1 -1
- package/tools/index.js +10 -0
- package/tools/index.js.map +1 -1
- package/tools/index.mjs +10 -0
- package/tools/index.mjs.map +1 -1
- package/tools/networking/connect/connections/create-connect-networking-connections.d.mts.map +1 -1
- package/tools/networking/connect/connections/create-connect-networking-connections.d.ts.map +1 -1
- package/tools/networking/connect/connections/create-connect-networking-connections.js +11 -3
- package/tools/networking/connect/connections/create-connect-networking-connections.js.map +1 -1
- package/tools/networking/connect/connections/create-connect-networking-connections.mjs +13 -5
- package/tools/networking/connect/connections/create-connect-networking-connections.mjs.map +1 -1
- package/tools/networking/connect/connections/delete-connect-networking-connections.d.mts.map +1 -1
- package/tools/networking/connect/connections/delete-connect-networking-connections.d.ts.map +1 -1
- package/tools/networking/connect/connections/delete-connect-networking-connections.js +9 -1
- package/tools/networking/connect/connections/delete-connect-networking-connections.js.map +1 -1
- package/tools/networking/connect/connections/delete-connect-networking-connections.mjs +11 -3
- package/tools/networking/connect/connections/delete-connect-networking-connections.mjs.map +1 -1
- package/tools/networking/connect/connections/get-connect-networking-connections.d.mts.map +1 -1
- package/tools/networking/connect/connections/get-connect-networking-connections.d.ts.map +1 -1
- package/tools/networking/connect/connections/get-connect-networking-connections.js +9 -1
- package/tools/networking/connect/connections/get-connect-networking-connections.js.map +1 -1
- package/tools/networking/connect/connections/get-connect-networking-connections.mjs +11 -3
- package/tools/networking/connect/connections/get-connect-networking-connections.mjs.map +1 -1
- package/tools/networking/connect/connections/list-connect-networking-connections.d.mts.map +1 -1
- package/tools/networking/connect/connections/list-connect-networking-connections.d.ts.map +1 -1
- package/tools/networking/connect/connections/list-connect-networking-connections.js +9 -1
- package/tools/networking/connect/connections/list-connect-networking-connections.js.map +1 -1
- package/tools/networking/connect/connections/list-connect-networking-connections.mjs +11 -3
- package/tools/networking/connect/connections/list-connect-networking-connections.mjs.map +1 -1
- package/tools/networking/connect/connections/update-connect-networking-connections.d.mts.map +1 -1
- package/tools/networking/connect/connections/update-connect-networking-connections.d.ts.map +1 -1
- package/tools/networking/connect/connections/update-connect-networking-connections.js +9 -1
- package/tools/networking/connect/connections/update-connect-networking-connections.js.map +1 -1
- package/tools/networking/connect/connections/update-connect-networking-connections.mjs +11 -3
- package/tools/networking/connect/connections/update-connect-networking-connections.mjs.map +1 -1
- package/tools/networking/connect/routes/list-connect-networking-routes.d.mts.map +1 -1
- package/tools/networking/connect/routes/list-connect-networking-routes.d.ts.map +1 -1
- package/tools/networking/connect/routes/list-connect-networking-routes.js +9 -1
- package/tools/networking/connect/routes/list-connect-networking-routes.js.map +1 -1
- package/tools/networking/connect/routes/list-connect-networking-routes.mjs +11 -3
- package/tools/networking/connect/routes/list-connect-networking-routes.mjs.map +1 -1
- package/tools/networking/firewall-rules/create-networking-firewall-rules.d.mts.map +1 -1
- package/tools/networking/firewall-rules/create-networking-firewall-rules.d.ts.map +1 -1
- package/tools/networking/firewall-rules/create-networking-firewall-rules.js +11 -3
- package/tools/networking/firewall-rules/create-networking-firewall-rules.js.map +1 -1
- package/tools/networking/firewall-rules/create-networking-firewall-rules.mjs +13 -5
- package/tools/networking/firewall-rules/create-networking-firewall-rules.mjs.map +1 -1
- package/tools/networking/firewall-rules/delete-networking-firewall-rules.d.mts.map +1 -1
- package/tools/networking/firewall-rules/delete-networking-firewall-rules.d.ts.map +1 -1
- package/tools/networking/firewall-rules/delete-networking-firewall-rules.js +9 -1
- package/tools/networking/firewall-rules/delete-networking-firewall-rules.js.map +1 -1
- package/tools/networking/firewall-rules/delete-networking-firewall-rules.mjs +11 -3
- package/tools/networking/firewall-rules/delete-networking-firewall-rules.mjs.map +1 -1
- package/tools/networking/firewall-rules/get-networking-firewall-rules.d.mts.map +1 -1
- package/tools/networking/firewall-rules/get-networking-firewall-rules.d.ts.map +1 -1
- package/tools/networking/firewall-rules/get-networking-firewall-rules.js +9 -1
- package/tools/networking/firewall-rules/get-networking-firewall-rules.js.map +1 -1
- package/tools/networking/firewall-rules/get-networking-firewall-rules.mjs +11 -3
- package/tools/networking/firewall-rules/get-networking-firewall-rules.mjs.map +1 -1
- package/tools/networking/firewall-rules/list-networking-firewall-rules.d.mts.map +1 -1
- package/tools/networking/firewall-rules/list-networking-firewall-rules.d.ts.map +1 -1
- package/tools/networking/firewall-rules/list-networking-firewall-rules.js +9 -1
- package/tools/networking/firewall-rules/list-networking-firewall-rules.js.map +1 -1
- package/tools/networking/firewall-rules/list-networking-firewall-rules.mjs +11 -3
- package/tools/networking/firewall-rules/list-networking-firewall-rules.mjs.map +1 -1
- package/tools/networking/firewall-rules/update-networking-firewall-rules.d.mts.map +1 -1
- package/tools/networking/firewall-rules/update-networking-firewall-rules.d.ts.map +1 -1
- package/tools/networking/firewall-rules/update-networking-firewall-rules.js +11 -3
- package/tools/networking/firewall-rules/update-networking-firewall-rules.js.map +1 -1
- package/tools/networking/firewall-rules/update-networking-firewall-rules.mjs +13 -5
- package/tools/networking/firewall-rules/update-networking-firewall-rules.mjs.map +1 -1
- package/tools/networking/vpcs/availability/create-vpcs-networking-availability.d.mts.map +1 -1
- package/tools/networking/vpcs/availability/create-vpcs-networking-availability.d.ts.map +1 -1
- package/tools/networking/vpcs/availability/create-vpcs-networking-availability.js +9 -1
- package/tools/networking/vpcs/availability/create-vpcs-networking-availability.js.map +1 -1
- package/tools/networking/vpcs/availability/create-vpcs-networking-availability.mjs +11 -3
- package/tools/networking/vpcs/availability/create-vpcs-networking-availability.mjs.map +1 -1
- package/tools/networking/vpcs/availability/update-vpcs-networking-availability.d.mts.map +1 -1
- package/tools/networking/vpcs/availability/update-vpcs-networking-availability.d.ts.map +1 -1
- package/tools/networking/vpcs/availability/update-vpcs-networking-availability.js +9 -1
- package/tools/networking/vpcs/availability/update-vpcs-networking-availability.js.map +1 -1
- package/tools/networking/vpcs/availability/update-vpcs-networking-availability.mjs +11 -3
- package/tools/networking/vpcs/availability/update-vpcs-networking-availability.mjs.map +1 -1
- package/tools/networking/vpcs/create-networking-vpcs.d.mts.map +1 -1
- package/tools/networking/vpcs/create-networking-vpcs.d.ts.map +1 -1
- package/tools/networking/vpcs/create-networking-vpcs.js +9 -1
- package/tools/networking/vpcs/create-networking-vpcs.js.map +1 -1
- package/tools/networking/vpcs/create-networking-vpcs.mjs +11 -3
- package/tools/networking/vpcs/create-networking-vpcs.mjs.map +1 -1
- package/tools/networking/vpcs/delete-networking-vpcs.d.mts.map +1 -1
- package/tools/networking/vpcs/delete-networking-vpcs.d.ts.map +1 -1
- package/tools/networking/vpcs/delete-networking-vpcs.js +9 -1
- package/tools/networking/vpcs/delete-networking-vpcs.js.map +1 -1
- package/tools/networking/vpcs/delete-networking-vpcs.mjs +11 -3
- package/tools/networking/vpcs/delete-networking-vpcs.mjs.map +1 -1
- package/tools/networking/vpcs/get-networking-vpcs.d.mts.map +1 -1
- package/tools/networking/vpcs/get-networking-vpcs.d.ts.map +1 -1
- package/tools/networking/vpcs/get-networking-vpcs.js +9 -1
- package/tools/networking/vpcs/get-networking-vpcs.js.map +1 -1
- package/tools/networking/vpcs/get-networking-vpcs.mjs +11 -3
- package/tools/networking/vpcs/get-networking-vpcs.mjs.map +1 -1
- package/tools/networking/vpcs/list-networking-vpcs.d.mts.map +1 -1
- package/tools/networking/vpcs/list-networking-vpcs.d.ts.map +1 -1
- package/tools/networking/vpcs/list-networking-vpcs.js +9 -1
- package/tools/networking/vpcs/list-networking-vpcs.js.map +1 -1
- package/tools/networking/vpcs/list-networking-vpcs.mjs +11 -3
- package/tools/networking/vpcs/list-networking-vpcs.mjs.map +1 -1
- package/tools/networking/vpcs/update-networking-vpcs.d.mts.map +1 -1
- package/tools/networking/vpcs/update-networking-vpcs.d.ts.map +1 -1
- package/tools/networking/vpcs/update-networking-vpcs.js +9 -1
- package/tools/networking/vpcs/update-networking-vpcs.js.map +1 -1
- package/tools/networking/vpcs/update-networking-vpcs.mjs +11 -3
- package/tools/networking/vpcs/update-networking-vpcs.mjs.map +1 -1
- package/tools/operations/get-operations.d.mts.map +1 -1
- package/tools/operations/get-operations.d.ts.map +1 -1
- package/tools/operations/get-operations.js +9 -1
- package/tools/operations/get-operations.js.map +1 -1
- package/tools/operations/get-operations.mjs +11 -3
- package/tools/operations/get-operations.mjs.map +1 -1
- package/tools/operations/list-operations.d.mts.map +1 -1
- package/tools/operations/list-operations.d.ts.map +1 -1
- package/tools/operations/list-operations.js +9 -1
- package/tools/operations/list-operations.js.map +1 -1
- package/tools/operations/list-operations.mjs +11 -3
- package/tools/operations/list-operations.mjs.map +1 -1
- package/tools/projects/create-projects.d.mts +51 -0
- package/tools/projects/create-projects.d.mts.map +1 -0
- package/tools/projects/create-projects.d.ts +51 -0
- package/tools/projects/create-projects.d.ts.map +1 -0
- package/tools/projects/create-projects.js +56 -0
- package/tools/projects/create-projects.js.map +1 -0
- package/tools/projects/create-projects.mjs +52 -0
- package/tools/projects/create-projects.mjs.map +1 -0
- package/tools/projects/delete-projects.d.mts +51 -0
- package/tools/projects/delete-projects.d.mts.map +1 -0
- package/tools/projects/delete-projects.d.ts +51 -0
- package/tools/projects/delete-projects.d.ts.map +1 -0
- package/tools/projects/delete-projects.js +37 -0
- package/tools/projects/delete-projects.js.map +1 -0
- package/tools/projects/delete-projects.mjs +33 -0
- package/tools/projects/delete-projects.mjs.map +1 -0
- package/tools/projects/get-projects.d.mts +51 -0
- package/tools/projects/get-projects.d.mts.map +1 -0
- package/tools/projects/get-projects.d.ts +51 -0
- package/tools/projects/get-projects.d.ts.map +1 -0
- package/tools/projects/get-projects.js +50 -0
- package/tools/projects/get-projects.js.map +1 -0
- package/tools/projects/get-projects.mjs +46 -0
- package/tools/projects/get-projects.mjs.map +1 -0
- package/tools/projects/list-projects.d.mts +51 -0
- package/tools/projects/list-projects.d.mts.map +1 -0
- package/tools/projects/list-projects.d.ts +51 -0
- package/tools/projects/list-projects.d.ts.map +1 -0
- package/tools/projects/list-projects.js +56 -0
- package/tools/projects/list-projects.js.map +1 -0
- package/tools/projects/list-projects.mjs +52 -0
- package/tools/projects/list-projects.mjs.map +1 -0
- package/tools/projects/update-projects.d.mts +51 -0
- package/tools/projects/update-projects.d.mts.map +1 -0
- package/tools/projects/update-projects.d.ts +51 -0
- package/tools/projects/update-projects.d.ts.map +1 -0
- package/tools/projects/update-projects.js +59 -0
- package/tools/projects/update-projects.js.map +1 -0
- package/tools/projects/update-projects.mjs +55 -0
- package/tools/projects/update-projects.mjs.map +1 -0
- package/tools/rpc-nodes/dedicated/blockchains/list-dedicated-rpc-nodes-blockchains.d.mts.map +1 -1
- package/tools/rpc-nodes/dedicated/blockchains/list-dedicated-rpc-nodes-blockchains.d.ts.map +1 -1
- package/tools/rpc-nodes/dedicated/blockchains/list-dedicated-rpc-nodes-blockchains.js +9 -1
- package/tools/rpc-nodes/dedicated/blockchains/list-dedicated-rpc-nodes-blockchains.js.map +1 -1
- package/tools/rpc-nodes/dedicated/blockchains/list-dedicated-rpc-nodes-blockchains.mjs +11 -3
- package/tools/rpc-nodes/dedicated/blockchains/list-dedicated-rpc-nodes-blockchains.mjs.map +1 -1
- package/tools/rpc-nodes/dedicated/get-rpc-nodes-dedicated.d.mts.map +1 -1
- package/tools/rpc-nodes/dedicated/get-rpc-nodes-dedicated.d.ts.map +1 -1
- package/tools/rpc-nodes/dedicated/get-rpc-nodes-dedicated.js +10 -2
- package/tools/rpc-nodes/dedicated/get-rpc-nodes-dedicated.js.map +1 -1
- package/tools/rpc-nodes/dedicated/get-rpc-nodes-dedicated.mjs +12 -4
- package/tools/rpc-nodes/dedicated/get-rpc-nodes-dedicated.mjs.map +1 -1
- package/tools/rpc-nodes/dedicated/list-rpc-nodes-dedicated.d.mts.map +1 -1
- package/tools/rpc-nodes/dedicated/list-rpc-nodes-dedicated.d.ts.map +1 -1
- package/tools/rpc-nodes/dedicated/list-rpc-nodes-dedicated.js +14 -2
- package/tools/rpc-nodes/dedicated/list-rpc-nodes-dedicated.js.map +1 -1
- package/tools/rpc-nodes/dedicated/list-rpc-nodes-dedicated.mjs +16 -4
- package/tools/rpc-nodes/dedicated/list-rpc-nodes-dedicated.mjs.map +1 -1
- package/tools/rpc-nodes/flex/blockchains/list-flex-rpc-nodes-blockchains.d.mts.map +1 -1
- package/tools/rpc-nodes/flex/blockchains/list-flex-rpc-nodes-blockchains.d.ts.map +1 -1
- package/tools/rpc-nodes/flex/blockchains/list-flex-rpc-nodes-blockchains.js +9 -1
- package/tools/rpc-nodes/flex/blockchains/list-flex-rpc-nodes-blockchains.js.map +1 -1
- package/tools/rpc-nodes/flex/blockchains/list-flex-rpc-nodes-blockchains.mjs +11 -3
- package/tools/rpc-nodes/flex/blockchains/list-flex-rpc-nodes-blockchains.mjs.map +1 -1
- package/tools/rpc-nodes/flex/create-rpc-nodes-flex.d.mts.map +1 -1
- package/tools/rpc-nodes/flex/create-rpc-nodes-flex.d.ts.map +1 -1
- package/tools/rpc-nodes/flex/create-rpc-nodes-flex.js +10 -2
- package/tools/rpc-nodes/flex/create-rpc-nodes-flex.js.map +1 -1
- package/tools/rpc-nodes/flex/create-rpc-nodes-flex.mjs +12 -4
- package/tools/rpc-nodes/flex/create-rpc-nodes-flex.mjs.map +1 -1
- package/tools/rpc-nodes/flex/get-rpc-nodes-flex.d.mts.map +1 -1
- package/tools/rpc-nodes/flex/get-rpc-nodes-flex.d.ts.map +1 -1
- package/tools/rpc-nodes/flex/get-rpc-nodes-flex.js +10 -2
- package/tools/rpc-nodes/flex/get-rpc-nodes-flex.js.map +1 -1
- package/tools/rpc-nodes/flex/get-rpc-nodes-flex.mjs +12 -4
- package/tools/rpc-nodes/flex/get-rpc-nodes-flex.mjs.map +1 -1
- package/tools/rpc-nodes/flex/list-rpc-nodes-flex.d.mts.map +1 -1
- package/tools/rpc-nodes/flex/list-rpc-nodes-flex.d.ts.map +1 -1
- package/tools/rpc-nodes/flex/list-rpc-nodes-flex.js +14 -2
- package/tools/rpc-nodes/flex/list-rpc-nodes-flex.js.map +1 -1
- package/tools/rpc-nodes/flex/list-rpc-nodes-flex.mjs +16 -4
- package/tools/rpc-nodes/flex/list-rpc-nodes-flex.mjs.map +1 -1
- package/tools/rpc-nodes/flex/update-rpc-nodes-flex.d.mts.map +1 -1
- package/tools/rpc-nodes/flex/update-rpc-nodes-flex.d.ts.map +1 -1
- package/tools/rpc-nodes/flex/update-rpc-nodes-flex.js +10 -2
- package/tools/rpc-nodes/flex/update-rpc-nodes-flex.js.map +1 -1
- package/tools/rpc-nodes/flex/update-rpc-nodes-flex.mjs +12 -4
- package/tools/rpc-nodes/flex/update-rpc-nodes-flex.mjs.map +1 -1
- package/tools/types.d.mts +1 -0
- package/tools/types.d.mts.map +1 -1
- package/tools/types.d.ts +1 -0
- package/tools/types.d.ts.map +1 -1
- package/tools/types.js +12 -0
- package/tools/types.js.map +1 -1
- package/tools/types.mjs +11 -0
- package/tools/types.mjs.map +1 -1
- package/tools/user/get-user.d.mts.map +1 -1
- package/tools/user/get-user.d.ts.map +1 -1
- package/tools/user/get-user.js +9 -1
- package/tools/user/get-user.js.map +1 -1
- package/tools/user/get-user.mjs +11 -3
- package/tools/user/get-user.mjs.map +1 -1
- package/tools/vektor/balances/list-historical-vektor-balances.d.mts.map +1 -1
- package/tools/vektor/balances/list-historical-vektor-balances.d.ts.map +1 -1
- package/tools/vektor/balances/list-historical-vektor-balances.js +9 -1
- package/tools/vektor/balances/list-historical-vektor-balances.js.map +1 -1
- package/tools/vektor/balances/list-historical-vektor-balances.mjs +11 -3
- package/tools/vektor/balances/list-historical-vektor-balances.mjs.map +1 -1
- package/tools/vektor/balances/list-vektor-balances.d.mts.map +1 -1
- package/tools/vektor/balances/list-vektor-balances.d.ts.map +1 -1
- package/tools/vektor/balances/list-vektor-balances.js +9 -1
- package/tools/vektor/balances/list-vektor-balances.js.map +1 -1
- package/tools/vektor/balances/list-vektor-balances.mjs +11 -3
- package/tools/vektor/balances/list-vektor-balances.mjs.map +1 -1
- package/tools/vektor/borrow/accounts/list-borrow-vektor-accounts.d.mts.map +1 -1
- package/tools/vektor/borrow/accounts/list-borrow-vektor-accounts.d.ts.map +1 -1
- package/tools/vektor/borrow/accounts/list-borrow-vektor-accounts.js +9 -1
- package/tools/vektor/borrow/accounts/list-borrow-vektor-accounts.js.map +1 -1
- package/tools/vektor/borrow/accounts/list-borrow-vektor-accounts.mjs +11 -3
- package/tools/vektor/borrow/accounts/list-borrow-vektor-accounts.mjs.map +1 -1
- package/tools/vektor/borrow/accounts/list-historical-borrow-vektor-accounts.d.mts.map +1 -1
- package/tools/vektor/borrow/accounts/list-historical-borrow-vektor-accounts.d.ts.map +1 -1
- package/tools/vektor/borrow/accounts/list-historical-borrow-vektor-accounts.js +9 -1
- package/tools/vektor/borrow/accounts/list-historical-borrow-vektor-accounts.js.map +1 -1
- package/tools/vektor/borrow/accounts/list-historical-borrow-vektor-accounts.mjs +11 -3
- package/tools/vektor/borrow/accounts/list-historical-borrow-vektor-accounts.mjs.map +1 -1
- package/tools/vektor/bridge/quotes/list-bridge-vektor-quotes.d.mts.map +1 -1
- package/tools/vektor/bridge/quotes/list-bridge-vektor-quotes.d.ts.map +1 -1
- package/tools/vektor/bridge/quotes/list-bridge-vektor-quotes.js +9 -1
- package/tools/vektor/bridge/quotes/list-bridge-vektor-quotes.js.map +1 -1
- package/tools/vektor/bridge/quotes/list-bridge-vektor-quotes.mjs +11 -3
- package/tools/vektor/bridge/quotes/list-bridge-vektor-quotes.mjs.map +1 -1
- package/tools/vektor/buy/quotes/list-buy-vektor-quotes.d.mts.map +1 -1
- package/tools/vektor/buy/quotes/list-buy-vektor-quotes.d.ts.map +1 -1
- package/tools/vektor/buy/quotes/list-buy-vektor-quotes.js +9 -1
- package/tools/vektor/buy/quotes/list-buy-vektor-quotes.js.map +1 -1
- package/tools/vektor/buy/quotes/list-buy-vektor-quotes.mjs +11 -3
- package/tools/vektor/buy/quotes/list-buy-vektor-quotes.mjs.map +1 -1
- package/tools/vektor/lock/markets/list-lock-vektor-markets.d.mts.map +1 -1
- package/tools/vektor/lock/markets/list-lock-vektor-markets.d.ts.map +1 -1
- package/tools/vektor/lock/markets/list-lock-vektor-markets.js +9 -1
- package/tools/vektor/lock/markets/list-lock-vektor-markets.js.map +1 -1
- package/tools/vektor/lock/markets/list-lock-vektor-markets.mjs +11 -3
- package/tools/vektor/lock/markets/list-lock-vektor-markets.mjs.map +1 -1
- package/tools/vektor/prices/list-historical-vektor-prices.d.mts.map +1 -1
- package/tools/vektor/prices/list-historical-vektor-prices.d.ts.map +1 -1
- package/tools/vektor/prices/list-historical-vektor-prices.js +9 -1
- package/tools/vektor/prices/list-historical-vektor-prices.js.map +1 -1
- package/tools/vektor/prices/list-historical-vektor-prices.mjs +11 -3
- package/tools/vektor/prices/list-historical-vektor-prices.mjs.map +1 -1
- package/tools/vektor/prices/list-vektor-prices.d.mts.map +1 -1
- package/tools/vektor/prices/list-vektor-prices.d.ts.map +1 -1
- package/tools/vektor/prices/list-vektor-prices.js +9 -1
- package/tools/vektor/prices/list-vektor-prices.js.map +1 -1
- package/tools/vektor/prices/list-vektor-prices.mjs +11 -3
- package/tools/vektor/prices/list-vektor-prices.mjs.map +1 -1
- package/tools/vektor/registry/assets/list-registry-vektor-assets.d.mts.map +1 -1
- package/tools/vektor/registry/assets/list-registry-vektor-assets.d.ts.map +1 -1
- package/tools/vektor/registry/assets/list-registry-vektor-assets.js +9 -1
- package/tools/vektor/registry/assets/list-registry-vektor-assets.js.map +1 -1
- package/tools/vektor/registry/assets/list-registry-vektor-assets.mjs +11 -3
- package/tools/vektor/registry/assets/list-registry-vektor-assets.mjs.map +1 -1
- package/tools/vektor/registry/blockchains/list-registry-vektor-blockchains.d.mts.map +1 -1
- package/tools/vektor/registry/blockchains/list-registry-vektor-blockchains.d.ts.map +1 -1
- package/tools/vektor/registry/blockchains/list-registry-vektor-blockchains.js +9 -1
- package/tools/vektor/registry/blockchains/list-registry-vektor-blockchains.js.map +1 -1
- package/tools/vektor/registry/blockchains/list-registry-vektor-blockchains.mjs +11 -3
- package/tools/vektor/registry/blockchains/list-registry-vektor-blockchains.mjs.map +1 -1
- package/tools/vektor/registry/borrow-markets/list-registry-vektor-borrow-markets.d.mts.map +1 -1
- package/tools/vektor/registry/borrow-markets/list-registry-vektor-borrow-markets.d.ts.map +1 -1
- package/tools/vektor/registry/borrow-markets/list-registry-vektor-borrow-markets.js +9 -1
- package/tools/vektor/registry/borrow-markets/list-registry-vektor-borrow-markets.js.map +1 -1
- package/tools/vektor/registry/borrow-markets/list-registry-vektor-borrow-markets.mjs +11 -3
- package/tools/vektor/registry/borrow-markets/list-registry-vektor-borrow-markets.mjs.map +1 -1
- package/tools/vektor/registry/errors/list-registry-vektor-errors.d.mts.map +1 -1
- package/tools/vektor/registry/errors/list-registry-vektor-errors.d.ts.map +1 -1
- package/tools/vektor/registry/errors/list-registry-vektor-errors.js +9 -1
- package/tools/vektor/registry/errors/list-registry-vektor-errors.js.map +1 -1
- package/tools/vektor/registry/errors/list-registry-vektor-errors.mjs +11 -3
- package/tools/vektor/registry/errors/list-registry-vektor-errors.mjs.map +1 -1
- package/tools/vektor/registry/lend-markets/list-registry-vektor-lend-markets.d.mts.map +1 -1
- package/tools/vektor/registry/lend-markets/list-registry-vektor-lend-markets.d.ts.map +1 -1
- package/tools/vektor/registry/lend-markets/list-registry-vektor-lend-markets.js +9 -1
- package/tools/vektor/registry/lend-markets/list-registry-vektor-lend-markets.js.map +1 -1
- package/tools/vektor/registry/lend-markets/list-registry-vektor-lend-markets.mjs +11 -3
- package/tools/vektor/registry/lend-markets/list-registry-vektor-lend-markets.mjs.map +1 -1
- package/tools/vektor/registry/lp-pools/list-registry-vektor-lp-pools.d.mts.map +1 -1
- package/tools/vektor/registry/lp-pools/list-registry-vektor-lp-pools.d.ts.map +1 -1
- package/tools/vektor/registry/lp-pools/list-registry-vektor-lp-pools.js +9 -1
- package/tools/vektor/registry/lp-pools/list-registry-vektor-lp-pools.js.map +1 -1
- package/tools/vektor/registry/lp-pools/list-registry-vektor-lp-pools.mjs +11 -3
- package/tools/vektor/registry/lp-pools/list-registry-vektor-lp-pools.mjs.map +1 -1
- package/tools/vektor/registry/venues/list-registry-vektor-venues.d.mts.map +1 -1
- package/tools/vektor/registry/venues/list-registry-vektor-venues.d.ts.map +1 -1
- package/tools/vektor/registry/venues/list-registry-vektor-venues.js +9 -1
- package/tools/vektor/registry/venues/list-registry-vektor-venues.js.map +1 -1
- package/tools/vektor/registry/venues/list-registry-vektor-venues.mjs +11 -3
- package/tools/vektor/registry/venues/list-registry-vektor-venues.mjs.map +1 -1
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { isJqError, maybeFilter } from '@nirvana-labs/nirvana-mcp/filtering';
|
|
4
|
+
import { Metadata, asErrorResult, asTextContentResult } from '@nirvana-labs/nirvana-mcp/tools/types';
|
|
5
|
+
|
|
6
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
7
|
+
import NirvanaLabs from '@nirvana-labs/nirvana';
|
|
8
|
+
|
|
9
|
+
export const metadata: Metadata = {
|
|
10
|
+
resource: 'projects',
|
|
11
|
+
operation: 'read',
|
|
12
|
+
tags: [],
|
|
13
|
+
httpMethod: 'get',
|
|
14
|
+
httpPath: '/v1/projects',
|
|
15
|
+
operationId: 'list_projects',
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export const tool: Tool = {
|
|
19
|
+
name: 'list_projects',
|
|
20
|
+
description:
|
|
21
|
+
"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 projects for the authenticated user\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/project_list',\n $defs: {\n project_list: {\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n $ref: '#/$defs/project'\n }\n },\n pagination: {\n $ref: '#/$defs/pagination'\n }\n },\n required: [ 'items',\n 'pagination'\n ]\n },\n project: {\n type: 'object',\n description: 'Project response.',\n properties: {\n id: {\n type: 'string',\n description: 'Project ID.'\n },\n created_at: {\n type: 'string',\n description: 'When the Project was created.',\n format: 'date-time'\n },\n name: {\n type: 'string',\n description: 'Project name.'\n },\n tags: {\n type: 'array',\n description: 'Tags attached to the Project.',\n items: {\n type: 'string'\n }\n },\n updated_at: {\n type: 'string',\n description: 'When the Project was updated.',\n format: 'date-time'\n },\n user_id: {\n type: 'string',\n description: 'User ID that owns the project.'\n }\n },\n required: [ 'id',\n 'created_at',\n 'name',\n 'tags',\n 'updated_at',\n 'user_id'\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```",
|
|
22
|
+
inputSchema: {
|
|
23
|
+
type: 'object',
|
|
24
|
+
properties: {
|
|
25
|
+
cursor: {
|
|
26
|
+
type: 'string',
|
|
27
|
+
description: 'Pagination cursor returned by a previous request',
|
|
28
|
+
},
|
|
29
|
+
limit: {
|
|
30
|
+
type: 'integer',
|
|
31
|
+
description: 'Maximum number of items to return',
|
|
32
|
+
},
|
|
33
|
+
jq_filter: {
|
|
34
|
+
type: 'string',
|
|
35
|
+
title: 'jq Filter',
|
|
36
|
+
description:
|
|
37
|
+
'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/).',
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
required: [],
|
|
41
|
+
},
|
|
42
|
+
annotations: {
|
|
43
|
+
readOnlyHint: true,
|
|
44
|
+
},
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export const handler = async (client: NirvanaLabs, args: Record<string, unknown> | undefined) => {
|
|
48
|
+
const { jq_filter, ...body } = args as any;
|
|
49
|
+
const response = await client.projects.list(body).asResponse();
|
|
50
|
+
try {
|
|
51
|
+
return asTextContentResult(await maybeFilter(jq_filter, await response.json()));
|
|
52
|
+
} catch (error) {
|
|
53
|
+
if (isJqError(error)) {
|
|
54
|
+
return asErrorResult(error.message);
|
|
55
|
+
}
|
|
56
|
+
throw error;
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export default { metadata, tool, handler };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { isJqError, maybeFilter } from '@nirvana-labs/nirvana-mcp/filtering';
|
|
4
|
+
import { Metadata, asErrorResult, asTextContentResult } from '@nirvana-labs/nirvana-mcp/tools/types';
|
|
5
|
+
|
|
6
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
7
|
+
import NirvanaLabs from '@nirvana-labs/nirvana';
|
|
8
|
+
|
|
9
|
+
export const metadata: Metadata = {
|
|
10
|
+
resource: 'projects',
|
|
11
|
+
operation: 'write',
|
|
12
|
+
tags: [],
|
|
13
|
+
httpMethod: 'patch',
|
|
14
|
+
httpPath: '/v1/projects/{project_id}',
|
|
15
|
+
operationId: 'update_project',
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export const tool: Tool = {
|
|
19
|
+
name: 'update_projects',
|
|
20
|
+
description:
|
|
21
|
+
"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 project\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/project',\n $defs: {\n project: {\n type: 'object',\n description: 'Project response.',\n properties: {\n id: {\n type: 'string',\n description: 'Project ID.'\n },\n created_at: {\n type: 'string',\n description: 'When the Project was created.',\n format: 'date-time'\n },\n name: {\n type: 'string',\n description: 'Project name.'\n },\n tags: {\n type: 'array',\n description: 'Tags attached to the Project.',\n items: {\n type: 'string'\n }\n },\n updated_at: {\n type: 'string',\n description: 'When the Project was updated.',\n format: 'date-time'\n },\n user_id: {\n type: 'string',\n description: 'User ID that owns the project.'\n }\n },\n required: [ 'id',\n 'created_at',\n 'name',\n 'tags',\n 'updated_at',\n 'user_id'\n ]\n }\n }\n}\n```",
|
|
22
|
+
inputSchema: {
|
|
23
|
+
type: 'object',
|
|
24
|
+
properties: {
|
|
25
|
+
project_id: {
|
|
26
|
+
type: 'string',
|
|
27
|
+
},
|
|
28
|
+
name: {
|
|
29
|
+
type: 'string',
|
|
30
|
+
description: 'Project name.',
|
|
31
|
+
},
|
|
32
|
+
tags: {
|
|
33
|
+
type: 'array',
|
|
34
|
+
description: 'Tags to attach to the Project.',
|
|
35
|
+
items: {
|
|
36
|
+
type: 'string',
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
jq_filter: {
|
|
40
|
+
type: 'string',
|
|
41
|
+
title: 'jq Filter',
|
|
42
|
+
description:
|
|
43
|
+
'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
required: ['project_id'],
|
|
47
|
+
},
|
|
48
|
+
annotations: {},
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export const handler = async (client: NirvanaLabs, args: Record<string, unknown> | undefined) => {
|
|
52
|
+
const { project_id, jq_filter, ...body } = args as any;
|
|
53
|
+
try {
|
|
54
|
+
return asTextContentResult(await maybeFilter(jq_filter, await client.projects.update(project_id, body)));
|
|
55
|
+
} catch (error) {
|
|
56
|
+
if (isJqError(error)) {
|
|
57
|
+
return asErrorResult(error.message);
|
|
58
|
+
}
|
|
59
|
+
throw error;
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
export default { metadata, tool, handler };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { maybeFilter } from '@nirvana-labs/nirvana-mcp/filtering';
|
|
4
|
-
import { Metadata, asTextContentResult } from '@nirvana-labs/nirvana-mcp/tools/types';
|
|
3
|
+
import { isJqError, maybeFilter } from '@nirvana-labs/nirvana-mcp/filtering';
|
|
4
|
+
import { Metadata, asErrorResult, asTextContentResult } from '@nirvana-labs/nirvana-mcp/tools/types';
|
|
5
5
|
|
|
6
6
|
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
7
7
|
import NirvanaLabs from '@nirvana-labs/nirvana';
|
|
@@ -47,7 +47,14 @@ export const tool: Tool = {
|
|
|
47
47
|
export const handler = async (client: NirvanaLabs, args: Record<string, unknown> | undefined) => {
|
|
48
48
|
const { jq_filter, ...body } = args as any;
|
|
49
49
|
const response = await client.rpcNodes.dedicated.blockchains.list(body).asResponse();
|
|
50
|
-
|
|
50
|
+
try {
|
|
51
|
+
return asTextContentResult(await maybeFilter(jq_filter, await response.json()));
|
|
52
|
+
} catch (error) {
|
|
53
|
+
if (isJqError(error)) {
|
|
54
|
+
return asErrorResult(error.message);
|
|
55
|
+
}
|
|
56
|
+
throw error;
|
|
57
|
+
}
|
|
51
58
|
};
|
|
52
59
|
|
|
53
60
|
export default { metadata, tool, handler };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { maybeFilter } from '@nirvana-labs/nirvana-mcp/filtering';
|
|
4
|
-
import { Metadata, asTextContentResult } from '@nirvana-labs/nirvana-mcp/tools/types';
|
|
3
|
+
import { isJqError, maybeFilter } from '@nirvana-labs/nirvana-mcp/filtering';
|
|
4
|
+
import { Metadata, asErrorResult, asTextContentResult } from '@nirvana-labs/nirvana-mcp/tools/types';
|
|
5
5
|
|
|
6
6
|
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
7
7
|
import NirvanaLabs from '@nirvana-labs/nirvana';
|
|
@@ -18,7 +18,7 @@ export const metadata: Metadata = {
|
|
|
18
18
|
export const tool: Tool = {
|
|
19
19
|
name: 'get_rpc_nodes_dedicated',
|
|
20
20
|
description:
|
|
21
|
-
"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 Dedicated\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/dedicated',\n $defs: {\n dedicated: {\n type: 'object',\n description: 'RPC Node Dedicated details.',\n properties: {\n id: {\n type: 'string',\n description: 'Unique identifier for the RPC Node Dedicated.'\n },\n blockchain: {\n type: 'string',\n description: 'Blockchain type.'\n },\n created_at: {\n type: 'string',\n description: 'When the RPC Node Dedicated 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 Dedicated.'\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 Dedicated.',\n items: {\n type: 'string'\n }\n },\n updated_at: {\n type: 'string',\n description: 'When the RPC Node Dedicated 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```",
|
|
21
|
+
"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 Dedicated\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/dedicated',\n $defs: {\n dedicated: {\n type: 'object',\n description: 'RPC Node Dedicated details.',\n properties: {\n id: {\n type: 'string',\n description: 'Unique identifier for the RPC Node Dedicated.'\n },\n blockchain: {\n type: 'string',\n description: 'Blockchain type.'\n },\n created_at: {\n type: 'string',\n description: 'When the RPC Node Dedicated 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 Dedicated.'\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 Dedicated.'\n },\n tags: {\n type: 'array',\n description: 'Tags to attach to the RPC Node Dedicated.',\n items: {\n type: 'string'\n }\n },\n updated_at: {\n type: 'string',\n description: 'When the RPC Node Dedicated 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```",
|
|
22
22
|
inputSchema: {
|
|
23
23
|
type: 'object',
|
|
24
24
|
properties: {
|
|
@@ -41,7 +41,14 @@ export const tool: Tool = {
|
|
|
41
41
|
|
|
42
42
|
export const handler = async (client: NirvanaLabs, args: Record<string, unknown> | undefined) => {
|
|
43
43
|
const { node_id, jq_filter, ...body } = args as any;
|
|
44
|
-
|
|
44
|
+
try {
|
|
45
|
+
return asTextContentResult(await maybeFilter(jq_filter, await client.rpcNodes.dedicated.get(node_id)));
|
|
46
|
+
} catch (error) {
|
|
47
|
+
if (isJqError(error)) {
|
|
48
|
+
return asErrorResult(error.message);
|
|
49
|
+
}
|
|
50
|
+
throw error;
|
|
51
|
+
}
|
|
45
52
|
};
|
|
46
53
|
|
|
47
54
|
export default { metadata, tool, handler };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { maybeFilter } from '@nirvana-labs/nirvana-mcp/filtering';
|
|
4
|
-
import { Metadata, asTextContentResult } from '@nirvana-labs/nirvana-mcp/tools/types';
|
|
3
|
+
import { isJqError, maybeFilter } from '@nirvana-labs/nirvana-mcp/filtering';
|
|
4
|
+
import { Metadata, asErrorResult, asTextContentResult } from '@nirvana-labs/nirvana-mcp/tools/types';
|
|
5
5
|
|
|
6
6
|
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
7
7
|
import NirvanaLabs from '@nirvana-labs/nirvana';
|
|
@@ -18,7 +18,7 @@ export const metadata: Metadata = {
|
|
|
18
18
|
export const tool: Tool = {
|
|
19
19
|
name: 'list_rpc_nodes_dedicated',
|
|
20
20
|
description:
|
|
21
|
-
"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 Dedicated you created\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/dedicated_list',\n $defs: {\n dedicated_list: {\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n $ref: '#/$defs/dedicated'\n }\n },\n pagination: {\n $ref: '#/$defs/pagination'\n }\n },\n required: [ 'items',\n 'pagination'\n ]\n },\n dedicated: {\n type: 'object',\n description: 'RPC Node Dedicated details.',\n properties: {\n id: {\n type: 'string',\n description: 'Unique identifier for the RPC Node Dedicated.'\n },\n blockchain: {\n type: 'string',\n description: 'Blockchain type.'\n },\n created_at: {\n type: 'string',\n description: 'When the RPC Node Dedicated 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 Dedicated.'\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 Dedicated.',\n items: {\n type: 'string'\n }\n },\n updated_at: {\n type: 'string',\n description: 'When the RPC Node Dedicated 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```",
|
|
21
|
+
"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 Dedicated you created\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/dedicated_list',\n $defs: {\n dedicated_list: {\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n $ref: '#/$defs/dedicated'\n }\n },\n pagination: {\n $ref: '#/$defs/pagination'\n }\n },\n required: [ 'items',\n 'pagination'\n ]\n },\n dedicated: {\n type: 'object',\n description: 'RPC Node Dedicated details.',\n properties: {\n id: {\n type: 'string',\n description: 'Unique identifier for the RPC Node Dedicated.'\n },\n blockchain: {\n type: 'string',\n description: 'Blockchain type.'\n },\n created_at: {\n type: 'string',\n description: 'When the RPC Node Dedicated 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 Dedicated.'\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 Dedicated.'\n },\n tags: {\n type: 'array',\n description: 'Tags to attach to the RPC Node Dedicated.',\n items: {\n type: 'string'\n }\n },\n updated_at: {\n type: 'string',\n description: 'When the RPC Node Dedicated 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```",
|
|
22
22
|
inputSchema: {
|
|
23
23
|
type: 'object',
|
|
24
24
|
properties: {
|
|
@@ -30,6 +30,10 @@ export const tool: Tool = {
|
|
|
30
30
|
type: 'integer',
|
|
31
31
|
description: 'Maximum number of items to return',
|
|
32
32
|
},
|
|
33
|
+
project_id: {
|
|
34
|
+
type: 'string',
|
|
35
|
+
description: 'Project ID of resources to request',
|
|
36
|
+
},
|
|
33
37
|
jq_filter: {
|
|
34
38
|
type: 'string',
|
|
35
39
|
title: 'jq Filter',
|
|
@@ -47,7 +51,14 @@ export const tool: Tool = {
|
|
|
47
51
|
export const handler = async (client: NirvanaLabs, args: Record<string, unknown> | undefined) => {
|
|
48
52
|
const { jq_filter, ...body } = args as any;
|
|
49
53
|
const response = await client.rpcNodes.dedicated.list(body).asResponse();
|
|
50
|
-
|
|
54
|
+
try {
|
|
55
|
+
return asTextContentResult(await maybeFilter(jq_filter, await response.json()));
|
|
56
|
+
} catch (error) {
|
|
57
|
+
if (isJqError(error)) {
|
|
58
|
+
return asErrorResult(error.message);
|
|
59
|
+
}
|
|
60
|
+
throw error;
|
|
61
|
+
}
|
|
51
62
|
};
|
|
52
63
|
|
|
53
64
|
export default { metadata, tool, handler };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { maybeFilter } from '@nirvana-labs/nirvana-mcp/filtering';
|
|
4
|
-
import { Metadata, asTextContentResult } from '@nirvana-labs/nirvana-mcp/tools/types';
|
|
3
|
+
import { isJqError, maybeFilter } from '@nirvana-labs/nirvana-mcp/filtering';
|
|
4
|
+
import { Metadata, asErrorResult, asTextContentResult } from '@nirvana-labs/nirvana-mcp/tools/types';
|
|
5
5
|
|
|
6
6
|
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
7
7
|
import NirvanaLabs from '@nirvana-labs/nirvana';
|
|
@@ -47,7 +47,14 @@ export const tool: Tool = {
|
|
|
47
47
|
export const handler = async (client: NirvanaLabs, args: Record<string, unknown> | undefined) => {
|
|
48
48
|
const { jq_filter, ...body } = args as any;
|
|
49
49
|
const response = await client.rpcNodes.flex.blockchains.list(body).asResponse();
|
|
50
|
-
|
|
50
|
+
try {
|
|
51
|
+
return asTextContentResult(await maybeFilter(jq_filter, await response.json()));
|
|
52
|
+
} catch (error) {
|
|
53
|
+
if (isJqError(error)) {
|
|
54
|
+
return asErrorResult(error.message);
|
|
55
|
+
}
|
|
56
|
+
throw error;
|
|
57
|
+
}
|
|
51
58
|
};
|
|
52
59
|
|
|
53
60
|
export default { metadata, tool, handler };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { maybeFilter } from '@nirvana-labs/nirvana-mcp/filtering';
|
|
4
|
-
import { Metadata, asTextContentResult } from '@nirvana-labs/nirvana-mcp/tools/types';
|
|
3
|
+
import { isJqError, maybeFilter } from '@nirvana-labs/nirvana-mcp/filtering';
|
|
4
|
+
import { Metadata, asErrorResult, asTextContentResult } from '@nirvana-labs/nirvana-mcp/tools/types';
|
|
5
5
|
|
|
6
6
|
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
7
7
|
import NirvanaLabs from '@nirvana-labs/nirvana';
|
|
@@ -18,7 +18,7 @@ export const metadata: Metadata = {
|
|
|
18
18
|
export const tool: Tool = {
|
|
19
19
|
name: 'create_rpc_nodes_flex',
|
|
20
20
|
description:
|
|
21
|
-
"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```",
|
|
21
|
+
"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```",
|
|
22
22
|
inputSchema: {
|
|
23
23
|
type: 'object',
|
|
24
24
|
properties: {
|
|
@@ -55,7 +55,14 @@ export const tool: Tool = {
|
|
|
55
55
|
|
|
56
56
|
export const handler = async (client: NirvanaLabs, args: Record<string, unknown> | undefined) => {
|
|
57
57
|
const { jq_filter, ...body } = args as any;
|
|
58
|
-
|
|
58
|
+
try {
|
|
59
|
+
return asTextContentResult(await maybeFilter(jq_filter, await client.rpcNodes.flex.create(body)));
|
|
60
|
+
} catch (error) {
|
|
61
|
+
if (isJqError(error)) {
|
|
62
|
+
return asErrorResult(error.message);
|
|
63
|
+
}
|
|
64
|
+
throw error;
|
|
65
|
+
}
|
|
59
66
|
};
|
|
60
67
|
|
|
61
68
|
export default { metadata, tool, handler };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { maybeFilter } from '@nirvana-labs/nirvana-mcp/filtering';
|
|
4
|
-
import { Metadata, asTextContentResult } from '@nirvana-labs/nirvana-mcp/tools/types';
|
|
3
|
+
import { isJqError, maybeFilter } from '@nirvana-labs/nirvana-mcp/filtering';
|
|
4
|
+
import { Metadata, asErrorResult, asTextContentResult } from '@nirvana-labs/nirvana-mcp/tools/types';
|
|
5
5
|
|
|
6
6
|
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
7
7
|
import NirvanaLabs from '@nirvana-labs/nirvana';
|
|
@@ -18,7 +18,7 @@ export const metadata: Metadata = {
|
|
|
18
18
|
export const tool: Tool = {
|
|
19
19
|
name: 'get_rpc_nodes_flex',
|
|
20
20
|
description:
|
|
21
|
-
"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```",
|
|
21
|
+
"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```",
|
|
22
22
|
inputSchema: {
|
|
23
23
|
type: 'object',
|
|
24
24
|
properties: {
|
|
@@ -41,7 +41,14 @@ export const tool: Tool = {
|
|
|
41
41
|
|
|
42
42
|
export const handler = async (client: NirvanaLabs, args: Record<string, unknown> | undefined) => {
|
|
43
43
|
const { node_id, jq_filter, ...body } = args as any;
|
|
44
|
-
|
|
44
|
+
try {
|
|
45
|
+
return asTextContentResult(await maybeFilter(jq_filter, await client.rpcNodes.flex.get(node_id)));
|
|
46
|
+
} catch (error) {
|
|
47
|
+
if (isJqError(error)) {
|
|
48
|
+
return asErrorResult(error.message);
|
|
49
|
+
}
|
|
50
|
+
throw error;
|
|
51
|
+
}
|
|
45
52
|
};
|
|
46
53
|
|
|
47
54
|
export default { metadata, tool, handler };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { maybeFilter } from '@nirvana-labs/nirvana-mcp/filtering';
|
|
4
|
-
import { Metadata, asTextContentResult } from '@nirvana-labs/nirvana-mcp/tools/types';
|
|
3
|
+
import { isJqError, maybeFilter } from '@nirvana-labs/nirvana-mcp/filtering';
|
|
4
|
+
import { Metadata, asErrorResult, asTextContentResult } from '@nirvana-labs/nirvana-mcp/tools/types';
|
|
5
5
|
|
|
6
6
|
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
7
7
|
import NirvanaLabs from '@nirvana-labs/nirvana';
|
|
@@ -18,7 +18,7 @@ export const metadata: Metadata = {
|
|
|
18
18
|
export const tool: Tool = {
|
|
19
19
|
name: 'list_rpc_nodes_flex',
|
|
20
20
|
description:
|
|
21
|
-
"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```",
|
|
21
|
+
"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```",
|
|
22
22
|
inputSchema: {
|
|
23
23
|
type: 'object',
|
|
24
24
|
properties: {
|
|
@@ -30,6 +30,10 @@ export const tool: Tool = {
|
|
|
30
30
|
type: 'integer',
|
|
31
31
|
description: 'Maximum number of items to return',
|
|
32
32
|
},
|
|
33
|
+
project_id: {
|
|
34
|
+
type: 'string',
|
|
35
|
+
description: 'Project ID of resources to request',
|
|
36
|
+
},
|
|
33
37
|
jq_filter: {
|
|
34
38
|
type: 'string',
|
|
35
39
|
title: 'jq Filter',
|
|
@@ -47,7 +51,14 @@ export const tool: Tool = {
|
|
|
47
51
|
export const handler = async (client: NirvanaLabs, args: Record<string, unknown> | undefined) => {
|
|
48
52
|
const { jq_filter, ...body } = args as any;
|
|
49
53
|
const response = await client.rpcNodes.flex.list(body).asResponse();
|
|
50
|
-
|
|
54
|
+
try {
|
|
55
|
+
return asTextContentResult(await maybeFilter(jq_filter, await response.json()));
|
|
56
|
+
} catch (error) {
|
|
57
|
+
if (isJqError(error)) {
|
|
58
|
+
return asErrorResult(error.message);
|
|
59
|
+
}
|
|
60
|
+
throw error;
|
|
61
|
+
}
|
|
51
62
|
};
|
|
52
63
|
|
|
53
64
|
export default { metadata, tool, handler };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { maybeFilter } from '@nirvana-labs/nirvana-mcp/filtering';
|
|
4
|
-
import { Metadata, asTextContentResult } from '@nirvana-labs/nirvana-mcp/tools/types';
|
|
3
|
+
import { isJqError, maybeFilter } from '@nirvana-labs/nirvana-mcp/filtering';
|
|
4
|
+
import { Metadata, asErrorResult, asTextContentResult } from '@nirvana-labs/nirvana-mcp/tools/types';
|
|
5
5
|
|
|
6
6
|
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
7
7
|
import NirvanaLabs from '@nirvana-labs/nirvana';
|
|
@@ -18,7 +18,7 @@ export const metadata: Metadata = {
|
|
|
18
18
|
export const tool: Tool = {
|
|
19
19
|
name: 'update_rpc_nodes_flex',
|
|
20
20
|
description:
|
|
21
|
-
"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```",
|
|
21
|
+
"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```",
|
|
22
22
|
inputSchema: {
|
|
23
23
|
type: 'object',
|
|
24
24
|
properties: {
|
|
@@ -50,7 +50,16 @@ export const tool: Tool = {
|
|
|
50
50
|
|
|
51
51
|
export const handler = async (client: NirvanaLabs, args: Record<string, unknown> | undefined) => {
|
|
52
52
|
const { node_id, jq_filter, ...body } = args as any;
|
|
53
|
-
|
|
53
|
+
try {
|
|
54
|
+
return asTextContentResult(
|
|
55
|
+
await maybeFilter(jq_filter, await client.rpcNodes.flex.update(node_id, body)),
|
|
56
|
+
);
|
|
57
|
+
} catch (error) {
|
|
58
|
+
if (isJqError(error)) {
|
|
59
|
+
return asErrorResult(error.message);
|
|
60
|
+
}
|
|
61
|
+
throw error;
|
|
62
|
+
}
|
|
54
63
|
};
|
|
55
64
|
|
|
56
65
|
export default { metadata, tool, handler };
|
package/src/tools/types.ts
CHANGED
|
@@ -87,6 +87,18 @@ export async function asBinaryContentResult(response: Response): Promise<ToolCal
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
+
export function asErrorResult(message: string): ToolCallResult {
|
|
91
|
+
return {
|
|
92
|
+
content: [
|
|
93
|
+
{
|
|
94
|
+
type: 'text',
|
|
95
|
+
text: message,
|
|
96
|
+
},
|
|
97
|
+
],
|
|
98
|
+
isError: true,
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
90
102
|
export type Metadata = {
|
|
91
103
|
resource: string;
|
|
92
104
|
operation: 'read' | 'write';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { maybeFilter } from '@nirvana-labs/nirvana-mcp/filtering';
|
|
4
|
-
import { Metadata, asTextContentResult } from '@nirvana-labs/nirvana-mcp/tools/types';
|
|
3
|
+
import { isJqError, maybeFilter } from '@nirvana-labs/nirvana-mcp/filtering';
|
|
4
|
+
import { Metadata, asErrorResult, asTextContentResult } from '@nirvana-labs/nirvana-mcp/tools/types';
|
|
5
5
|
|
|
6
6
|
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
7
7
|
import NirvanaLabs from '@nirvana-labs/nirvana';
|
|
@@ -38,7 +38,14 @@ export const tool: Tool = {
|
|
|
38
38
|
|
|
39
39
|
export const handler = async (client: NirvanaLabs, args: Record<string, unknown> | undefined) => {
|
|
40
40
|
const { jq_filter } = args as any;
|
|
41
|
-
|
|
41
|
+
try {
|
|
42
|
+
return asTextContentResult(await maybeFilter(jq_filter, await client.user.get()));
|
|
43
|
+
} catch (error) {
|
|
44
|
+
if (isJqError(error)) {
|
|
45
|
+
return asErrorResult(error.message);
|
|
46
|
+
}
|
|
47
|
+
throw error;
|
|
48
|
+
}
|
|
42
49
|
};
|
|
43
50
|
|
|
44
51
|
export default { metadata, tool, handler };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { maybeFilter } from '@nirvana-labs/nirvana-mcp/filtering';
|
|
4
|
-
import { Metadata, asTextContentResult } from '@nirvana-labs/nirvana-mcp/tools/types';
|
|
3
|
+
import { isJqError, maybeFilter } from '@nirvana-labs/nirvana-mcp/filtering';
|
|
4
|
+
import { Metadata, asErrorResult, asTextContentResult } from '@nirvana-labs/nirvana-mcp/tools/types';
|
|
5
5
|
|
|
6
6
|
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
7
7
|
import NirvanaLabs from '@nirvana-labs/nirvana';
|
|
@@ -108,7 +108,16 @@ export const tool: Tool = {
|
|
|
108
108
|
|
|
109
109
|
export const handler = async (client: NirvanaLabs, args: Record<string, unknown> | undefined) => {
|
|
110
110
|
const { jq_filter, ...body } = args as any;
|
|
111
|
-
|
|
111
|
+
try {
|
|
112
|
+
return asTextContentResult(
|
|
113
|
+
await maybeFilter(jq_filter, await client.vektor.balances.listHistorical(body)),
|
|
114
|
+
);
|
|
115
|
+
} catch (error) {
|
|
116
|
+
if (isJqError(error)) {
|
|
117
|
+
return asErrorResult(error.message);
|
|
118
|
+
}
|
|
119
|
+
throw error;
|
|
120
|
+
}
|
|
112
121
|
};
|
|
113
122
|
|
|
114
123
|
export default { metadata, tool, handler };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { maybeFilter } from '@nirvana-labs/nirvana-mcp/filtering';
|
|
4
|
-
import { Metadata, asTextContentResult } from '@nirvana-labs/nirvana-mcp/tools/types';
|
|
3
|
+
import { isJqError, maybeFilter } from '@nirvana-labs/nirvana-mcp/filtering';
|
|
4
|
+
import { Metadata, asErrorResult, asTextContentResult } from '@nirvana-labs/nirvana-mcp/tools/types';
|
|
5
5
|
|
|
6
6
|
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
7
7
|
import NirvanaLabs from '@nirvana-labs/nirvana';
|
|
@@ -102,7 +102,14 @@ export const tool: Tool = {
|
|
|
102
102
|
|
|
103
103
|
export const handler = async (client: NirvanaLabs, args: Record<string, unknown> | undefined) => {
|
|
104
104
|
const { jq_filter, ...body } = args as any;
|
|
105
|
-
|
|
105
|
+
try {
|
|
106
|
+
return asTextContentResult(await maybeFilter(jq_filter, await client.vektor.balances.list(body)));
|
|
107
|
+
} catch (error) {
|
|
108
|
+
if (isJqError(error)) {
|
|
109
|
+
return asErrorResult(error.message);
|
|
110
|
+
}
|
|
111
|
+
throw error;
|
|
112
|
+
}
|
|
106
113
|
};
|
|
107
114
|
|
|
108
115
|
export default { metadata, tool, handler };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { maybeFilter } from '@nirvana-labs/nirvana-mcp/filtering';
|
|
4
|
-
import { Metadata, asTextContentResult } from '@nirvana-labs/nirvana-mcp/tools/types';
|
|
3
|
+
import { isJqError, maybeFilter } from '@nirvana-labs/nirvana-mcp/filtering';
|
|
4
|
+
import { Metadata, asErrorResult, asTextContentResult } from '@nirvana-labs/nirvana-mcp/tools/types';
|
|
5
5
|
|
|
6
6
|
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
7
7
|
import NirvanaLabs from '@nirvana-labs/nirvana';
|
|
@@ -99,7 +99,14 @@ export const tool: Tool = {
|
|
|
99
99
|
|
|
100
100
|
export const handler = async (client: NirvanaLabs, args: Record<string, unknown> | undefined) => {
|
|
101
101
|
const { jq_filter, ...body } = args as any;
|
|
102
|
-
|
|
102
|
+
try {
|
|
103
|
+
return asTextContentResult(await maybeFilter(jq_filter, await client.vektor.borrow.accounts.list(body)));
|
|
104
|
+
} catch (error) {
|
|
105
|
+
if (isJqError(error)) {
|
|
106
|
+
return asErrorResult(error.message);
|
|
107
|
+
}
|
|
108
|
+
throw error;
|
|
109
|
+
}
|
|
103
110
|
};
|
|
104
111
|
|
|
105
112
|
export default { metadata, tool, handler };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { maybeFilter } from '@nirvana-labs/nirvana-mcp/filtering';
|
|
4
|
-
import { Metadata, asTextContentResult } from '@nirvana-labs/nirvana-mcp/tools/types';
|
|
3
|
+
import { isJqError, maybeFilter } from '@nirvana-labs/nirvana-mcp/filtering';
|
|
4
|
+
import { Metadata, asErrorResult, asTextContentResult } from '@nirvana-labs/nirvana-mcp/tools/types';
|
|
5
5
|
|
|
6
6
|
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
7
7
|
import NirvanaLabs from '@nirvana-labs/nirvana';
|
|
@@ -105,9 +105,16 @@ export const tool: Tool = {
|
|
|
105
105
|
|
|
106
106
|
export const handler = async (client: NirvanaLabs, args: Record<string, unknown> | undefined) => {
|
|
107
107
|
const { jq_filter, ...body } = args as any;
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
108
|
+
try {
|
|
109
|
+
return asTextContentResult(
|
|
110
|
+
await maybeFilter(jq_filter, await client.vektor.borrow.accounts.listHistorical(body)),
|
|
111
|
+
);
|
|
112
|
+
} catch (error) {
|
|
113
|
+
if (isJqError(error)) {
|
|
114
|
+
return asErrorResult(error.message);
|
|
115
|
+
}
|
|
116
|
+
throw error;
|
|
117
|
+
}
|
|
111
118
|
};
|
|
112
119
|
|
|
113
120
|
export default { metadata, tool, handler };
|