@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
package/README.md
CHANGED
|
@@ -255,6 +255,14 @@ The following tools are available in this MCP server.
|
|
|
255
255
|
- `list_operations` (`read`): List all operations
|
|
256
256
|
- `get_operations` (`read`): Get details about a specific operation
|
|
257
257
|
|
|
258
|
+
### Resource `projects`:
|
|
259
|
+
|
|
260
|
+
- `create_projects` (`write`): Create a new project
|
|
261
|
+
- `update_projects` (`write`): Update an existing project
|
|
262
|
+
- `list_projects` (`read`): List all projects for the authenticated user
|
|
263
|
+
- `delete_projects` (`write`): Delete a project
|
|
264
|
+
- `get_projects` (`read`): Get details about a project
|
|
265
|
+
|
|
258
266
|
### Resource `compute.vms`:
|
|
259
267
|
|
|
260
268
|
- `create_compute_vms` (`write`): Create a VM
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-tool-worker.d.mts","sourceRoot":"","sources":["src/code-tool-worker.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"code-tool-worker.d.mts","sourceRoot":"","sources":["src/code-tool-worker.ts"],"names":[],"mappings":";iBAmP0B,OAAO,KAAG,OAAO,CAAC,QAAQ,CAAC;;AAwDrD,wBAAyB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-tool-worker.d.ts","sourceRoot":"","sources":["src/code-tool-worker.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"code-tool-worker.d.ts","sourceRoot":"","sources":["src/code-tool-worker.ts"],"names":[],"mappings":";iBAmP0B,OAAO,KAAG,OAAO,CAAC,QAAQ,CAAC;;AAwDrD,wBAAyB"}
|
package/code-tool-worker.js
CHANGED
|
@@ -41,6 +41,11 @@ const fuse = new fuse_js_1.default([
|
|
|
41
41
|
'client.apiKeys.update',
|
|
42
42
|
'client.operations.get',
|
|
43
43
|
'client.operations.list',
|
|
44
|
+
'client.projects.create',
|
|
45
|
+
'client.projects.delete',
|
|
46
|
+
'client.projects.get',
|
|
47
|
+
'client.projects.list',
|
|
48
|
+
'client.projects.update',
|
|
44
49
|
'client.compute.vms.create',
|
|
45
50
|
'client.compute.vms.delete',
|
|
46
51
|
'client.compute.vms.get',
|
package/code-tool-worker.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-tool-worker.js","sourceRoot":"","sources":["src/code-tool-worker.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;AAEtF,0DAA6B;AAE7B,sDAA2B;AAC3B,4DAA4B;AAG5B,mDAAoD;AAEpD,SAAS,kBAAkB,CACzB,IAAY;IAEZ,MAAM,UAAU,GAAG,oBAAE,CAAC,gBAAgB,CAAC,SAAS,EAAE,IAAI,EAAE,oBAAE,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IAEtF,KAAK,MAAM,SAAS,IAAI,UAAU,CAAC,UAAU,EAAE,CAAC;QAC9C,4CAA4C;QAC5C,IAAI,oBAAE,CAAC,qBAAqB,CAAC,SAAS,CAAC,EAAE,CAAC;YACxC,IAAI,SAAS,CAAC,IAAI,EAAE,IAAI,KAAK,KAAK,EAAE,CAAC;gBACnC,OAAO,SAAS,CAAC;YACnB,CAAC;QACH,CAAC;QAED,qFAAqF;QACrF,IAAI,oBAAE,CAAC,mBAAmB,CAAC,SAAS,CAAC,EAAE,C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AAC;IACJ,CAAC;AACH,CAAC,CAAC;AAEF,kBAAe,EAAE,KAAK,EAAE,CAAC"}
|
package/code-tool-worker.mjs
CHANGED
|
@@ -36,6 +36,11 @@ const fuse = new Fuse([
|
|
|
36
36
|
'client.apiKeys.update',
|
|
37
37
|
'client.operations.get',
|
|
38
38
|
'client.operations.list',
|
|
39
|
+
'client.projects.create',
|
|
40
|
+
'client.projects.delete',
|
|
41
|
+
'client.projects.get',
|
|
42
|
+
'client.projects.list',
|
|
43
|
+
'client.projects.update',
|
|
39
44
|
'client.compute.vms.create',
|
|
40
45
|
'client.compute.vms.delete',
|
|
41
46
|
'client.compute.vms.get',
|
package/code-tool-worker.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-tool-worker.mjs","sourceRoot":"","sources":["src/code-tool-worker.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,IAAI,MAAM,WAAW;OAErB,IAAI,MAAM,SAAS;OACnB,EAAE,MAAM,YAAY;OAGpB,EAAE,WAAW,EAAE,MAAM,uBAAuB;AAEnD,SAAS,kBAAkB,CACzB,IAAY;IAEZ,MAAM,UAAU,GAAG,EAAE,CAAC,gBAAgB,CAAC,SAAS,EAAE,IAAI,EAAE,EAAE,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IAEtF,KAAK,MAAM,SAAS,IAAI,UAAU,CAAC,UAAU,EAAE,CAAC;QAC9C,4CAA4C;QAC5C,IAAI,EAAE,CAAC,qBAAqB,CAAC,SAAS,CAAC,EAAE,CAAC;YACxC,IAAI,SAAS,CAAC,IAAI,EAAE,IAAI,KAAK,KAAK,EAAE,CAAC;gBACnC,OAAO,SAAS,CAAC;YACnB,CAAC;QACH,CAAC;QAED,qFAAqF;QACrF,IAAI,EAAE,CAAC,mBAAmB,CAAC,SAAS,CAAC,EAAE,CAAC;YACtC,KAAK,MAAM,WAAW,IAAI,SAAS,CAAC,eAAe,CAAC,YAAY,EAAE,CAAC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,KAAK,EAAE,CAAC"}
|
package/code-tool.js
CHANGED
|
@@ -50,7 +50,7 @@ async function codeTool() {
|
|
|
50
50
|
const metadata = { resource: 'all', operation: 'write', tags: [] };
|
|
51
51
|
const tool = {
|
|
52
52
|
name: 'execute',
|
|
53
|
-
description: 'Runs
|
|
53
|
+
description: 'Runs JavaScript code to interact with the API.\n\nYou are a skilled programmer writing code to interface with the service.\nDefine an async function named "run" that takes a single parameter of an initialized client named "client", and it will be run.\nWrite code within this template:\n\n```\nasync function run(client) {\n // Fill this out\n}\n```\n\nYou will be returned anything that your function returns, plus the results of any console.log statements.\nIf any code triggers an error, the tool will return an error response, so you do not need to add error handling unless you want to output something more helpful than the raw error.\nIt is not necessary to add comments to code, unless by adding those comments you believe that you can generate better code.\nThis code will run in a container, and you will not be able to use fetch or otherwise interact with the network calls other than through the client you are given.\nAny variables you define won\'t live between successive uses of this call, so make sure to return or log any data you might need later.',
|
|
54
54
|
inputSchema: { type: 'object', properties: { code: { type: 'string' } } },
|
|
55
55
|
};
|
|
56
56
|
// Import dynamically to avoid failing at import time in cases where the environment is not well-supported.
|
package/code-tool.mjs
CHANGED
|
@@ -14,7 +14,7 @@ export async function codeTool() {
|
|
|
14
14
|
const metadata = { resource: 'all', operation: 'write', tags: [] };
|
|
15
15
|
const tool = {
|
|
16
16
|
name: 'execute',
|
|
17
|
-
description: 'Runs
|
|
17
|
+
description: 'Runs JavaScript code to interact with the API.\n\nYou are a skilled programmer writing code to interface with the service.\nDefine an async function named "run" that takes a single parameter of an initialized client named "client", and it will be run.\nWrite code within this template:\n\n```\nasync function run(client) {\n // Fill this out\n}\n```\n\nYou will be returned anything that your function returns, plus the results of any console.log statements.\nIf any code triggers an error, the tool will return an error response, so you do not need to add error handling unless you want to output something more helpful than the raw error.\nIt is not necessary to add comments to code, unless by adding those comments you believe that you can generate better code.\nThis code will run in a container, and you will not be able to use fetch or otherwise interact with the network calls other than through the client you are given.\nAny variables you define won\'t live between successive uses of this call, so make sure to return or log any data you might need later.',
|
|
18
18
|
inputSchema: { type: 'object', properties: { code: { type: 'string' } } },
|
|
19
19
|
};
|
|
20
20
|
// Import dynamically to avoid failing at import time in cases where the environment is not well-supported.
|
package/filtering.d.mts
CHANGED
package/filtering.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filtering.d.mts","sourceRoot":"","sources":["src/filtering.ts"],"names":[],"mappings":"AAGA,wBAAsB,WAAW,CAAC,QAAQ,EAAE,OAAO,GAAG,SAAS,EAAE,QAAQ,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAM5F"}
|
|
1
|
+
{"version":3,"file":"filtering.d.mts","sourceRoot":"","sources":["src/filtering.ts"],"names":[],"mappings":"AAGA,wBAAsB,WAAW,CAAC,QAAQ,EAAE,OAAO,GAAG,SAAS,EAAE,QAAQ,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAM5F;AAMD,wBAAgB,SAAS,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,KAAK,CAEpD"}
|
package/filtering.d.ts
CHANGED
package/filtering.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filtering.d.ts","sourceRoot":"","sources":["src/filtering.ts"],"names":[],"mappings":"AAGA,wBAAsB,WAAW,CAAC,QAAQ,EAAE,OAAO,GAAG,SAAS,EAAE,QAAQ,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAM5F"}
|
|
1
|
+
{"version":3,"file":"filtering.d.ts","sourceRoot":"","sources":["src/filtering.ts"],"names":[],"mappings":"AAGA,wBAAsB,WAAW,CAAC,QAAQ,EAAE,OAAO,GAAG,SAAS,EAAE,QAAQ,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAM5F;AAMD,wBAAgB,SAAS,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,KAAK,CAEpD"}
|
package/filtering.js
CHANGED
|
@@ -4,6 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.maybeFilter = maybeFilter;
|
|
7
|
+
exports.isJqError = isJqError;
|
|
7
8
|
// @ts-nocheck
|
|
8
9
|
const jq_web_1 = __importDefault(require("jq-web"));
|
|
9
10
|
async function maybeFilter(jqFilter, response) {
|
|
@@ -17,4 +18,7 @@ async function maybeFilter(jqFilter, response) {
|
|
|
17
18
|
async function jq(json, jqFilter) {
|
|
18
19
|
return (await jq_web_1.default).json(json, jqFilter);
|
|
19
20
|
}
|
|
21
|
+
function isJqError(error) {
|
|
22
|
+
return error instanceof Error && 'stderr' in error;
|
|
23
|
+
}
|
|
20
24
|
//# sourceMappingURL=filtering.js.map
|
package/filtering.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filtering.js","sourceRoot":"","sources":["src/filtering.ts"],"names":[],"mappings":";;;;;AAGA,kCAMC;
|
|
1
|
+
{"version":3,"file":"filtering.js","sourceRoot":"","sources":["src/filtering.ts"],"names":[],"mappings":";;;;;AAGA,kCAMC;AAMD,8BAEC;AAjBD,cAAc;AACd,oDAA4B;AAErB,KAAK,UAAU,WAAW,CAAC,QAA6B,EAAE,QAAa;IAC5E,IAAI,QAAQ,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE,CAAC;QAC7C,OAAO,MAAM,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IACtC,CAAC;SAAM,CAAC;QACN,OAAO,QAAQ,CAAC;IAClB,CAAC;AACH,CAAC;AAED,KAAK,UAAU,EAAE,CAAC,IAAS,EAAE,QAAgB;IAC3C,OAAO,CAAC,MAAM,gBAAM,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC7C,CAAC;AAED,SAAgB,SAAS,CAAC,KAAU;IAClC,OAAO,KAAK,YAAY,KAAK,IAAI,QAAQ,IAAI,KAAK,CAAC;AACrD,CAAC"}
|
package/filtering.mjs
CHANGED
|
@@ -10,4 +10,7 @@ export async function maybeFilter(jqFilter, response) {
|
|
|
10
10
|
async function jq(json, jqFilter) {
|
|
11
11
|
return (await initJq).json(json, jqFilter);
|
|
12
12
|
}
|
|
13
|
+
export function isJqError(error) {
|
|
14
|
+
return error instanceof Error && 'stderr' in error;
|
|
15
|
+
}
|
|
13
16
|
//# sourceMappingURL=filtering.mjs.map
|
package/filtering.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filtering.mjs","sourceRoot":"","sources":["src/filtering.ts"],"names":[],"mappings":"OACO,MAAM,MAAM,QAAQ;AAE3B,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,QAA6B,EAAE,QAAa;IAC5E,IAAI,QAAQ,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE,CAAC;QAC7C,OAAO,MAAM,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IACtC,CAAC;SAAM,CAAC;QACN,OAAO,QAAQ,CAAC;IAClB,CAAC;AACH,CAAC;AAED,KAAK,UAAU,EAAE,CAAC,IAAS,EAAE,QAAgB;IAC3C,OAAO,CAAC,MAAM,MAAM,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC7C,CAAC"}
|
|
1
|
+
{"version":3,"file":"filtering.mjs","sourceRoot":"","sources":["src/filtering.ts"],"names":[],"mappings":"OACO,MAAM,MAAM,QAAQ;AAE3B,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,QAA6B,EAAE,QAAa;IAC5E,IAAI,QAAQ,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE,CAAC;QAC7C,OAAO,MAAM,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IACtC,CAAC;SAAM,CAAC;QACN,OAAO,QAAQ,CAAC;IAClB,CAAC;AACH,CAAC;AAED,KAAK,UAAU,EAAE,CAAC,IAAS,EAAE,QAAgB;IAC3C,OAAO,CAAC,MAAM,MAAM,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC7C,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,KAAU;IAClC,OAAO,KAAK,YAAY,KAAK,IAAI,QAAQ,IAAI,KAAK,CAAC;AACrD,CAAC"}
|
package/headers.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"headers.d.mts","sourceRoot":"","sources":["src/headers.ts"],"names":[],"mappings":"OAEO,EAAE,eAAe,EAAE,MAAM,WAAW;OACpC,EAAE,aAAa,EAAE,MAAM,uBAAuB;AAErD,eAAO,MAAM,gBAAgB,GAAI,KAAK,eAAe,KAAG,OAAO,CAAC,aAAa,
|
|
1
|
+
{"version":3,"file":"headers.d.mts","sourceRoot":"","sources":["src/headers.ts"],"names":[],"mappings":"OAEO,EAAE,eAAe,EAAE,MAAM,WAAW;OACpC,EAAE,aAAa,EAAE,MAAM,uBAAuB;AAErD,eAAO,MAAM,gBAAgB,GAAI,KAAK,eAAe,KAAG,OAAO,CAAC,aAAa,CAmB5E,CAAC"}
|
package/headers.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"headers.d.ts","sourceRoot":"","sources":["src/headers.ts"],"names":[],"mappings":"OAEO,EAAE,eAAe,EAAE,MAAM,WAAW;OACpC,EAAE,aAAa,EAAE,MAAM,uBAAuB;AAErD,eAAO,MAAM,gBAAgB,GAAI,KAAK,eAAe,KAAG,OAAO,CAAC,aAAa,
|
|
1
|
+
{"version":3,"file":"headers.d.ts","sourceRoot":"","sources":["src/headers.ts"],"names":[],"mappings":"OAEO,EAAE,eAAe,EAAE,MAAM,WAAW;OACpC,EAAE,aAAa,EAAE,MAAM,uBAAuB;AAErD,eAAO,MAAM,gBAAgB,GAAI,KAAK,eAAe,KAAG,OAAO,CAAC,aAAa,CAmB5E,CAAC"}
|
package/headers.js
CHANGED
|
@@ -10,7 +10,7 @@ const parseAuthHeaders = (req) => {
|
|
|
10
10
|
case 'Bearer':
|
|
11
11
|
return { apiKey: req.headers.authorization.slice('Bearer '.length) };
|
|
12
12
|
default:
|
|
13
|
-
throw new Error(
|
|
13
|
+
throw new Error('Unsupported authorization scheme. Expected the "Authorization" header to be a supported scheme (Bearer).');
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
const apiKey = Array.isArray(req.headers['x-nirvana-labs-api-key']) ?
|
package/headers.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"headers.js","sourceRoot":"","sources":["src/headers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAK/E,MAAM,gBAAgB,GAAG,CAAC,GAAoB,EAA0B,EAAE;IAC/E,IAAI,GAAG,CAAC,OAAO,CAAC,aAAa,EAAE,CAAC;QAC9B,MAAM,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAE,CAAC;QACxD,MAAM,KAAK,GAAG,GAAG,CAAC,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QACjE,QAAQ,MAAM,EAAE,CAAC;YACf,KAAK,QAAQ;gBACX,OAAO,EAAE,MAAM,EAAE,GAAG,CAAC,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC;YACvE;gBACE,MAAM,IAAI,KAAK,
|
|
1
|
+
{"version":3,"file":"headers.js","sourceRoot":"","sources":["src/headers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAK/E,MAAM,gBAAgB,GAAG,CAAC,GAAoB,EAA0B,EAAE;IAC/E,IAAI,GAAG,CAAC,OAAO,CAAC,aAAa,EAAE,CAAC;QAC9B,MAAM,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAE,CAAC;QACxD,MAAM,KAAK,GAAG,GAAG,CAAC,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QACjE,QAAQ,MAAM,EAAE,CAAC;YACf,KAAK,QAAQ;gBACX,OAAO,EAAE,MAAM,EAAE,GAAG,CAAC,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC;YACvE;gBACE,MAAM,IAAI,KAAK,CACb,0GAA0G,CAC3G,CAAC;QACN,CAAC;IACH,CAAC;IAED,MAAM,MAAM,GACV,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC;QACpD,GAAG,CAAC,OAAO,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC;QAC1C,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,wBAAwB,CAAC,CAAC;IAC1C,OAAO,EAAE,MAAM,EAAE,CAAC;AACpB,CAAC,CAAC;AAnBW,QAAA,gBAAgB,oBAmB3B"}
|
package/headers.mjs
CHANGED
|
@@ -7,7 +7,7 @@ export const parseAuthHeaders = (req) => {
|
|
|
7
7
|
case 'Bearer':
|
|
8
8
|
return { apiKey: req.headers.authorization.slice('Bearer '.length) };
|
|
9
9
|
default:
|
|
10
|
-
throw new Error(
|
|
10
|
+
throw new Error('Unsupported authorization scheme. Expected the "Authorization" header to be a supported scheme (Bearer).');
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
const apiKey = Array.isArray(req.headers['x-nirvana-labs-api-key']) ?
|
package/headers.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"headers.mjs","sourceRoot":"","sources":["src/headers.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAKtF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,GAAoB,EAA0B,EAAE;I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AAC,CAAC,CAAC;QACpD,GAAG,CAAC,OAAO,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC;QAC1C,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,wBAAwB,CAAC,CAAC;IAC1C,OAAO,EAAE,MAAM,EAAE,CAAC;AACpB,CAAC,CAAC"}
|
package/http.js
CHANGED
|
@@ -38,12 +38,12 @@ const newServer = ({ clientOptions, mcpOptions: defaultMcpOptions, req, res, })
|
|
|
38
38
|
mcpOptions,
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
|
-
catch {
|
|
41
|
+
catch (error) {
|
|
42
42
|
res.status(401).json({
|
|
43
43
|
jsonrpc: '2.0',
|
|
44
44
|
error: {
|
|
45
45
|
code: -32000,
|
|
46
|
-
message:
|
|
46
|
+
message: `Unauthorized: ${error instanceof Error ? error.message : error}`,
|
|
47
47
|
},
|
|
48
48
|
});
|
|
49
49
|
return null;
|
package/http.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.js","sourceRoot":"","sources":["src/http.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;AAGtF,0FAAmG;AAEnG,sDAA8B;AAC9B,gDAAoD;AACpD,0CAA0D;AAC1D,wCAAsE;AACtE,0CAA6C;AAE7C,MAAM,SAAS,GAAG,CAAC,EACjB,aAAa,EACb,UAAU,EAAE,iBAAiB,EAC7B,GAAG,EACH,GAAG,GAMJ,EAAoB,EAAE;IACrB,MAAM,MAAM,GAAG,IAAA,qBAAY,GAAE,CAAC;IAE9B,IAAI,UAAsB,CAAC;IAC3B,IAAI,CAAC;QACH,UAAU,GAAG,IAAA,2BAAiB,EAAC,iBAAiB,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC;IAC/D,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC;YACnB,OAAO,EAAE,KAAK;YACd,KAAK,EAAE;gBACL,IAA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,CAAC,KAAK,CAAC,4CAA4C,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;SAAM,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;QAC5B,OAAO,CAAC,KAAK,CAAC,iDAAiD,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC;IACjF,CAAC;SAAM,CAAC;QACN,OAAO,CAAC,KAAK,CAAC,iDAAiD,IAAI,EAAE,CAAC,CAAC;IACzE,CAAC;AACH,CAAC,CAAC;AAZW,QAAA,0BAA0B,8BAYrC"}
|
package/http.mjs
CHANGED
|
@@ -32,12 +32,12 @@ const newServer = ({ clientOptions, mcpOptions: defaultMcpOptions, req, res, })
|
|
|
32
32
|
mcpOptions,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
|
-
catch {
|
|
35
|
+
catch (error) {
|
|
36
36
|
res.status(401).json({
|
|
37
37
|
jsonrpc: '2.0',
|
|
38
38
|
error: {
|
|
39
39
|
code: -32000,
|
|
40
|
-
message:
|
|
40
|
+
message: `Unauthorized: ${error instanceof Error ? error.message : error}`,
|
|
41
41
|
},
|
|
42
42
|
});
|
|
43
43
|
return null;
|
package/http.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.mjs","sourceRoot":"","sources":["src/http.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAG/E,EAAE,6BAA6B,EAAE,MAAM,oDAAoD;OAE3F,OAAO,MAAM,SAAS;OACtB,EAAE,SAAS,EAAE,MAAM,yBAAyB;OAC5C,EAAc,iBAAiB,EAAE;OACjC,EAAiB,aAAa,EAAE,YAAY,EAAE;OAC9C,EAAE,gBAAgB,EAAE;AAE3B,MAAM,SAAS,GAAG,CAAC,EACjB,aAAa,EACb,UAAU,EAAE,iBAAiB,EAC7B,GAAG,EACH,GAAG,GAMJ,EAAoB,EAAE;IACrB,MAAM,MAAM,GAAG,YAAY,EAAE,CAAC;IAE9B,IAAI,UAAsB,CAAC;IAC3B,IAAI,CAAC;QACH,UA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,GAAG,GAAG,iBAAiB,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,CAAC;IACvD,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAChC,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,EAAE,CAAC;IAEjC,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;QAChC,OAAO,CAAC,KAAK,CAAC,4CAA4C,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;SAAM,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;QAC5B,OAAO,CAAC,KAAK,CAAC,iDAAiD,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC;IACjF,CAAC;SAAM,CAAC;QACN,OAAO,CAAC,KAAK,CAAC,iDAAiD,IAAI,EAAE,CAAC,CAAC;IACzE,CAAC;AACH,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nirvana-labs/nirvana-mcp",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.23.0",
|
|
4
4
|
"description": "The official MCP Server for the Nirvana Labs API",
|
|
5
5
|
"author": "Nirvana Labs <engineering@nirvanalabs.io>",
|
|
6
6
|
"types": "./index.d.ts",
|
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
"access": "public"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@nirvana-labs/nirvana": "^1.
|
|
21
|
+
"@nirvana-labs/nirvana": "^1.23.0",
|
|
22
22
|
"@cloudflare/cabidela": "^0.2.4",
|
|
23
23
|
"@modelcontextprotocol/sdk": "^1.11.5",
|
|
24
24
|
"@valtown/deno-http-worker": "^0.0.21",
|
|
25
25
|
"cors": "^2.8.5",
|
|
26
26
|
"express": "^5.1.0",
|
|
27
27
|
"fuse.js": "^7.1.0",
|
|
28
|
-
"jq-web": "https://github.com/stainless-api/jq-web/releases/download/v0.8.
|
|
28
|
+
"jq-web": "https://github.com/stainless-api/jq-web/releases/download/v0.8.8/jq-web.tar.gz",
|
|
29
29
|
"qs": "^6.14.0",
|
|
30
30
|
"typescript": "5.8.3",
|
|
31
31
|
"yargs": "^17.7.2",
|
package/server.js
CHANGED
|
@@ -22,7 +22,7 @@ var tools_2 = require("./tools.js");
|
|
|
22
22
|
Object.defineProperty(exports, "endpoints", { enumerable: true, get: function () { return tools_2.endpoints; } });
|
|
23
23
|
const newMcpServer = () => new mcp_js_1.McpServer({
|
|
24
24
|
name: 'nirvana_labs_nirvana_api',
|
|
25
|
-
version: '1.
|
|
25
|
+
version: '1.23.0',
|
|
26
26
|
}, { capabilities: { tools: {}, logging: {} } });
|
|
27
27
|
exports.newMcpServer = newMcpServer;
|
|
28
28
|
// Create server instance
|
package/server.mjs
CHANGED
|
@@ -11,7 +11,7 @@ export { ClientType } from "./compat.mjs";
|
|
|
11
11
|
export { endpoints } from "./tools.mjs";
|
|
12
12
|
export const newMcpServer = () => new McpServer({
|
|
13
13
|
name: 'nirvana_labs_nirvana_api',
|
|
14
|
-
version: '1.
|
|
14
|
+
version: '1.23.0',
|
|
15
15
|
}, { capabilities: { tools: {}, logging: {} } });
|
|
16
16
|
// Create server instance
|
|
17
17
|
export const server = newMcpServer();
|
package/src/code-tool-worker.ts
CHANGED
|
@@ -50,6 +50,11 @@ const fuse = new Fuse(
|
|
|
50
50
|
'client.apiKeys.update',
|
|
51
51
|
'client.operations.get',
|
|
52
52
|
'client.operations.list',
|
|
53
|
+
'client.projects.create',
|
|
54
|
+
'client.projects.delete',
|
|
55
|
+
'client.projects.get',
|
|
56
|
+
'client.projects.list',
|
|
57
|
+
'client.projects.update',
|
|
53
58
|
'client.compute.vms.create',
|
|
54
59
|
'client.compute.vms.delete',
|
|
55
60
|
'client.compute.vms.get',
|
package/src/code-tool.ts
CHANGED
|
@@ -23,7 +23,7 @@ export async function codeTool(): Promise<Endpoint> {
|
|
|
23
23
|
const tool: Tool = {
|
|
24
24
|
name: 'execute',
|
|
25
25
|
description:
|
|
26
|
-
'Runs
|
|
26
|
+
'Runs JavaScript code to interact with the API.\n\nYou are a skilled programmer writing code to interface with the service.\nDefine an async function named "run" that takes a single parameter of an initialized client named "client", and it will be run.\nWrite code within this template:\n\n```\nasync function run(client) {\n // Fill this out\n}\n```\n\nYou will be returned anything that your function returns, plus the results of any console.log statements.\nIf any code triggers an error, the tool will return an error response, so you do not need to add error handling unless you want to output something more helpful than the raw error.\nIt is not necessary to add comments to code, unless by adding those comments you believe that you can generate better code.\nThis code will run in a container, and you will not be able to use fetch or otherwise interact with the network calls other than through the client you are given.\nAny variables you define won\'t live between successive uses of this call, so make sure to return or log any data you might need later.',
|
|
27
27
|
inputSchema: { type: 'object', properties: { code: { type: 'string' } } },
|
|
28
28
|
};
|
|
29
29
|
|
package/src/filtering.ts
CHANGED
|
@@ -12,3 +12,7 @@ export async function maybeFilter(jqFilter: unknown | undefined, response: any):
|
|
|
12
12
|
async function jq(json: any, jqFilter: string) {
|
|
13
13
|
return (await initJq).json(json, jqFilter);
|
|
14
14
|
}
|
|
15
|
+
|
|
16
|
+
export function isJqError(error: any): error is Error {
|
|
17
|
+
return error instanceof Error && 'stderr' in error;
|
|
18
|
+
}
|
package/src/headers.ts
CHANGED
|
@@ -11,7 +11,9 @@ export const parseAuthHeaders = (req: IncomingMessage): Partial<ClientOptions> =
|
|
|
11
11
|
case 'Bearer':
|
|
12
12
|
return { apiKey: req.headers.authorization.slice('Bearer '.length) };
|
|
13
13
|
default:
|
|
14
|
-
throw new Error(
|
|
14
|
+
throw new Error(
|
|
15
|
+
'Unsupported authorization scheme. Expected the "Authorization" header to be a supported scheme (Bearer).',
|
|
16
|
+
);
|
|
15
17
|
}
|
|
16
18
|
}
|
|
17
19
|
|
package/src/http.ts
CHANGED
|
@@ -46,12 +46,12 @@ const newServer = ({
|
|
|
46
46
|
},
|
|
47
47
|
mcpOptions,
|
|
48
48
|
});
|
|
49
|
-
} catch {
|
|
49
|
+
} catch (error) {
|
|
50
50
|
res.status(401).json({
|
|
51
51
|
jsonrpc: '2.0',
|
|
52
52
|
error: {
|
|
53
53
|
code: -32000,
|
|
54
|
-
message:
|
|
54
|
+
message: `Unauthorized: ${error instanceof Error ? error.message : error}`,
|
|
55
55
|
},
|
|
56
56
|
});
|
|
57
57
|
return null;
|
package/src/server.ts
CHANGED
|
@@ -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';
|
|
@@ -57,7 +57,14 @@ export const tool: Tool = {
|
|
|
57
57
|
|
|
58
58
|
export const handler = async (client: NirvanaLabs, args: Record<string, unknown> | undefined) => {
|
|
59
59
|
const { jq_filter, ...body } = args as any;
|
|
60
|
-
|
|
60
|
+
try {
|
|
61
|
+
return asTextContentResult(await maybeFilter(jq_filter, await client.apiKeys.create(body)));
|
|
62
|
+
} catch (error) {
|
|
63
|
+
if (isJqError(error)) {
|
|
64
|
+
return asErrorResult(error.message);
|
|
65
|
+
}
|
|
66
|
+
throw error;
|
|
67
|
+
}
|
|
61
68
|
};
|
|
62
69
|
|
|
63
70
|
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';
|
|
@@ -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 { api_key_id, jq_filter, ...body } = args as any;
|
|
44
|
-
|
|
44
|
+
try {
|
|
45
|
+
return asTextContentResult(await maybeFilter(jq_filter, await client.apiKeys.get(api_key_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';
|
|
@@ -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.apiKeys.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';
|
|
@@ -50,7 +50,14 @@ export const tool: Tool = {
|
|
|
50
50
|
|
|
51
51
|
export const handler = async (client: NirvanaLabs, args: Record<string, unknown> | undefined) => {
|
|
52
52
|
const { api_key_id, jq_filter, ...body } = args as any;
|
|
53
|
-
|
|
53
|
+
try {
|
|
54
|
+
return asTextContentResult(await maybeFilter(jq_filter, await client.apiKeys.update(api_key_id, body)));
|
|
55
|
+
} catch (error) {
|
|
56
|
+
if (isJqError(error)) {
|
|
57
|
+
return asErrorResult(error.message);
|
|
58
|
+
}
|
|
59
|
+
throw error;
|
|
60
|
+
}
|
|
54
61
|
};
|
|
55
62
|
|
|
56
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';
|
|
@@ -174,9 +174,16 @@ export const tool: Tool = {
|
|
|
174
174
|
|
|
175
175
|
export const handler = async (client: NirvanaLabs, args: Record<string, unknown> | undefined) => {
|
|
176
176
|
const { jq_filter, ...body } = args as any;
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
177
|
+
try {
|
|
178
|
+
return asTextContentResult(
|
|
179
|
+
await maybeFilter(jq_filter, await client.compute.vms.availability.create(body)),
|
|
180
|
+
);
|
|
181
|
+
} catch (error) {
|
|
182
|
+
if (isJqError(error)) {
|
|
183
|
+
return asErrorResult(error.message);
|
|
184
|
+
}
|
|
185
|
+
throw error;
|
|
186
|
+
}
|
|
180
187
|
};
|
|
181
188
|
|
|
182
189
|
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';
|
|
@@ -84,9 +84,16 @@ export const tool: Tool = {
|
|
|
84
84
|
|
|
85
85
|
export const handler = async (client: NirvanaLabs, args: Record<string, unknown> | undefined) => {
|
|
86
86
|
const { vm_id, jq_filter, ...body } = args as any;
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
87
|
+
try {
|
|
88
|
+
return asTextContentResult(
|
|
89
|
+
await maybeFilter(jq_filter, await client.compute.vms.availability.update(vm_id, body)),
|
|
90
|
+
);
|
|
91
|
+
} catch (error) {
|
|
92
|
+
if (isJqError(error)) {
|
|
93
|
+
return asErrorResult(error.message);
|
|
94
|
+
}
|
|
95
|
+
throw error;
|
|
96
|
+
}
|
|
90
97
|
};
|
|
91
98
|
|
|
92
99
|
export default { metadata, tool, handler };
|