| 13 | |
| 14 | // Show help message |
| 15 | function showHelp() { |
| 16 | console.log(` |
| 17 | Paystack MCP Server |
| 18 | |
| 19 | Usage: |
| 20 | npx @paystack/mcp-server --api-key <your-test-secret-key> |
| 21 | |
| 22 | Options: |
| 23 | --api-key <key> Your Paystack test secret key (starts with sk_test_) |
| 24 | --help, -h Show this help message |
| 25 | |
| 26 | Environment Variables: |
| 27 | PAYSTACK_TEST_SECRET_KEY Fallback if --api-key not provided |
| 28 | |
| 29 | Examples: |
| 30 | npx @paystack/mcp-server --api-key sk_test_1234567890abcdef |
| 31 | PAYSTACK_TEST_SECRET_KEY=sk_test_... npx @paystack/mcp-server |
| 32 | `); |
| 33 | } |
| 34 | |
| 35 | async function main() { |
| 36 | // Handle help flag |