Skip to main content
Glama
dodopayments

Dodo Payments Agent Plugin

Official

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DODO_PAYMENTS_API_KEYYesDodo Payments API key (dodo_test_... or dodo_live_...)
DODO_PAYMENTS_ENVIRONMENTNoAPI environment

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{}
logging
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
executeA

Runs JavaScript code to interact with the Dodo Payments API.

You are a skilled TypeScript programmer writing code to interface with the service. Define an async function named "run" that takes a single parameter of an initialized SDK client and it will be run. For example:

async function run(client) {
  const checkoutSessionResponse = await client.checkoutSessions.create({ product_cart: [{ product_id: 'pdt_example', quantity: 1 }] });

  console.log(checkoutSessionResponse.session_id);
}

You will be returned anything that your function returns, plus the results of any console.log statements. Do not add try-catch blocks for single API calls. The tool will handle errors for you. Do not add comments unless necessary for generating better code. Code will run in a container, and cannot interact with the network outside of the given SDK client. Variables will not persist between calls, so make sure to return or log any data you might need later. Remember that you are writing TypeScript code, so you need to be careful with your types. Always type dynamic key-value stores explicitly as Record<string, YourValueType> instead of {}.

search_docsA

Search SDK documentation to find methods, parameters, and usage examples for interacting with the API. Use this before writing code when you need to discover the right approach.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dodopayments/dodo-agent-plugin'

If you have feedback or need assistance with the MCP directory API, please join our Discord server