wrangler.toml•1.44 kB
[mcp]
name = "PayPal_Tools"
main = "src/index.ts"
compatibility_date = "2024-01-01"
workers_dev = true
[mcp.tools]
createPaypalOrder = {
description = "Create a PayPal payment order",
parameters = {
amount = { type = "string", description = "The payment amount (e.g. '10.00')" },
currency = { type = "string", description = "The currency code (e.g. 'USD')", optional = true },
description = { type = "string", description = "Optional description of the payment", optional = true }
}
}
capturePaypalOrder = {
description = "Capture a PayPal payment order",
parameters = {
orderId = { type = "string", description = "The PayPal order ID to capture" }
}
}
refundPaypalCapture = {
description = "Refund a captured PayPal payment",
parameters = {
captureId = { type = "string", description = "The PayPal-generated ID for the captured payment to refund" },
amount = { type = "string", description = "Optional amount to refund. If not specified, refunds the full amount", optional = true },
currency = { type = "string", description = "Currency code for the refund amount (e.g. 'USD')", optional = true },
note = { type = "string", description = "Optional note to the payer about the refund", optional = true }
}
}
getPayPalOrder = {
description = "Get details of a PayPal order",
parameters = {
orderId = { type = "string", description = "The PayPal order ID to check" }
}
}