dodopayments-mcp 2.6.0 → 2.7.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/code-tool-types.d.mts +2 -0
- package/code-tool-types.d.mts.map +1 -1
- package/code-tool-types.d.ts +2 -0
- package/code-tool-types.d.ts.map +1 -1
- package/code-tool.d.mts +44 -2
- package/code-tool.d.mts.map +1 -1
- package/code-tool.d.ts +44 -2
- package/code-tool.d.ts.map +1 -1
- package/code-tool.js +25 -130
- package/code-tool.js.map +1 -1
- package/code-tool.mjs +25 -97
- package/code-tool.mjs.map +1 -1
- package/docs-search-tool.d.mts +12 -6
- package/docs-search-tool.d.mts.map +1 -1
- package/docs-search-tool.d.ts +12 -6
- package/docs-search-tool.d.ts.map +1 -1
- package/docs-search-tool.js +10 -2
- package/docs-search-tool.js.map +1 -1
- package/docs-search-tool.mjs +10 -2
- package/docs-search-tool.mjs.map +1 -1
- package/package.json +3 -19
- package/server.js +1 -1
- package/server.mjs +1 -1
- package/src/code-tool-types.ts +5 -1
- package/src/code-tool.ts +35 -122
- package/src/docs-search-tool.ts +14 -3
- package/src/server.ts +1 -1
- package/src/tools/addons/create-addons.ts +1 -1
- package/src/tools/addons/list-addons.ts +1 -1
- package/src/tools/addons/retrieve-addons.ts +1 -1
- package/src/tools/addons/update-addons.ts +1 -1
- package/src/tools/addons/update-images-addons.ts +1 -1
- package/src/tools/brands/create-brands.ts +1 -1
- package/src/tools/brands/list-brands.ts +1 -1
- package/src/tools/brands/retrieve-brands.ts +1 -1
- package/src/tools/brands/update-brands.ts +1 -1
- package/src/tools/brands/update-images-brands.ts +1 -1
- package/src/tools/checkout-sessions/create-checkout-sessions.ts +9 -2
- package/src/tools/checkout-sessions/retrieve-checkout-sessions.ts +1 -1
- package/src/tools/customers/create-customers.ts +1 -1
- package/src/tools/customers/customer-portal/create-customers-customer-portal.ts +1 -1
- package/src/tools/customers/list-customers.ts +1 -1
- package/src/tools/customers/retrieve-customers.ts +1 -1
- package/src/tools/customers/retrieve-payment-methods-customers.ts +1 -1
- package/src/tools/customers/update-customers.ts +1 -1
- package/src/tools/customers/wallets/ledger-entries/create-wallets-customers-ledger-entries.ts +1 -1
- package/src/tools/customers/wallets/ledger-entries/list-wallets-customers-ledger-entries.ts +1 -1
- package/src/tools/customers/wallets/list-customers-wallets.ts +1 -1
- package/src/tools/discounts/create-discounts.ts +1 -1
- package/src/tools/discounts/list-discounts.ts +1 -1
- package/src/tools/discounts/retrieve-discounts.ts +1 -1
- package/src/tools/discounts/update-discounts.ts +1 -1
- package/src/tools/disputes/list-disputes.ts +1 -1
- package/src/tools/disputes/retrieve-disputes.ts +1 -1
- package/src/tools/license-key-instances/list-license-key-instances.ts +1 -1
- package/src/tools/license-key-instances/retrieve-license-key-instances.ts +1 -1
- package/src/tools/license-key-instances/update-license-key-instances.ts +1 -1
- package/src/tools/license-keys/list-license-keys.ts +1 -1
- package/src/tools/license-keys/retrieve-license-keys.ts +1 -1
- package/src/tools/license-keys/update-license-keys.ts +1 -1
- package/src/tools/licenses/activate-licenses.ts +1 -1
- package/src/tools/licenses/validate-licenses.ts +1 -1
- package/src/tools/meters/create-meters.ts +9 -2
- package/src/tools/meters/list-meters.ts +9 -2
- package/src/tools/meters/retrieve-meters.ts +9 -2
- package/src/tools/misc/list-supported-countries-misc.ts +1 -1
- package/src/tools/payments/create-payments.ts +9 -2
- package/src/tools/payments/list-payments.ts +1 -1
- package/src/tools/payments/retrieve-line-items-payments.ts +1 -1
- package/src/tools/payments/retrieve-payments.ts +9 -2
- package/src/tools/payouts/list-payouts.ts +1 -1
- package/src/tools/products/create-products.ts +9 -2
- package/src/tools/products/images/update-products-images.ts +1 -1
- package/src/tools/products/list-products.ts +9 -2
- package/src/tools/products/retrieve-products.ts +9 -2
- package/src/tools/products/update-files-products.ts +1 -1
- package/src/tools/refunds/create-refunds.ts +1 -1
- package/src/tools/refunds/list-refunds.ts +1 -1
- package/src/tools/refunds/retrieve-refunds.ts +1 -1
- package/src/tools/subscriptions/charge-subscriptions.ts +1 -1
- package/src/tools/subscriptions/create-subscriptions.ts +9 -2
- package/src/tools/subscriptions/list-subscriptions.ts +9 -2
- package/src/tools/subscriptions/retrieve-subscriptions.ts +9 -2
- package/src/tools/subscriptions/retrieve-usage-history-subscriptions.ts +1 -1
- package/src/tools/subscriptions/update-payment-method-subscriptions.ts +1 -1
- package/src/tools/subscriptions/update-subscriptions.ts +9 -2
- package/src/tools/usage-events/ingest-usage-events.ts +1 -1
- package/src/tools/usage-events/list-usage-events.ts +1 -1
- package/src/tools/usage-events/retrieve-usage-events.ts +1 -1
- package/src/tools/webhooks/create-webhooks.ts +1 -1
- package/src/tools/webhooks/headers/retrieve-webhooks-headers.ts +1 -1
- package/src/tools/webhooks/list-webhooks.ts +1 -1
- package/src/tools/webhooks/retrieve-secret-webhooks.ts +1 -1
- package/src/tools/webhooks/retrieve-webhooks.ts +1 -1
- package/src/tools/webhooks/update-webhooks.ts +1 -1
- package/tools/addons/create-addons.d.mts +12 -6
- package/tools/addons/create-addons.d.mts.map +1 -1
- package/tools/addons/create-addons.d.ts +12 -6
- package/tools/addons/create-addons.d.ts.map +1 -1
- package/tools/addons/create-addons.js +5 -1
- package/tools/addons/create-addons.js.map +1 -1
- package/tools/addons/create-addons.mjs +2 -1
- package/tools/addons/create-addons.mjs.map +1 -1
- package/tools/addons/list-addons.d.mts +12 -6
- package/tools/addons/list-addons.d.mts.map +1 -1
- package/tools/addons/list-addons.d.ts +12 -6
- package/tools/addons/list-addons.d.ts.map +1 -1
- package/tools/addons/list-addons.js +5 -1
- package/tools/addons/list-addons.js.map +1 -1
- package/tools/addons/list-addons.mjs +2 -1
- package/tools/addons/list-addons.mjs.map +1 -1
- package/tools/addons/retrieve-addons.d.mts +12 -6
- package/tools/addons/retrieve-addons.d.mts.map +1 -1
- package/tools/addons/retrieve-addons.d.ts +12 -6
- package/tools/addons/retrieve-addons.d.ts.map +1 -1
- package/tools/addons/retrieve-addons.js +5 -1
- package/tools/addons/retrieve-addons.js.map +1 -1
- package/tools/addons/retrieve-addons.mjs +2 -1
- package/tools/addons/retrieve-addons.mjs.map +1 -1
- package/tools/addons/update-addons.d.mts +12 -6
- package/tools/addons/update-addons.d.mts.map +1 -1
- package/tools/addons/update-addons.d.ts +12 -6
- package/tools/addons/update-addons.d.ts.map +1 -1
- package/tools/addons/update-addons.js +5 -1
- package/tools/addons/update-addons.js.map +1 -1
- package/tools/addons/update-addons.mjs +2 -1
- package/tools/addons/update-addons.mjs.map +1 -1
- package/tools/addons/update-images-addons.d.mts +12 -6
- package/tools/addons/update-images-addons.d.mts.map +1 -1
- package/tools/addons/update-images-addons.d.ts +12 -6
- package/tools/addons/update-images-addons.d.ts.map +1 -1
- package/tools/addons/update-images-addons.js +5 -1
- package/tools/addons/update-images-addons.js.map +1 -1
- package/tools/addons/update-images-addons.mjs +2 -1
- package/tools/addons/update-images-addons.mjs.map +1 -1
- package/tools/brands/create-brands.d.mts +12 -6
- package/tools/brands/create-brands.d.mts.map +1 -1
- package/tools/brands/create-brands.d.ts +12 -6
- package/tools/brands/create-brands.d.ts.map +1 -1
- package/tools/brands/create-brands.js +5 -1
- package/tools/brands/create-brands.js.map +1 -1
- package/tools/brands/create-brands.mjs +2 -1
- package/tools/brands/create-brands.mjs.map +1 -1
- package/tools/brands/list-brands.d.mts +12 -6
- package/tools/brands/list-brands.d.mts.map +1 -1
- package/tools/brands/list-brands.d.ts +12 -6
- package/tools/brands/list-brands.d.ts.map +1 -1
- package/tools/brands/list-brands.js +5 -1
- package/tools/brands/list-brands.js.map +1 -1
- package/tools/brands/list-brands.mjs +2 -1
- package/tools/brands/list-brands.mjs.map +1 -1
- package/tools/brands/retrieve-brands.d.mts +12 -6
- package/tools/brands/retrieve-brands.d.mts.map +1 -1
- package/tools/brands/retrieve-brands.d.ts +12 -6
- package/tools/brands/retrieve-brands.d.ts.map +1 -1
- package/tools/brands/retrieve-brands.js +5 -1
- package/tools/brands/retrieve-brands.js.map +1 -1
- package/tools/brands/retrieve-brands.mjs +2 -1
- package/tools/brands/retrieve-brands.mjs.map +1 -1
- package/tools/brands/update-brands.d.mts +12 -6
- package/tools/brands/update-brands.d.mts.map +1 -1
- package/tools/brands/update-brands.d.ts +12 -6
- package/tools/brands/update-brands.d.ts.map +1 -1
- package/tools/brands/update-brands.js +5 -1
- package/tools/brands/update-brands.js.map +1 -1
- package/tools/brands/update-brands.mjs +2 -1
- package/tools/brands/update-brands.mjs.map +1 -1
- package/tools/brands/update-images-brands.d.mts +12 -6
- package/tools/brands/update-images-brands.d.mts.map +1 -1
- package/tools/brands/update-images-brands.d.ts +12 -6
- package/tools/brands/update-images-brands.d.ts.map +1 -1
- package/tools/brands/update-images-brands.js +5 -1
- package/tools/brands/update-images-brands.js.map +1 -1
- package/tools/brands/update-images-brands.mjs +2 -1
- package/tools/brands/update-images-brands.mjs.map +1 -1
- package/tools/checkout-sessions/create-checkout-sessions.d.mts +12 -6
- package/tools/checkout-sessions/create-checkout-sessions.d.mts.map +1 -1
- package/tools/checkout-sessions/create-checkout-sessions.d.ts +12 -6
- package/tools/checkout-sessions/create-checkout-sessions.d.ts.map +1 -1
- package/tools/checkout-sessions/create-checkout-sessions.js +13 -1
- package/tools/checkout-sessions/create-checkout-sessions.js.map +1 -1
- package/tools/checkout-sessions/create-checkout-sessions.mjs +11 -2
- package/tools/checkout-sessions/create-checkout-sessions.mjs.map +1 -1
- package/tools/checkout-sessions/retrieve-checkout-sessions.d.mts +12 -6
- package/tools/checkout-sessions/retrieve-checkout-sessions.d.mts.map +1 -1
- package/tools/checkout-sessions/retrieve-checkout-sessions.d.ts +12 -6
- package/tools/checkout-sessions/retrieve-checkout-sessions.d.ts.map +1 -1
- package/tools/checkout-sessions/retrieve-checkout-sessions.js +5 -1
- package/tools/checkout-sessions/retrieve-checkout-sessions.js.map +1 -1
- package/tools/checkout-sessions/retrieve-checkout-sessions.mjs +2 -1
- package/tools/checkout-sessions/retrieve-checkout-sessions.mjs.map +1 -1
- package/tools/customers/create-customers.d.mts +12 -6
- package/tools/customers/create-customers.d.mts.map +1 -1
- package/tools/customers/create-customers.d.ts +12 -6
- package/tools/customers/create-customers.d.ts.map +1 -1
- package/tools/customers/create-customers.js +5 -1
- package/tools/customers/create-customers.js.map +1 -1
- package/tools/customers/create-customers.mjs +2 -1
- package/tools/customers/create-customers.mjs.map +1 -1
- package/tools/customers/customer-portal/create-customers-customer-portal.d.mts +12 -6
- package/tools/customers/customer-portal/create-customers-customer-portal.d.mts.map +1 -1
- package/tools/customers/customer-portal/create-customers-customer-portal.d.ts +12 -6
- package/tools/customers/customer-portal/create-customers-customer-portal.d.ts.map +1 -1
- package/tools/customers/customer-portal/create-customers-customer-portal.js +5 -1
- package/tools/customers/customer-portal/create-customers-customer-portal.js.map +1 -1
- package/tools/customers/customer-portal/create-customers-customer-portal.mjs +2 -1
- package/tools/customers/customer-portal/create-customers-customer-portal.mjs.map +1 -1
- package/tools/customers/list-customers.d.mts +12 -6
- package/tools/customers/list-customers.d.mts.map +1 -1
- package/tools/customers/list-customers.d.ts +12 -6
- package/tools/customers/list-customers.d.ts.map +1 -1
- package/tools/customers/list-customers.js +5 -1
- package/tools/customers/list-customers.js.map +1 -1
- package/tools/customers/list-customers.mjs +2 -1
- package/tools/customers/list-customers.mjs.map +1 -1
- package/tools/customers/retrieve-customers.d.mts +12 -6
- package/tools/customers/retrieve-customers.d.mts.map +1 -1
- package/tools/customers/retrieve-customers.d.ts +12 -6
- package/tools/customers/retrieve-customers.d.ts.map +1 -1
- package/tools/customers/retrieve-customers.js +5 -1
- package/tools/customers/retrieve-customers.js.map +1 -1
- package/tools/customers/retrieve-customers.mjs +2 -1
- package/tools/customers/retrieve-customers.mjs.map +1 -1
- package/tools/customers/retrieve-payment-methods-customers.d.mts +12 -6
- package/tools/customers/retrieve-payment-methods-customers.d.mts.map +1 -1
- package/tools/customers/retrieve-payment-methods-customers.d.ts +12 -6
- package/tools/customers/retrieve-payment-methods-customers.d.ts.map +1 -1
- package/tools/customers/retrieve-payment-methods-customers.js +5 -1
- package/tools/customers/retrieve-payment-methods-customers.js.map +1 -1
- package/tools/customers/retrieve-payment-methods-customers.mjs +2 -1
- package/tools/customers/retrieve-payment-methods-customers.mjs.map +1 -1
- package/tools/customers/update-customers.d.mts +12 -6
- package/tools/customers/update-customers.d.mts.map +1 -1
- package/tools/customers/update-customers.d.ts +12 -6
- package/tools/customers/update-customers.d.ts.map +1 -1
- package/tools/customers/update-customers.js +5 -1
- package/tools/customers/update-customers.js.map +1 -1
- package/tools/customers/update-customers.mjs +2 -1
- package/tools/customers/update-customers.mjs.map +1 -1
- package/tools/customers/wallets/ledger-entries/create-wallets-customers-ledger-entries.d.mts +12 -6
- package/tools/customers/wallets/ledger-entries/create-wallets-customers-ledger-entries.d.mts.map +1 -1
- package/tools/customers/wallets/ledger-entries/create-wallets-customers-ledger-entries.d.ts +12 -6
- package/tools/customers/wallets/ledger-entries/create-wallets-customers-ledger-entries.d.ts.map +1 -1
- package/tools/customers/wallets/ledger-entries/create-wallets-customers-ledger-entries.js +5 -1
- package/tools/customers/wallets/ledger-entries/create-wallets-customers-ledger-entries.js.map +1 -1
- package/tools/customers/wallets/ledger-entries/create-wallets-customers-ledger-entries.mjs +2 -1
- package/tools/customers/wallets/ledger-entries/create-wallets-customers-ledger-entries.mjs.map +1 -1
- package/tools/customers/wallets/ledger-entries/list-wallets-customers-ledger-entries.d.mts +12 -6
- package/tools/customers/wallets/ledger-entries/list-wallets-customers-ledger-entries.d.mts.map +1 -1
- package/tools/customers/wallets/ledger-entries/list-wallets-customers-ledger-entries.d.ts +12 -6
- package/tools/customers/wallets/ledger-entries/list-wallets-customers-ledger-entries.d.ts.map +1 -1
- package/tools/customers/wallets/ledger-entries/list-wallets-customers-ledger-entries.js +5 -1
- package/tools/customers/wallets/ledger-entries/list-wallets-customers-ledger-entries.js.map +1 -1
- package/tools/customers/wallets/ledger-entries/list-wallets-customers-ledger-entries.mjs +2 -1
- package/tools/customers/wallets/ledger-entries/list-wallets-customers-ledger-entries.mjs.map +1 -1
- package/tools/customers/wallets/list-customers-wallets.d.mts +12 -6
- package/tools/customers/wallets/list-customers-wallets.d.mts.map +1 -1
- package/tools/customers/wallets/list-customers-wallets.d.ts +12 -6
- package/tools/customers/wallets/list-customers-wallets.d.ts.map +1 -1
- package/tools/customers/wallets/list-customers-wallets.js +5 -1
- package/tools/customers/wallets/list-customers-wallets.js.map +1 -1
- package/tools/customers/wallets/list-customers-wallets.mjs +2 -1
- package/tools/customers/wallets/list-customers-wallets.mjs.map +1 -1
- package/tools/discounts/create-discounts.d.mts +12 -6
- package/tools/discounts/create-discounts.d.mts.map +1 -1
- package/tools/discounts/create-discounts.d.ts +12 -6
- package/tools/discounts/create-discounts.d.ts.map +1 -1
- package/tools/discounts/create-discounts.js +5 -1
- package/tools/discounts/create-discounts.js.map +1 -1
- package/tools/discounts/create-discounts.mjs +2 -1
- package/tools/discounts/create-discounts.mjs.map +1 -1
- package/tools/discounts/delete-discounts.d.mts +12 -6
- package/tools/discounts/delete-discounts.d.mts.map +1 -1
- package/tools/discounts/delete-discounts.d.ts +12 -6
- package/tools/discounts/delete-discounts.d.ts.map +1 -1
- package/tools/discounts/list-discounts.d.mts +12 -6
- package/tools/discounts/list-discounts.d.mts.map +1 -1
- package/tools/discounts/list-discounts.d.ts +12 -6
- package/tools/discounts/list-discounts.d.ts.map +1 -1
- package/tools/discounts/list-discounts.js +5 -1
- package/tools/discounts/list-discounts.js.map +1 -1
- package/tools/discounts/list-discounts.mjs +2 -1
- package/tools/discounts/list-discounts.mjs.map +1 -1
- package/tools/discounts/retrieve-discounts.d.mts +12 -6
- package/tools/discounts/retrieve-discounts.d.mts.map +1 -1
- package/tools/discounts/retrieve-discounts.d.ts +12 -6
- package/tools/discounts/retrieve-discounts.d.ts.map +1 -1
- package/tools/discounts/retrieve-discounts.js +5 -1
- package/tools/discounts/retrieve-discounts.js.map +1 -1
- package/tools/discounts/retrieve-discounts.mjs +2 -1
- package/tools/discounts/retrieve-discounts.mjs.map +1 -1
- package/tools/discounts/update-discounts.d.mts +12 -6
- package/tools/discounts/update-discounts.d.mts.map +1 -1
- package/tools/discounts/update-discounts.d.ts +12 -6
- package/tools/discounts/update-discounts.d.ts.map +1 -1
- package/tools/discounts/update-discounts.js +5 -1
- package/tools/discounts/update-discounts.js.map +1 -1
- package/tools/discounts/update-discounts.mjs +2 -1
- package/tools/discounts/update-discounts.mjs.map +1 -1
- package/tools/disputes/list-disputes.d.mts +12 -6
- package/tools/disputes/list-disputes.d.mts.map +1 -1
- package/tools/disputes/list-disputes.d.ts +12 -6
- package/tools/disputes/list-disputes.d.ts.map +1 -1
- package/tools/disputes/list-disputes.js +5 -1
- package/tools/disputes/list-disputes.js.map +1 -1
- package/tools/disputes/list-disputes.mjs +2 -1
- package/tools/disputes/list-disputes.mjs.map +1 -1
- package/tools/disputes/retrieve-disputes.d.mts +12 -6
- package/tools/disputes/retrieve-disputes.d.mts.map +1 -1
- package/tools/disputes/retrieve-disputes.d.ts +12 -6
- package/tools/disputes/retrieve-disputes.d.ts.map +1 -1
- package/tools/disputes/retrieve-disputes.js +5 -1
- package/tools/disputes/retrieve-disputes.js.map +1 -1
- package/tools/disputes/retrieve-disputes.mjs +2 -1
- package/tools/disputes/retrieve-disputes.mjs.map +1 -1
- package/tools/invoices/payments/retrieve-invoices-payments.d.mts +12 -6
- package/tools/invoices/payments/retrieve-invoices-payments.d.mts.map +1 -1
- package/tools/invoices/payments/retrieve-invoices-payments.d.ts +12 -6
- package/tools/invoices/payments/retrieve-invoices-payments.d.ts.map +1 -1
- package/tools/invoices/payments/retrieve-refund-invoices-payments.d.mts +12 -6
- package/tools/invoices/payments/retrieve-refund-invoices-payments.d.mts.map +1 -1
- package/tools/invoices/payments/retrieve-refund-invoices-payments.d.ts +12 -6
- package/tools/invoices/payments/retrieve-refund-invoices-payments.d.ts.map +1 -1
- package/tools/license-key-instances/list-license-key-instances.d.mts +12 -6
- package/tools/license-key-instances/list-license-key-instances.d.mts.map +1 -1
- package/tools/license-key-instances/list-license-key-instances.d.ts +12 -6
- package/tools/license-key-instances/list-license-key-instances.d.ts.map +1 -1
- package/tools/license-key-instances/list-license-key-instances.js +5 -1
- package/tools/license-key-instances/list-license-key-instances.js.map +1 -1
- package/tools/license-key-instances/list-license-key-instances.mjs +2 -1
- package/tools/license-key-instances/list-license-key-instances.mjs.map +1 -1
- package/tools/license-key-instances/retrieve-license-key-instances.d.mts +12 -6
- package/tools/license-key-instances/retrieve-license-key-instances.d.mts.map +1 -1
- package/tools/license-key-instances/retrieve-license-key-instances.d.ts +12 -6
- package/tools/license-key-instances/retrieve-license-key-instances.d.ts.map +1 -1
- package/tools/license-key-instances/retrieve-license-key-instances.js +5 -1
- package/tools/license-key-instances/retrieve-license-key-instances.js.map +1 -1
- package/tools/license-key-instances/retrieve-license-key-instances.mjs +2 -1
- package/tools/license-key-instances/retrieve-license-key-instances.mjs.map +1 -1
- package/tools/license-key-instances/update-license-key-instances.d.mts +12 -6
- package/tools/license-key-instances/update-license-key-instances.d.mts.map +1 -1
- package/tools/license-key-instances/update-license-key-instances.d.ts +12 -6
- package/tools/license-key-instances/update-license-key-instances.d.ts.map +1 -1
- package/tools/license-key-instances/update-license-key-instances.js +5 -1
- package/tools/license-key-instances/update-license-key-instances.js.map +1 -1
- package/tools/license-key-instances/update-license-key-instances.mjs +2 -1
- package/tools/license-key-instances/update-license-key-instances.mjs.map +1 -1
- package/tools/license-keys/list-license-keys.d.mts +12 -6
- package/tools/license-keys/list-license-keys.d.mts.map +1 -1
- package/tools/license-keys/list-license-keys.d.ts +12 -6
- package/tools/license-keys/list-license-keys.d.ts.map +1 -1
- package/tools/license-keys/list-license-keys.js +5 -1
- package/tools/license-keys/list-license-keys.js.map +1 -1
- package/tools/license-keys/list-license-keys.mjs +2 -1
- package/tools/license-keys/list-license-keys.mjs.map +1 -1
- package/tools/license-keys/retrieve-license-keys.d.mts +12 -6
- package/tools/license-keys/retrieve-license-keys.d.mts.map +1 -1
- package/tools/license-keys/retrieve-license-keys.d.ts +12 -6
- package/tools/license-keys/retrieve-license-keys.d.ts.map +1 -1
- package/tools/license-keys/retrieve-license-keys.js +5 -1
- package/tools/license-keys/retrieve-license-keys.js.map +1 -1
- package/tools/license-keys/retrieve-license-keys.mjs +2 -1
- package/tools/license-keys/retrieve-license-keys.mjs.map +1 -1
- package/tools/license-keys/update-license-keys.d.mts +12 -6
- package/tools/license-keys/update-license-keys.d.mts.map +1 -1
- package/tools/license-keys/update-license-keys.d.ts +12 -6
- package/tools/license-keys/update-license-keys.d.ts.map +1 -1
- package/tools/license-keys/update-license-keys.js +5 -1
- package/tools/license-keys/update-license-keys.js.map +1 -1
- package/tools/license-keys/update-license-keys.mjs +2 -1
- package/tools/license-keys/update-license-keys.mjs.map +1 -1
- package/tools/licenses/activate-licenses.d.mts +12 -6
- package/tools/licenses/activate-licenses.d.mts.map +1 -1
- package/tools/licenses/activate-licenses.d.ts +12 -6
- package/tools/licenses/activate-licenses.d.ts.map +1 -1
- package/tools/licenses/activate-licenses.js +5 -1
- package/tools/licenses/activate-licenses.js.map +1 -1
- package/tools/licenses/activate-licenses.mjs +2 -1
- package/tools/licenses/activate-licenses.mjs.map +1 -1
- package/tools/licenses/deactivate-licenses.d.mts +12 -6
- package/tools/licenses/deactivate-licenses.d.mts.map +1 -1
- package/tools/licenses/deactivate-licenses.d.ts +12 -6
- package/tools/licenses/deactivate-licenses.d.ts.map +1 -1
- package/tools/licenses/validate-licenses.d.mts +12 -6
- package/tools/licenses/validate-licenses.d.mts.map +1 -1
- package/tools/licenses/validate-licenses.d.ts +12 -6
- package/tools/licenses/validate-licenses.d.ts.map +1 -1
- package/tools/licenses/validate-licenses.js +5 -1
- package/tools/licenses/validate-licenses.js.map +1 -1
- package/tools/licenses/validate-licenses.mjs +2 -1
- package/tools/licenses/validate-licenses.mjs.map +1 -1
- package/tools/meters/archive-meters.d.mts +12 -6
- package/tools/meters/archive-meters.d.mts.map +1 -1
- package/tools/meters/archive-meters.d.ts +12 -6
- package/tools/meters/archive-meters.d.ts.map +1 -1
- package/tools/meters/create-meters.d.mts +12 -6
- package/tools/meters/create-meters.d.mts.map +1 -1
- package/tools/meters/create-meters.d.ts +12 -6
- package/tools/meters/create-meters.d.ts.map +1 -1
- package/tools/meters/create-meters.js +13 -1
- package/tools/meters/create-meters.js.map +1 -1
- package/tools/meters/create-meters.mjs +11 -2
- package/tools/meters/create-meters.mjs.map +1 -1
- package/tools/meters/list-meters.d.mts +12 -6
- package/tools/meters/list-meters.d.mts.map +1 -1
- package/tools/meters/list-meters.d.ts +12 -6
- package/tools/meters/list-meters.d.ts.map +1 -1
- package/tools/meters/list-meters.js +13 -1
- package/tools/meters/list-meters.js.map +1 -1
- package/tools/meters/list-meters.mjs +11 -2
- package/tools/meters/list-meters.mjs.map +1 -1
- package/tools/meters/retrieve-meters.d.mts +12 -6
- package/tools/meters/retrieve-meters.d.mts.map +1 -1
- package/tools/meters/retrieve-meters.d.ts +12 -6
- package/tools/meters/retrieve-meters.d.ts.map +1 -1
- package/tools/meters/retrieve-meters.js +13 -1
- package/tools/meters/retrieve-meters.js.map +1 -1
- package/tools/meters/retrieve-meters.mjs +11 -2
- package/tools/meters/retrieve-meters.mjs.map +1 -1
- package/tools/meters/unarchive-meters.d.mts +12 -6
- package/tools/meters/unarchive-meters.d.mts.map +1 -1
- package/tools/meters/unarchive-meters.d.ts +12 -6
- package/tools/meters/unarchive-meters.d.ts.map +1 -1
- package/tools/misc/list-supported-countries-misc.d.mts +12 -6
- package/tools/misc/list-supported-countries-misc.d.mts.map +1 -1
- package/tools/misc/list-supported-countries-misc.d.ts +12 -6
- package/tools/misc/list-supported-countries-misc.d.ts.map +1 -1
- package/tools/misc/list-supported-countries-misc.js +5 -1
- package/tools/misc/list-supported-countries-misc.js.map +1 -1
- package/tools/misc/list-supported-countries-misc.mjs +2 -1
- package/tools/misc/list-supported-countries-misc.mjs.map +1 -1
- package/tools/payments/create-payments.d.mts +12 -6
- package/tools/payments/create-payments.d.mts.map +1 -1
- package/tools/payments/create-payments.d.ts +12 -6
- package/tools/payments/create-payments.d.ts.map +1 -1
- package/tools/payments/create-payments.js +13 -1
- package/tools/payments/create-payments.js.map +1 -1
- package/tools/payments/create-payments.mjs +11 -2
- package/tools/payments/create-payments.mjs.map +1 -1
- package/tools/payments/list-payments.d.mts +12 -6
- package/tools/payments/list-payments.d.mts.map +1 -1
- package/tools/payments/list-payments.d.ts +12 -6
- package/tools/payments/list-payments.d.ts.map +1 -1
- package/tools/payments/list-payments.js +5 -1
- package/tools/payments/list-payments.js.map +1 -1
- package/tools/payments/list-payments.mjs +2 -1
- package/tools/payments/list-payments.mjs.map +1 -1
- package/tools/payments/retrieve-line-items-payments.d.mts +12 -6
- package/tools/payments/retrieve-line-items-payments.d.mts.map +1 -1
- package/tools/payments/retrieve-line-items-payments.d.ts +12 -6
- package/tools/payments/retrieve-line-items-payments.d.ts.map +1 -1
- package/tools/payments/retrieve-line-items-payments.js +5 -1
- package/tools/payments/retrieve-line-items-payments.js.map +1 -1
- package/tools/payments/retrieve-line-items-payments.mjs +2 -1
- package/tools/payments/retrieve-line-items-payments.mjs.map +1 -1
- package/tools/payments/retrieve-payments.d.mts +12 -6
- package/tools/payments/retrieve-payments.d.mts.map +1 -1
- package/tools/payments/retrieve-payments.d.ts +12 -6
- package/tools/payments/retrieve-payments.d.ts.map +1 -1
- package/tools/payments/retrieve-payments.js +13 -1
- package/tools/payments/retrieve-payments.js.map +1 -1
- package/tools/payments/retrieve-payments.mjs +11 -2
- package/tools/payments/retrieve-payments.mjs.map +1 -1
- package/tools/payouts/list-payouts.d.mts +12 -6
- package/tools/payouts/list-payouts.d.mts.map +1 -1
- package/tools/payouts/list-payouts.d.ts +12 -6
- package/tools/payouts/list-payouts.d.ts.map +1 -1
- package/tools/payouts/list-payouts.js +5 -1
- package/tools/payouts/list-payouts.js.map +1 -1
- package/tools/payouts/list-payouts.mjs +2 -1
- package/tools/payouts/list-payouts.mjs.map +1 -1
- package/tools/products/archive-products.d.mts +12 -6
- package/tools/products/archive-products.d.mts.map +1 -1
- package/tools/products/archive-products.d.ts +12 -6
- package/tools/products/archive-products.d.ts.map +1 -1
- package/tools/products/create-products.d.mts +12 -6
- package/tools/products/create-products.d.mts.map +1 -1
- package/tools/products/create-products.d.ts +12 -6
- package/tools/products/create-products.d.ts.map +1 -1
- package/tools/products/create-products.js +13 -1
- package/tools/products/create-products.js.map +1 -1
- package/tools/products/create-products.mjs +11 -2
- package/tools/products/create-products.mjs.map +1 -1
- package/tools/products/images/update-products-images.d.mts +12 -6
- package/tools/products/images/update-products-images.d.mts.map +1 -1
- package/tools/products/images/update-products-images.d.ts +12 -6
- package/tools/products/images/update-products-images.d.ts.map +1 -1
- package/tools/products/images/update-products-images.js +5 -1
- package/tools/products/images/update-products-images.js.map +1 -1
- package/tools/products/images/update-products-images.mjs +2 -1
- package/tools/products/images/update-products-images.mjs.map +1 -1
- package/tools/products/list-products.d.mts +12 -6
- package/tools/products/list-products.d.mts.map +1 -1
- package/tools/products/list-products.d.ts +12 -6
- package/tools/products/list-products.d.ts.map +1 -1
- package/tools/products/list-products.js +13 -1
- package/tools/products/list-products.js.map +1 -1
- package/tools/products/list-products.mjs +11 -2
- package/tools/products/list-products.mjs.map +1 -1
- package/tools/products/retrieve-products.d.mts +12 -6
- package/tools/products/retrieve-products.d.mts.map +1 -1
- package/tools/products/retrieve-products.d.ts +12 -6
- package/tools/products/retrieve-products.d.ts.map +1 -1
- package/tools/products/retrieve-products.js +13 -1
- package/tools/products/retrieve-products.js.map +1 -1
- package/tools/products/retrieve-products.mjs +11 -2
- package/tools/products/retrieve-products.mjs.map +1 -1
- package/tools/products/unarchive-products.d.mts +12 -6
- package/tools/products/unarchive-products.d.mts.map +1 -1
- package/tools/products/unarchive-products.d.ts +12 -6
- package/tools/products/unarchive-products.d.ts.map +1 -1
- package/tools/products/update-files-products.d.mts +12 -6
- package/tools/products/update-files-products.d.mts.map +1 -1
- package/tools/products/update-files-products.d.ts +12 -6
- package/tools/products/update-files-products.d.ts.map +1 -1
- package/tools/products/update-files-products.js +5 -1
- package/tools/products/update-files-products.js.map +1 -1
- package/tools/products/update-files-products.mjs +2 -1
- package/tools/products/update-files-products.mjs.map +1 -1
- package/tools/products/update-products.d.mts +12 -6
- package/tools/products/update-products.d.mts.map +1 -1
- package/tools/products/update-products.d.ts +12 -6
- package/tools/products/update-products.d.ts.map +1 -1
- package/tools/refunds/create-refunds.d.mts +12 -6
- package/tools/refunds/create-refunds.d.mts.map +1 -1
- package/tools/refunds/create-refunds.d.ts +12 -6
- package/tools/refunds/create-refunds.d.ts.map +1 -1
- package/tools/refunds/create-refunds.js +5 -1
- package/tools/refunds/create-refunds.js.map +1 -1
- package/tools/refunds/create-refunds.mjs +2 -1
- package/tools/refunds/create-refunds.mjs.map +1 -1
- package/tools/refunds/list-refunds.d.mts +12 -6
- package/tools/refunds/list-refunds.d.mts.map +1 -1
- package/tools/refunds/list-refunds.d.ts +12 -6
- package/tools/refunds/list-refunds.d.ts.map +1 -1
- package/tools/refunds/list-refunds.js +5 -1
- package/tools/refunds/list-refunds.js.map +1 -1
- package/tools/refunds/list-refunds.mjs +2 -1
- package/tools/refunds/list-refunds.mjs.map +1 -1
- package/tools/refunds/retrieve-refunds.d.mts +12 -6
- package/tools/refunds/retrieve-refunds.d.mts.map +1 -1
- package/tools/refunds/retrieve-refunds.d.ts +12 -6
- package/tools/refunds/retrieve-refunds.d.ts.map +1 -1
- package/tools/refunds/retrieve-refunds.js +5 -1
- package/tools/refunds/retrieve-refunds.js.map +1 -1
- package/tools/refunds/retrieve-refunds.mjs +2 -1
- package/tools/refunds/retrieve-refunds.mjs.map +1 -1
- package/tools/subscriptions/change-plan-subscriptions.d.mts +12 -6
- package/tools/subscriptions/change-plan-subscriptions.d.mts.map +1 -1
- package/tools/subscriptions/change-plan-subscriptions.d.ts +12 -6
- package/tools/subscriptions/change-plan-subscriptions.d.ts.map +1 -1
- package/tools/subscriptions/charge-subscriptions.d.mts +12 -6
- package/tools/subscriptions/charge-subscriptions.d.mts.map +1 -1
- package/tools/subscriptions/charge-subscriptions.d.ts +12 -6
- package/tools/subscriptions/charge-subscriptions.d.ts.map +1 -1
- package/tools/subscriptions/charge-subscriptions.js +5 -1
- package/tools/subscriptions/charge-subscriptions.js.map +1 -1
- package/tools/subscriptions/charge-subscriptions.mjs +2 -1
- package/tools/subscriptions/charge-subscriptions.mjs.map +1 -1
- package/tools/subscriptions/create-subscriptions.d.mts +12 -6
- package/tools/subscriptions/create-subscriptions.d.mts.map +1 -1
- package/tools/subscriptions/create-subscriptions.d.ts +12 -6
- package/tools/subscriptions/create-subscriptions.d.ts.map +1 -1
- package/tools/subscriptions/create-subscriptions.js +13 -1
- package/tools/subscriptions/create-subscriptions.js.map +1 -1
- package/tools/subscriptions/create-subscriptions.mjs +11 -2
- package/tools/subscriptions/create-subscriptions.mjs.map +1 -1
- package/tools/subscriptions/list-subscriptions.d.mts +12 -6
- package/tools/subscriptions/list-subscriptions.d.mts.map +1 -1
- package/tools/subscriptions/list-subscriptions.d.ts +12 -6
- package/tools/subscriptions/list-subscriptions.d.ts.map +1 -1
- package/tools/subscriptions/list-subscriptions.js +13 -1
- package/tools/subscriptions/list-subscriptions.js.map +1 -1
- package/tools/subscriptions/list-subscriptions.mjs +11 -2
- package/tools/subscriptions/list-subscriptions.mjs.map +1 -1
- package/tools/subscriptions/retrieve-subscriptions.d.mts +12 -6
- package/tools/subscriptions/retrieve-subscriptions.d.mts.map +1 -1
- package/tools/subscriptions/retrieve-subscriptions.d.ts +12 -6
- package/tools/subscriptions/retrieve-subscriptions.d.ts.map +1 -1
- package/tools/subscriptions/retrieve-subscriptions.js +13 -1
- package/tools/subscriptions/retrieve-subscriptions.js.map +1 -1
- package/tools/subscriptions/retrieve-subscriptions.mjs +11 -2
- package/tools/subscriptions/retrieve-subscriptions.mjs.map +1 -1
- package/tools/subscriptions/retrieve-usage-history-subscriptions.d.mts +12 -6
- package/tools/subscriptions/retrieve-usage-history-subscriptions.d.mts.map +1 -1
- package/tools/subscriptions/retrieve-usage-history-subscriptions.d.ts +12 -6
- package/tools/subscriptions/retrieve-usage-history-subscriptions.d.ts.map +1 -1
- package/tools/subscriptions/retrieve-usage-history-subscriptions.js +5 -1
- package/tools/subscriptions/retrieve-usage-history-subscriptions.js.map +1 -1
- package/tools/subscriptions/retrieve-usage-history-subscriptions.mjs +2 -1
- package/tools/subscriptions/retrieve-usage-history-subscriptions.mjs.map +1 -1
- package/tools/subscriptions/update-payment-method-subscriptions.d.mts +12 -6
- package/tools/subscriptions/update-payment-method-subscriptions.d.mts.map +1 -1
- package/tools/subscriptions/update-payment-method-subscriptions.d.ts +12 -6
- package/tools/subscriptions/update-payment-method-subscriptions.d.ts.map +1 -1
- package/tools/subscriptions/update-payment-method-subscriptions.js +5 -1
- package/tools/subscriptions/update-payment-method-subscriptions.js.map +1 -1
- package/tools/subscriptions/update-payment-method-subscriptions.mjs +2 -1
- package/tools/subscriptions/update-payment-method-subscriptions.mjs.map +1 -1
- package/tools/subscriptions/update-subscriptions.d.mts +12 -6
- package/tools/subscriptions/update-subscriptions.d.mts.map +1 -1
- package/tools/subscriptions/update-subscriptions.d.ts +12 -6
- package/tools/subscriptions/update-subscriptions.d.ts.map +1 -1
- package/tools/subscriptions/update-subscriptions.js +13 -1
- package/tools/subscriptions/update-subscriptions.js.map +1 -1
- package/tools/subscriptions/update-subscriptions.mjs +11 -2
- package/tools/subscriptions/update-subscriptions.mjs.map +1 -1
- package/tools/usage-events/ingest-usage-events.d.mts +12 -6
- package/tools/usage-events/ingest-usage-events.d.mts.map +1 -1
- package/tools/usage-events/ingest-usage-events.d.ts +12 -6
- package/tools/usage-events/ingest-usage-events.d.ts.map +1 -1
- package/tools/usage-events/ingest-usage-events.js +5 -1
- package/tools/usage-events/ingest-usage-events.js.map +1 -1
- package/tools/usage-events/ingest-usage-events.mjs +2 -1
- package/tools/usage-events/ingest-usage-events.mjs.map +1 -1
- package/tools/usage-events/list-usage-events.d.mts +12 -6
- package/tools/usage-events/list-usage-events.d.mts.map +1 -1
- package/tools/usage-events/list-usage-events.d.ts +12 -6
- package/tools/usage-events/list-usage-events.d.ts.map +1 -1
- package/tools/usage-events/list-usage-events.js +5 -1
- package/tools/usage-events/list-usage-events.js.map +1 -1
- package/tools/usage-events/list-usage-events.mjs +2 -1
- package/tools/usage-events/list-usage-events.mjs.map +1 -1
- package/tools/usage-events/retrieve-usage-events.d.mts +12 -6
- package/tools/usage-events/retrieve-usage-events.d.mts.map +1 -1
- package/tools/usage-events/retrieve-usage-events.d.ts +12 -6
- package/tools/usage-events/retrieve-usage-events.d.ts.map +1 -1
- package/tools/usage-events/retrieve-usage-events.js +5 -1
- package/tools/usage-events/retrieve-usage-events.js.map +1 -1
- package/tools/usage-events/retrieve-usage-events.mjs +2 -1
- package/tools/usage-events/retrieve-usage-events.mjs.map +1 -1
- package/tools/webhooks/create-webhooks.d.mts +12 -6
- package/tools/webhooks/create-webhooks.d.mts.map +1 -1
- package/tools/webhooks/create-webhooks.d.ts +12 -6
- package/tools/webhooks/create-webhooks.d.ts.map +1 -1
- package/tools/webhooks/create-webhooks.js +5 -1
- package/tools/webhooks/create-webhooks.js.map +1 -1
- package/tools/webhooks/create-webhooks.mjs +2 -1
- package/tools/webhooks/create-webhooks.mjs.map +1 -1
- package/tools/webhooks/delete-webhooks.d.mts +12 -6
- package/tools/webhooks/delete-webhooks.d.mts.map +1 -1
- package/tools/webhooks/delete-webhooks.d.ts +12 -6
- package/tools/webhooks/delete-webhooks.d.ts.map +1 -1
- package/tools/webhooks/headers/retrieve-webhooks-headers.d.mts +12 -6
- package/tools/webhooks/headers/retrieve-webhooks-headers.d.mts.map +1 -1
- package/tools/webhooks/headers/retrieve-webhooks-headers.d.ts +12 -6
- package/tools/webhooks/headers/retrieve-webhooks-headers.d.ts.map +1 -1
- package/tools/webhooks/headers/retrieve-webhooks-headers.js +5 -1
- package/tools/webhooks/headers/retrieve-webhooks-headers.js.map +1 -1
- package/tools/webhooks/headers/retrieve-webhooks-headers.mjs +2 -1
- package/tools/webhooks/headers/retrieve-webhooks-headers.mjs.map +1 -1
- package/tools/webhooks/headers/update-webhooks-headers.d.mts +12 -6
- package/tools/webhooks/headers/update-webhooks-headers.d.mts.map +1 -1
- package/tools/webhooks/headers/update-webhooks-headers.d.ts +12 -6
- package/tools/webhooks/headers/update-webhooks-headers.d.ts.map +1 -1
- package/tools/webhooks/list-webhooks.d.mts +12 -6
- package/tools/webhooks/list-webhooks.d.mts.map +1 -1
- package/tools/webhooks/list-webhooks.d.ts +12 -6
- package/tools/webhooks/list-webhooks.d.ts.map +1 -1
- package/tools/webhooks/list-webhooks.js +5 -1
- package/tools/webhooks/list-webhooks.js.map +1 -1
- package/tools/webhooks/list-webhooks.mjs +2 -1
- package/tools/webhooks/list-webhooks.mjs.map +1 -1
- package/tools/webhooks/retrieve-secret-webhooks.d.mts +12 -6
- package/tools/webhooks/retrieve-secret-webhooks.d.mts.map +1 -1
- package/tools/webhooks/retrieve-secret-webhooks.d.ts +12 -6
- package/tools/webhooks/retrieve-secret-webhooks.d.ts.map +1 -1
- package/tools/webhooks/retrieve-secret-webhooks.js +5 -1
- package/tools/webhooks/retrieve-secret-webhooks.js.map +1 -1
- package/tools/webhooks/retrieve-secret-webhooks.mjs +2 -1
- package/tools/webhooks/retrieve-secret-webhooks.mjs.map +1 -1
- package/tools/webhooks/retrieve-webhooks.d.mts +12 -6
- package/tools/webhooks/retrieve-webhooks.d.mts.map +1 -1
- package/tools/webhooks/retrieve-webhooks.d.ts +12 -6
- package/tools/webhooks/retrieve-webhooks.d.ts.map +1 -1
- package/tools/webhooks/retrieve-webhooks.js +5 -1
- package/tools/webhooks/retrieve-webhooks.js.map +1 -1
- package/tools/webhooks/retrieve-webhooks.mjs +2 -1
- package/tools/webhooks/retrieve-webhooks.mjs.map +1 -1
- package/tools/webhooks/update-webhooks.d.mts +12 -6
- package/tools/webhooks/update-webhooks.d.mts.map +1 -1
- package/tools/webhooks/update-webhooks.d.ts +12 -6
- package/tools/webhooks/update-webhooks.d.ts.map +1 -1
- package/tools/webhooks/update-webhooks.js +5 -1
- package/tools/webhooks/update-webhooks.js.map +1 -1
- package/tools/webhooks/update-webhooks.mjs +2 -1
- package/tools/webhooks/update-webhooks.mjs.map +1 -1
- package/code-tool-paths.cjs +0 -6
- package/code-tool-paths.cjs.map +0 -1
- package/code-tool-paths.d.cts +0 -2
- package/code-tool-paths.d.cts.map +0 -1
- package/code-tool-worker.d.mts +0 -5
- package/code-tool-worker.d.mts.map +0 -1
- package/code-tool-worker.d.ts +0 -5
- package/code-tool-worker.d.ts.map +0 -1
- package/code-tool-worker.js +0 -230
- package/code-tool-worker.js.map +0 -1
- package/code-tool-worker.mjs +0 -225
- package/code-tool-worker.mjs.map +0 -1
- package/src/code-tool-paths.cts +0 -3
- package/src/code-tool-worker.ts +0 -276
package/docs-search-tool.js
CHANGED
|
@@ -11,7 +11,7 @@ exports.metadata = {
|
|
|
11
11
|
};
|
|
12
12
|
exports.tool = {
|
|
13
13
|
name: 'search_docs',
|
|
14
|
-
description: 'Search for documentation for how to use the client to interact with the API
|
|
14
|
+
description: 'Search for documentation for how to use the client to interact with the API.',
|
|
15
15
|
inputSchema: {
|
|
16
16
|
type: 'object',
|
|
17
17
|
properties: {
|
|
@@ -22,7 +22,12 @@ exports.tool = {
|
|
|
22
22
|
language: {
|
|
23
23
|
type: 'string',
|
|
24
24
|
description: 'The language for the SDK to search for.',
|
|
25
|
-
enum: ['http', 'python', 'go', 'typescript', 'terraform', 'ruby', 'java', 'kotlin'],
|
|
25
|
+
enum: ['http', 'python', 'go', 'typescript', 'javascript', 'terraform', 'ruby', 'java', 'kotlin'],
|
|
26
|
+
},
|
|
27
|
+
detail: {
|
|
28
|
+
type: 'string',
|
|
29
|
+
description: 'The amount of detail to return.',
|
|
30
|
+
enum: ['default', 'verbose'],
|
|
26
31
|
},
|
|
27
32
|
},
|
|
28
33
|
required: ['query', 'language'],
|
|
@@ -36,6 +41,9 @@ const handler = async (_, args) => {
|
|
|
36
41
|
const body = args;
|
|
37
42
|
const query = new URLSearchParams(body).toString();
|
|
38
43
|
const result = await fetch(`${docsSearchURL}?${query}`);
|
|
44
|
+
if (!result.ok) {
|
|
45
|
+
throw new Error(`${result.status}: ${result.statusText} when using doc search tool. Details: ${await result.text()}`);
|
|
46
|
+
}
|
|
39
47
|
return (0, types_1.asTextContentResult)(await result.json());
|
|
40
48
|
};
|
|
41
49
|
exports.handler = handler;
|
package/docs-search-tool.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs-search-tool.js","sourceRoot":"","sources":["src/docs-search-tool.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4CAA8D;AAIjD,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,KAAK;IACf,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;CAClB,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,aAAa;IACnB,WAAW,
|
|
1
|
+
{"version":3,"file":"docs-search-tool.js","sourceRoot":"","sources":["src/docs-search-tool.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4CAA8D;AAIjD,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,KAAK;IACf,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;CAClB,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,8EAA8E;IAC3F,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,0BAA0B;aACxC;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,yCAAyC;gBACtD,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC;aAClG;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,iCAAiC;gBAC9C,IAAI,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC;aAC7B;SACF;QACD,QAAQ,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC;KAChC;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,aAAa,GACjB,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,IAAI,kEAAkE,CAAC;AAEhG,MAAM,OAAO,GAAG,KAAK,EAAE,CAAU,EAAE,IAAyC,EAAE,EAAE;IACrF,MAAM,IAAI,GAAG,IAAW,CAAC;IACzB,MAAM,KAAK,GAAG,IAAI,eAAe,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC;IACnD,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,GAAG,aAAa,IAAI,KAAK,EAAE,CAAC,CAAC;IAExD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,MAAM,IAAI,KAAK,CACb,GAAG,MAAM,CAAC,MAAM,KAAK,MAAM,CAAC,UAAU,yCAAyC,MAAM,MAAM,CAAC,IAAI,EAAE,EAAE,CACrG,CAAC;IACJ,CAAC;IAED,OAAO,IAAA,2BAAmB,EAAC,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;AAClD,CAAC,CAAC;AAZW,QAAA,OAAO,WAYlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|
package/docs-search-tool.mjs
CHANGED
|
@@ -8,7 +8,7 @@ export const metadata = {
|
|
|
8
8
|
};
|
|
9
9
|
export const tool = {
|
|
10
10
|
name: 'search_docs',
|
|
11
|
-
description: 'Search for documentation for how to use the client to interact with the API
|
|
11
|
+
description: 'Search for documentation for how to use the client to interact with the API.',
|
|
12
12
|
inputSchema: {
|
|
13
13
|
type: 'object',
|
|
14
14
|
properties: {
|
|
@@ -19,7 +19,12 @@ export const tool = {
|
|
|
19
19
|
language: {
|
|
20
20
|
type: 'string',
|
|
21
21
|
description: 'The language for the SDK to search for.',
|
|
22
|
-
enum: ['http', 'python', 'go', 'typescript', 'terraform', 'ruby', 'java', 'kotlin'],
|
|
22
|
+
enum: ['http', 'python', 'go', 'typescript', 'javascript', 'terraform', 'ruby', 'java', 'kotlin'],
|
|
23
|
+
},
|
|
24
|
+
detail: {
|
|
25
|
+
type: 'string',
|
|
26
|
+
description: 'The amount of detail to return.',
|
|
27
|
+
enum: ['default', 'verbose'],
|
|
23
28
|
},
|
|
24
29
|
},
|
|
25
30
|
required: ['query', 'language'],
|
|
@@ -33,6 +38,9 @@ export const handler = async (_, args) => {
|
|
|
33
38
|
const body = args;
|
|
34
39
|
const query = new URLSearchParams(body).toString();
|
|
35
40
|
const result = await fetch(`${docsSearchURL}?${query}`);
|
|
41
|
+
if (!result.ok) {
|
|
42
|
+
throw new Error(`${result.status}: ${result.statusText} when using doc search tool. Details: ${await result.text()}`);
|
|
43
|
+
}
|
|
36
44
|
return asTextContentResult(await result.json());
|
|
37
45
|
};
|
|
38
46
|
export default { metadata, tool, handler };
|
package/docs-search-tool.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs-search-tool.mjs","sourceRoot":"","sources":["src/docs-search-tool.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAY,mBAAmB,EAAE;AAIxC,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,KAAK;IACf,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;CAClB,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,aAAa;IACnB,WAAW,
|
|
1
|
+
{"version":3,"file":"docs-search-tool.mjs","sourceRoot":"","sources":["src/docs-search-tool.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAY,mBAAmB,EAAE;AAIxC,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,KAAK;IACf,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;CAClB,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,8EAA8E;IAC3F,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,0BAA0B;aACxC;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,yCAAyC;gBACtD,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC;aAClG;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,iCAAiC;gBAC9C,IAAI,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC;aAC7B;SACF;QACD,QAAQ,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC;KAChC;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,aAAa,GACjB,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,IAAI,kEAAkE,CAAC;AAEvG,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,CAAU,EAAE,IAAyC,EAAE,EAAE;IACrF,MAAM,IAAI,GAAG,IAAW,CAAC;IACzB,MAAM,KAAK,GAAG,IAAI,eAAe,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC;IACnD,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,GAAG,aAAa,IAAI,KAAK,EAAE,CAAC,CAAC;IAExD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,MAAM,IAAI,KAAK,CACb,GAAG,MAAM,CAAC,MAAM,KAAK,MAAM,CAAC,UAAU,yCAAyC,MAAM,MAAM,CAAC,IAAI,EAAE,EAAE,CACrG,CAAC;IACJ,CAAC;IAED,OAAO,mBAAmB,CAAC,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;AAClD,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dodopayments-mcp",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.0",
|
|
4
4
|
"description": "The official MCP Server for the Dodo Payments API",
|
|
5
5
|
"author": "Dodo Payments <support@dodopayments.com>",
|
|
6
6
|
"types": "./index.d.ts",
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"fix": "eslint --fix --ext ts,js ."
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"dodopayments": "^2.
|
|
30
|
+
"dodopayments": "^2.7.0",
|
|
31
31
|
"@cloudflare/cabidela": "^0.2.4",
|
|
32
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
32
|
+
"@modelcontextprotocol/sdk": "^1.24.0",
|
|
33
33
|
"@valtown/deno-http-worker": "^0.0.21",
|
|
34
34
|
"cors": "^2.8.5",
|
|
35
35
|
"express": "^5.1.0",
|
|
@@ -58,12 +58,6 @@
|
|
|
58
58
|
"types": "./index.d.mts",
|
|
59
59
|
"default": "./index.mjs"
|
|
60
60
|
},
|
|
61
|
-
"./code-tool-paths": {
|
|
62
|
-
"require": "./code-tool-paths.cjs"
|
|
63
|
-
},
|
|
64
|
-
"./code-tool-paths.cjs": {
|
|
65
|
-
"default": "./code-tool-paths.cjs"
|
|
66
|
-
},
|
|
67
61
|
"./code-tool-types": {
|
|
68
62
|
"import": "./code-tool-types.mjs",
|
|
69
63
|
"require": "./code-tool-types.js"
|
|
@@ -74,16 +68,6 @@
|
|
|
74
68
|
"./code-tool-types.mjs": {
|
|
75
69
|
"default": "./code-tool-types.mjs"
|
|
76
70
|
},
|
|
77
|
-
"./code-tool-worker": {
|
|
78
|
-
"import": "./code-tool-worker.mjs",
|
|
79
|
-
"require": "./code-tool-worker.js"
|
|
80
|
-
},
|
|
81
|
-
"./code-tool-worker.js": {
|
|
82
|
-
"default": "./code-tool-worker.js"
|
|
83
|
-
},
|
|
84
|
-
"./code-tool-worker.mjs": {
|
|
85
|
-
"default": "./code-tool-worker.mjs"
|
|
86
|
-
},
|
|
87
71
|
"./code-tool": {
|
|
88
72
|
"import": "./code-tool.mjs",
|
|
89
73
|
"require": "./code-tool.js"
|
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: 'dodopayments_api',
|
|
25
|
-
version: '2.
|
|
25
|
+
version: '2.7.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: 'dodopayments_api',
|
|
14
|
-
version: '2.
|
|
14
|
+
version: '2.7.0',
|
|
15
15
|
}, { capabilities: { tools: {}, logging: {} } });
|
|
16
16
|
// Create server instance
|
|
17
17
|
export const server = newMcpServer();
|
package/src/code-tool-types.ts
CHANGED
package/src/code-tool.ts
CHANGED
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import { pathToFileURL } from 'node:url';
|
|
5
|
-
import DodoPayments, { ClientOptions } from 'dodopayments';
|
|
6
|
-
import { ContentBlock, Endpoint, Metadata, ToolCallResult } from './tools/types';
|
|
7
|
-
|
|
3
|
+
import { Metadata, ToolCallResult, asTextContentResult } from './tools/types';
|
|
8
4
|
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
9
|
-
|
|
10
|
-
import {
|
|
11
|
-
|
|
5
|
+
import { readEnv } from './server';
|
|
6
|
+
import { WorkerSuccess } from './code-tool-types';
|
|
12
7
|
/**
|
|
13
8
|
* A tool that runs code against a copy of the SDK.
|
|
14
9
|
*
|
|
@@ -18,130 +13,48 @@ import { WorkerInput, WorkerError, WorkerSuccess } from './code-tool-types';
|
|
|
18
13
|
*
|
|
19
14
|
* @param endpoints - The endpoints to include in the list.
|
|
20
15
|
*/
|
|
21
|
-
export async function codeTool()
|
|
16
|
+
export async function codeTool() {
|
|
22
17
|
const metadata: Metadata = { resource: 'all', operation: 'write', tags: [] };
|
|
23
18
|
const tool: Tool = {
|
|
24
19
|
name: 'execute',
|
|
25
20
|
description:
|
|
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
|
|
21
|
+
'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 SDK 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
22
|
inputSchema: { type: 'object', properties: { code: { type: 'string' } } },
|
|
28
23
|
};
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
printOutput: true,
|
|
48
|
-
spawnOptions: {
|
|
49
|
-
cwd: dirname(workerPath),
|
|
24
|
+
const handler = async (_: unknown, args: any): Promise<ToolCallResult> => {
|
|
25
|
+
const code = args.code as string;
|
|
26
|
+
|
|
27
|
+
// this is not required, but passing a Stainless API key for the matching project_name
|
|
28
|
+
// will allow you to run code-mode queries against non-published versions of your SDK.
|
|
29
|
+
const stainlessAPIKey = readEnv('STAINLESS_API_KEY');
|
|
30
|
+
const codeModeEndpoint =
|
|
31
|
+
readEnv('CODE_MODE_ENDPOINT_URL') ?? 'https://api.stainless.com/api/ai/code-tool';
|
|
32
|
+
|
|
33
|
+
const res = await fetch(codeModeEndpoint, {
|
|
34
|
+
method: 'POST',
|
|
35
|
+
headers: {
|
|
36
|
+
...(stainlessAPIKey && { Authorization: stainlessAPIKey }),
|
|
37
|
+
'Content-Type': 'application/json',
|
|
38
|
+
client_envs: JSON.stringify({
|
|
39
|
+
DODO_PAYMENTS_API_KEY: readEnv('DODO_PAYMENTS_API_KEY'),
|
|
40
|
+
DODO_PAYMENTS_WEBHOOK_KEY: readEnv('DODO_PAYMENTS_WEBHOOK_KEY'),
|
|
41
|
+
}),
|
|
50
42
|
},
|
|
43
|
+
body: JSON.stringify({
|
|
44
|
+
project_name: 'dodo-payments',
|
|
45
|
+
code,
|
|
46
|
+
}),
|
|
51
47
|
});
|
|
52
48
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
})
|
|
58
|
-
|
|
59
|
-
const opts: ClientOptions = {
|
|
60
|
-
baseURL: client.baseURL,
|
|
61
|
-
bearerToken: client.bearerToken,
|
|
62
|
-
webhookKey: client.webhookKey,
|
|
63
|
-
defaultHeaders: {
|
|
64
|
-
'X-Stainless-MCP': 'true',
|
|
65
|
-
},
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
const req = worker.request(
|
|
69
|
-
'http://localhost',
|
|
70
|
-
{
|
|
71
|
-
headers: {
|
|
72
|
-
'content-type': 'application/json',
|
|
73
|
-
},
|
|
74
|
-
method: 'POST',
|
|
75
|
-
},
|
|
76
|
-
(resp) => {
|
|
77
|
-
const body: Uint8Array[] = [];
|
|
78
|
-
resp.on('error', (err) => {
|
|
79
|
-
reject(err);
|
|
80
|
-
});
|
|
81
|
-
resp.on('data', (chunk) => {
|
|
82
|
-
body.push(chunk);
|
|
83
|
-
});
|
|
84
|
-
resp.on('end', () => {
|
|
85
|
-
resolve(
|
|
86
|
-
new Response(Buffer.concat(body).toString(), {
|
|
87
|
-
status: resp.statusCode ?? 200,
|
|
88
|
-
headers: resp.headers as any,
|
|
89
|
-
}),
|
|
90
|
-
);
|
|
91
|
-
});
|
|
92
|
-
},
|
|
93
|
-
);
|
|
94
|
-
|
|
95
|
-
const body = JSON.stringify({
|
|
96
|
-
opts,
|
|
97
|
-
code,
|
|
98
|
-
} satisfies WorkerInput);
|
|
99
|
-
|
|
100
|
-
req.write(body, (err) => {
|
|
101
|
-
if (err != null) {
|
|
102
|
-
reject(err);
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
|
|
106
|
-
req.end();
|
|
107
|
-
});
|
|
108
|
-
|
|
109
|
-
if (resp.status === 200) {
|
|
110
|
-
const { result, logLines, errLines } = (await resp.json()) as WorkerSuccess;
|
|
111
|
-
const returnOutput: ContentBlock | null =
|
|
112
|
-
result == null ? null : (
|
|
113
|
-
{
|
|
114
|
-
type: 'text',
|
|
115
|
-
text: typeof result === 'string' ? result : JSON.stringify(result),
|
|
116
|
-
}
|
|
117
|
-
);
|
|
118
|
-
const logOutput: ContentBlock | null =
|
|
119
|
-
logLines.length === 0 ?
|
|
120
|
-
null
|
|
121
|
-
: {
|
|
122
|
-
type: 'text',
|
|
123
|
-
text: logLines.join('\n'),
|
|
124
|
-
};
|
|
125
|
-
const errOutput: ContentBlock | null =
|
|
126
|
-
errLines.length === 0 ?
|
|
127
|
-
null
|
|
128
|
-
: {
|
|
129
|
-
type: 'text',
|
|
130
|
-
text: 'Error output:\n' + errLines.join('\n'),
|
|
131
|
-
};
|
|
132
|
-
return {
|
|
133
|
-
content: [returnOutput, logOutput, errOutput].filter((block) => block !== null),
|
|
134
|
-
};
|
|
135
|
-
} else {
|
|
136
|
-
const { message } = (await resp.json()) as WorkerError;
|
|
137
|
-
return {
|
|
138
|
-
content: message == null ? [] : [{ type: 'text', text: message }],
|
|
139
|
-
isError: true,
|
|
140
|
-
};
|
|
141
|
-
}
|
|
142
|
-
} finally {
|
|
143
|
-
worker.terminate();
|
|
49
|
+
if (!res.ok) {
|
|
50
|
+
throw new Error(
|
|
51
|
+
`${res.status}: ${
|
|
52
|
+
res.statusText
|
|
53
|
+
} error when trying to contact Code Tool server. Details: ${await res.text()}`,
|
|
54
|
+
);
|
|
144
55
|
}
|
|
56
|
+
|
|
57
|
+
return asTextContentResult((await res.json()) as WorkerSuccess);
|
|
145
58
|
};
|
|
146
59
|
|
|
147
60
|
return { metadata, tool, handler };
|
package/src/docs-search-tool.ts
CHANGED
|
@@ -13,8 +13,7 @@ export const metadata: Metadata = {
|
|
|
13
13
|
|
|
14
14
|
export const tool: Tool = {
|
|
15
15
|
name: 'search_docs',
|
|
16
|
-
description:
|
|
17
|
-
'Search for documentation for how to use the client to interact with the API.\nThe tool will return an array of Markdown-formatted documentation pages.',
|
|
16
|
+
description: 'Search for documentation for how to use the client to interact with the API.',
|
|
18
17
|
inputSchema: {
|
|
19
18
|
type: 'object',
|
|
20
19
|
properties: {
|
|
@@ -25,7 +24,12 @@ export const tool: Tool = {
|
|
|
25
24
|
language: {
|
|
26
25
|
type: 'string',
|
|
27
26
|
description: 'The language for the SDK to search for.',
|
|
28
|
-
enum: ['http', 'python', 'go', 'typescript', 'terraform', 'ruby', 'java', 'kotlin'],
|
|
27
|
+
enum: ['http', 'python', 'go', 'typescript', 'javascript', 'terraform', 'ruby', 'java', 'kotlin'],
|
|
28
|
+
},
|
|
29
|
+
detail: {
|
|
30
|
+
type: 'string',
|
|
31
|
+
description: 'The amount of detail to return.',
|
|
32
|
+
enum: ['default', 'verbose'],
|
|
29
33
|
},
|
|
30
34
|
},
|
|
31
35
|
required: ['query', 'language'],
|
|
@@ -42,6 +46,13 @@ export const handler = async (_: unknown, args: Record<string, unknown> | undefi
|
|
|
42
46
|
const body = args as any;
|
|
43
47
|
const query = new URLSearchParams(body).toString();
|
|
44
48
|
const result = await fetch(`${docsSearchURL}?${query}`);
|
|
49
|
+
|
|
50
|
+
if (!result.ok) {
|
|
51
|
+
throw new Error(
|
|
52
|
+
`${result.status}: ${result.statusText} when using doc search tool. Details: ${await result.text()}`,
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
|
|
45
56
|
return asTextContentResult(await result.json());
|
|
46
57
|
};
|
|
47
58
|
|
package/src/server.ts
CHANGED
|
@@ -215,7 +215,7 @@ export const handler = async (client: DodoPayments, args: Record<string, unknown
|
|
|
215
215
|
try {
|
|
216
216
|
return asTextContentResult(await maybeFilter(jq_filter, await client.addons.create(body)));
|
|
217
217
|
} catch (error) {
|
|
218
|
-
if (isJqError(error)) {
|
|
218
|
+
if (error instanceof DodoPayments.APIError || isJqError(error)) {
|
|
219
219
|
return asErrorResult(error.message);
|
|
220
220
|
}
|
|
221
221
|
throw error;
|
|
@@ -50,7 +50,7 @@ export const handler = async (client: DodoPayments, args: Record<string, unknown
|
|
|
50
50
|
try {
|
|
51
51
|
return asTextContentResult(await maybeFilter(jq_filter, await response.json()));
|
|
52
52
|
} catch (error) {
|
|
53
|
-
if (isJqError(error)) {
|
|
53
|
+
if (error instanceof DodoPayments.APIError || isJqError(error)) {
|
|
54
54
|
return asErrorResult(error.message);
|
|
55
55
|
}
|
|
56
56
|
throw error;
|
|
@@ -44,7 +44,7 @@ export const handler = async (client: DodoPayments, args: Record<string, unknown
|
|
|
44
44
|
try {
|
|
45
45
|
return asTextContentResult(await maybeFilter(jq_filter, await client.addons.retrieve(id)));
|
|
46
46
|
} catch (error) {
|
|
47
|
-
if (isJqError(error)) {
|
|
47
|
+
if (error instanceof DodoPayments.APIError || isJqError(error)) {
|
|
48
48
|
return asErrorResult(error.message);
|
|
49
49
|
}
|
|
50
50
|
throw error;
|
|
@@ -222,7 +222,7 @@ export const handler = async (client: DodoPayments, args: Record<string, unknown
|
|
|
222
222
|
try {
|
|
223
223
|
return asTextContentResult(await maybeFilter(jq_filter, await client.addons.update(id, body)));
|
|
224
224
|
} catch (error) {
|
|
225
|
-
if (isJqError(error)) {
|
|
225
|
+
if (error instanceof DodoPayments.APIError || isJqError(error)) {
|
|
226
226
|
return asErrorResult(error.message);
|
|
227
227
|
}
|
|
228
228
|
throw error;
|
|
@@ -44,7 +44,7 @@ export const handler = async (client: DodoPayments, args: Record<string, unknown
|
|
|
44
44
|
try {
|
|
45
45
|
return asTextContentResult(await maybeFilter(jq_filter, await client.addons.updateImages(id)));
|
|
46
46
|
} catch (error) {
|
|
47
|
-
if (isJqError(error)) {
|
|
47
|
+
if (error instanceof DodoPayments.APIError || isJqError(error)) {
|
|
48
48
|
return asErrorResult(error.message);
|
|
49
49
|
}
|
|
50
50
|
throw error;
|
|
@@ -54,7 +54,7 @@ export const handler = async (client: DodoPayments, args: Record<string, unknown
|
|
|
54
54
|
try {
|
|
55
55
|
return asTextContentResult(await maybeFilter(jq_filter, await client.brands.create(body)));
|
|
56
56
|
} catch (error) {
|
|
57
|
-
if (isJqError(error)) {
|
|
57
|
+
if (error instanceof DodoPayments.APIError || isJqError(error)) {
|
|
58
58
|
return asErrorResult(error.message);
|
|
59
59
|
}
|
|
60
60
|
throw error;
|
|
@@ -41,7 +41,7 @@ export const handler = async (client: DodoPayments, args: Record<string, unknown
|
|
|
41
41
|
try {
|
|
42
42
|
return asTextContentResult(await maybeFilter(jq_filter, await client.brands.list()));
|
|
43
43
|
} catch (error) {
|
|
44
|
-
if (isJqError(error)) {
|
|
44
|
+
if (error instanceof DodoPayments.APIError || isJqError(error)) {
|
|
45
45
|
return asErrorResult(error.message);
|
|
46
46
|
}
|
|
47
47
|
throw error;
|
|
@@ -44,7 +44,7 @@ export const handler = async (client: DodoPayments, args: Record<string, unknown
|
|
|
44
44
|
try {
|
|
45
45
|
return asTextContentResult(await maybeFilter(jq_filter, await client.brands.retrieve(id)));
|
|
46
46
|
} catch (error) {
|
|
47
|
-
if (isJqError(error)) {
|
|
47
|
+
if (error instanceof DodoPayments.APIError || isJqError(error)) {
|
|
48
48
|
return asErrorResult(error.message);
|
|
49
49
|
}
|
|
50
50
|
throw error;
|
|
@@ -55,7 +55,7 @@ export const handler = async (client: DodoPayments, args: Record<string, unknown
|
|
|
55
55
|
try {
|
|
56
56
|
return asTextContentResult(await maybeFilter(jq_filter, await client.brands.update(id, body)));
|
|
57
57
|
} catch (error) {
|
|
58
|
-
if (isJqError(error)) {
|
|
58
|
+
if (error instanceof DodoPayments.APIError || isJqError(error)) {
|
|
59
59
|
return asErrorResult(error.message);
|
|
60
60
|
}
|
|
61
61
|
throw error;
|
|
@@ -44,7 +44,7 @@ export const handler = async (client: DodoPayments, args: Record<string, unknown
|
|
|
44
44
|
try {
|
|
45
45
|
return asTextContentResult(await maybeFilter(jq_filter, await client.brands.updateImages(id)));
|
|
46
46
|
} catch (error) {
|
|
47
|
-
if (isJqError(error)) {
|
|
47
|
+
if (error instanceof DodoPayments.APIError || isJqError(error)) {
|
|
48
48
|
return asErrorResult(error.message);
|
|
49
49
|
}
|
|
50
50
|
throw error;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { Metadata, asTextContentResult } from 'dodopayments-mcp/tools/types';
|
|
3
|
+
import { Metadata, asErrorResult, asTextContentResult } from 'dodopayments-mcp/tools/types';
|
|
4
4
|
|
|
5
5
|
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
6
6
|
import DodoPayments from 'dodopayments';
|
|
@@ -724,7 +724,14 @@ export const tool: Tool = {
|
|
|
724
724
|
|
|
725
725
|
export const handler = async (client: DodoPayments, args: Record<string, unknown> | undefined) => {
|
|
726
726
|
const body = args as any;
|
|
727
|
-
|
|
727
|
+
try {
|
|
728
|
+
return asTextContentResult(await client.checkoutSessions.create(body));
|
|
729
|
+
} catch (error) {
|
|
730
|
+
if (error instanceof DodoPayments.APIError) {
|
|
731
|
+
return asErrorResult(error.message);
|
|
732
|
+
}
|
|
733
|
+
throw error;
|
|
734
|
+
}
|
|
728
735
|
};
|
|
729
736
|
|
|
730
737
|
export default { metadata, tool, handler };
|
|
@@ -44,7 +44,7 @@ export const handler = async (client: DodoPayments, args: Record<string, unknown
|
|
|
44
44
|
try {
|
|
45
45
|
return asTextContentResult(await maybeFilter(jq_filter, await client.checkoutSessions.retrieve(id)));
|
|
46
46
|
} catch (error) {
|
|
47
|
-
if (isJqError(error)) {
|
|
47
|
+
if (error instanceof DodoPayments.APIError || isJqError(error)) {
|
|
48
48
|
return asErrorResult(error.message);
|
|
49
49
|
}
|
|
50
50
|
throw error;
|
|
@@ -53,7 +53,7 @@ export const handler = async (client: DodoPayments, args: Record<string, unknown
|
|
|
53
53
|
try {
|
|
54
54
|
return asTextContentResult(await maybeFilter(jq_filter, await client.customers.create(body)));
|
|
55
55
|
} catch (error) {
|
|
56
|
-
if (isJqError(error)) {
|
|
56
|
+
if (error instanceof DodoPayments.APIError || isJqError(error)) {
|
|
57
57
|
return asErrorResult(error.message);
|
|
58
58
|
}
|
|
59
59
|
throw error;
|
|
@@ -48,7 +48,7 @@ export const handler = async (client: DodoPayments, args: Record<string, unknown
|
|
|
48
48
|
await maybeFilter(jq_filter, await client.customers.customerPortal.create(customer_id, body)),
|
|
49
49
|
);
|
|
50
50
|
} catch (error) {
|
|
51
|
-
if (isJqError(error)) {
|
|
51
|
+
if (error instanceof DodoPayments.APIError || isJqError(error)) {
|
|
52
52
|
return asErrorResult(error.message);
|
|
53
53
|
}
|
|
54
54
|
throw error;
|
|
@@ -54,7 +54,7 @@ export const handler = async (client: DodoPayments, args: Record<string, unknown
|
|
|
54
54
|
try {
|
|
55
55
|
return asTextContentResult(await maybeFilter(jq_filter, await response.json()));
|
|
56
56
|
} catch (error) {
|
|
57
|
-
if (isJqError(error)) {
|
|
57
|
+
if (error instanceof DodoPayments.APIError || isJqError(error)) {
|
|
58
58
|
return asErrorResult(error.message);
|
|
59
59
|
}
|
|
60
60
|
throw error;
|
|
@@ -44,7 +44,7 @@ export const handler = async (client: DodoPayments, args: Record<string, unknown
|
|
|
44
44
|
try {
|
|
45
45
|
return asTextContentResult(await maybeFilter(jq_filter, await client.customers.retrieve(customer_id)));
|
|
46
46
|
} catch (error) {
|
|
47
|
-
if (isJqError(error)) {
|
|
47
|
+
if (error instanceof DodoPayments.APIError || isJqError(error)) {
|
|
48
48
|
return asErrorResult(error.message);
|
|
49
49
|
}
|
|
50
50
|
throw error;
|
|
@@ -46,7 +46,7 @@ export const handler = async (client: DodoPayments, args: Record<string, unknown
|
|
|
46
46
|
await maybeFilter(jq_filter, await client.customers.retrievePaymentMethods(customer_id)),
|
|
47
47
|
);
|
|
48
48
|
} catch (error) {
|
|
49
|
-
if (isJqError(error)) {
|
|
49
|
+
if (error instanceof DodoPayments.APIError || isJqError(error)) {
|
|
50
50
|
return asErrorResult(error.message);
|
|
51
51
|
}
|
|
52
52
|
throw error;
|
|
@@ -55,7 +55,7 @@ export const handler = async (client: DodoPayments, args: Record<string, unknown
|
|
|
55
55
|
await maybeFilter(jq_filter, await client.customers.update(customer_id, body)),
|
|
56
56
|
);
|
|
57
57
|
} catch (error) {
|
|
58
|
-
if (isJqError(error)) {
|
|
58
|
+
if (error instanceof DodoPayments.APIError || isJqError(error)) {
|
|
59
59
|
return asErrorResult(error.message);
|
|
60
60
|
}
|
|
61
61
|
throw error;
|
package/src/tools/customers/wallets/ledger-entries/create-wallets-customers-ledger-entries.ts
CHANGED
|
@@ -214,7 +214,7 @@ export const handler = async (client: DodoPayments, args: Record<string, unknown
|
|
|
214
214
|
await maybeFilter(jq_filter, await client.customers.wallets.ledgerEntries.create(customer_id, body)),
|
|
215
215
|
);
|
|
216
216
|
} catch (error) {
|
|
217
|
-
if (isJqError(error)) {
|
|
217
|
+
if (error instanceof DodoPayments.APIError || isJqError(error)) {
|
|
218
218
|
return asErrorResult(error.message);
|
|
219
219
|
}
|
|
220
220
|
throw error;
|
|
@@ -206,7 +206,7 @@ export const handler = async (client: DodoPayments, args: Record<string, unknown
|
|
|
206
206
|
try {
|
|
207
207
|
return asTextContentResult(await maybeFilter(jq_filter, await response.json()));
|
|
208
208
|
} catch (error) {
|
|
209
|
-
if (isJqError(error)) {
|
|
209
|
+
if (error instanceof DodoPayments.APIError || isJqError(error)) {
|
|
210
210
|
return asErrorResult(error.message);
|
|
211
211
|
}
|
|
212
212
|
throw error;
|
|
@@ -46,7 +46,7 @@ export const handler = async (client: DodoPayments, args: Record<string, unknown
|
|
|
46
46
|
await maybeFilter(jq_filter, await client.customers.wallets.list(customer_id)),
|
|
47
47
|
);
|
|
48
48
|
} catch (error) {
|
|
49
|
-
if (isJqError(error)) {
|
|
49
|
+
if (error instanceof DodoPayments.APIError || isJqError(error)) {
|
|
50
50
|
return asErrorResult(error.message);
|
|
51
51
|
}
|
|
52
52
|
throw error;
|
|
@@ -82,7 +82,7 @@ export const handler = async (client: DodoPayments, args: Record<string, unknown
|
|
|
82
82
|
try {
|
|
83
83
|
return asTextContentResult(await maybeFilter(jq_filter, await client.discounts.create(body)));
|
|
84
84
|
} catch (error) {
|
|
85
|
-
if (isJqError(error)) {
|
|
85
|
+
if (error instanceof DodoPayments.APIError || isJqError(error)) {
|
|
86
86
|
return asErrorResult(error.message);
|
|
87
87
|
}
|
|
88
88
|
throw error;
|