MCP.so
登录
M

MCP Server

@dodopayments

基本信息

分类

其他

传输方式

stdio

作者

dodopayments

提交者

Ayush Agarwal

关于 MCP Server

暂无概览

#mcp-server#dodo-payments#api-library

MCP Server 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Mcp Server?

It provides convenient access to the Dodo Payments REST API from server-side TypeScript or JavaScript.

How to use Mcp Server?

Install via npm install dodopayments, create a client with a bearer token and an environment option (test_mode or live_mode), then call methods like client.payments.create().

Key features of Mcp Server

  • Full TypeScript definitions for request params and response fields.
  • Automatic retries (2 retries by default) with exponential backoff.
  • Configurable timeouts (1 minute default).
  • Auto-pagination for list endpoints using async iteration.
  • Customizable fetch client and HTTP(S) agent support.
  • Access to raw Response data via .asResponse() and .withResponse().

Use cases of Mcp Server

  • Integrate Dodo Payments payment processing into Node.js applications.
  • Manage payments, customers, and product carts programmatically.
  • Handle API errors with typed error classes (e.g., BadRequestError).
  • Automatically paginate through large lists of payments or other resources.
  • Proxy API requests through custom HTTP agents.

常见问题

1

How is authentication handled?

The client requires a bearer token, typically set via the `DODO_PAYMENTS_API_KEY` environment variable, and passed in the constructor.

2

How does the library handle errors?

It throws subclasses of `APIError` (e.g., `BadRequestError`, `RateLimitError`) for non‑success status codes; connection errors raise `APIConnectionError`.

3

Does the library support pagination?

Yes. List methods are paginated; you can use `for await…of` to iterate over all pages automatically, or manually request pages with `getNextPage()`.

4

Can I customize the HTTP agent or fetch client?

Yes. Provide an `httpAgent` option for proxies, or pass a custom `fetch` function when instantiating the client.

5

What are the runtime requirements?

The library is designed for server‑side TypeScript or JavaScript. It uses `node-fetch` in Node by default, but supports web‑standard fetch via shims.

评论

其他 分类下的更多 MCP 服务器