Dodo Payments

Official

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • Used for schema validation in custom endpoints, allowing developers to define input schemas for tools using Zod's type system which are then converted to JSON Schema through the zodToJsonSchema function.

Dodo 支付节点 MCP 服务器

它是用不锈钢生成的。

安装

直接调用

您可以直接通过npx运行 MCP 服务器:

export DODO_PAYMENTS_API_KEY="My Bearer Token" npx -y dodopayments-mcp

通过 MCP 客户端

modelcontextprotocol.io上提供了部分现有客户端的列表。如果您已有客户端,请参阅其文档以安装 MCP 服务器。

对于具有配置 JSON 的客户端,它可能看起来像这样:

{ "mcpServers": { "dodopayments_api": { "command": "npx", "args": ["-y", "dodopayments-mcp"], "env": { "DODO_PAYMENTS_API_KEY": "My Bearer Token" } } } }

过滤工具

您可以在命令行中运行该软件包,以发现并筛选 MCP 服务器公开的工具集。这对于大型 API 非常有用,因为一次性包含所有端点对于 AI 的上下文窗口来说过于庞大。

您可以通过多个方面进行筛选:

  • --tool按名称包含特定工具
  • --resource包含特定资源下的所有工具,并且可以有通配符,例如my.resource*
  • --operation仅包括读取(获取/列出)或仅写入操作

使用--help查看更多信息。

所有这些命令行选项都可以重复、组合在一起,并具有相应的排除版本(例如--no-tool )。

使用--list查看可用工具列表,或参见下文。

单独导入工具和服务器

// Import the server, generated endpoints, or the init function import { server, endpoints, init } from "dodopayments-mcp/server"; // import a specific tool import createPayments from "dodopayments-mcp/tools/payments/create-payments"; // initialize the server and all endpoints init({ server, endpoints }); // manually start server const transport = new StdioServerTransport(); await server.connect(transport); // or initialize your own server with specific tools const myServer = new McpServer(...); // define your own endpoint const myCustomEndpoint = { tool: { name: 'my_custom_tool', description: 'My custom tool', inputSchema: zodToJsonSchema(z.object({ a_property: z.string() })), }, handler: async (client: client, args: any) => { return { myResponse: 'Hello world!' }; }) }; // initialize the server with your custom endpoints init({ server: myServer, endpoints: [createPayments, myCustomEndpoint] });

可用工具

此 MCP 服务器中提供以下工具。

资源payments

  • create_paymentswrite ):
  • retrieve_paymentsread ):
  • list_paymentsread ):

资源subscriptions

  • create_subscriptionswrite ):
  • retrieve_subscriptionsread ):
  • update_subscriptionswrite ):
  • list_subscriptionsread ):
  • charge_subscriptionswrite ):

资源invoices.payments

  • retrieve_invoices_paymentsread ):

资源licenses

  • activate_licenseswrite ):
  • deactivate_licenseswrite ):
  • validate_licenseswrite ):

资源license_keys

  • retrieve_license_keysread ):
  • update_license_keyswrite ):
  • list_license_keysread ):

资源license_key_instances

  • retrieve_license_key_instancesread ):
  • update_license_key_instanceswrite ):
  • list_license_key_instancesread ):

资源customers

  • create_customerswrite ):
  • retrieve_customersread ):
  • update_customerswrite ):
  • list_customersread ):

资源customers.customer_portal

  • create_customers_customer_portalwrite ):

资源refunds

  • create_refundswrite ):
  • retrieve_refundsread ):
  • list_refundsread ):

资源disputes

  • retrieve_disputesread ):
  • list_disputesread ):

资源payouts

  • list_payoutsread ):

资源webhook_events

  • retrieve_webhook_eventsread ):
  • list_webhook_eventsread ):

资源products

  • create_productswrite ):
  • retrieve_productsread ):
  • update_productswrite ):
  • list_productsread ):
  • delete_productswrite ):
  • unarchive_productswrite ):

资源products.images

  • update_products_imageswrite ):

资源misc

  • list_supported_countries_miscread ):

资源discounts

  • create_discountswrite ):如果省略code或为空,则会生成随机的 16 个字符大写代码。
  • retrieve_discountsread ):获取/折扣/{discount_id}
  • update_discountswrite ):PATCH /discounts/{discount_id}
  • list_discountsread ):GET /discounts
  • delete_discountswrite ):删除/discounts/{discount_id}
-
security - not tested
A
license - permissive license
-
quality - not tested

Dodo Payments MCP 服务器与代理框架集成,为计费、订阅和客户管理等 AI 驱动的支付操作提供轻量级、兼容无服务器的接口。它使自主代理能够安全地代表使用 Dodo Payments 的用户行事。

  1. Installation
    1. Direct invocation
    2. Via MCP Client
  2. Filtering tools
    1. Importing the tools and server individually
      1. Available Tools
        1. Resource payments:
        2. Resource subscriptions:
        3. Resource invoices.payments:
        4. Resource licenses:
        5. Resource license_keys:
        6. Resource license_key_instances:
        7. Resource customers:
        8. Resource customers.customer_portal:
        9. Resource refunds:
        10. Resource disputes:
        11. Resource payouts:
        12. Resource webhook_events:
        13. Resource products:
        14. Resource products.images:
        15. Resource misc:
        16. Resource discounts:
      ID: ka460b1cud