Conversation
| The Paystack MCP Server works with any MCP-compatible client. Below is the standard configuration schema used by most clients (Claude Desktop, ChatGPT Desktop, Cursor, Windsurf, etc.). | ||
|
|
||
| ### Using a local build | ||
| ### Using npm (recommended)\n\nFor npm-installed server:\n\n```json\n{\n \"mcpServers\": {\n \"paystack\": {\n \"command\": \"npx\",\n \"args\": [\"@paystack/mcp-server\", \"--api-key\", \"sk_test_...\"]\n }\n }\n}\n```\n\n### Using a local build |
There was a problem hiding this comment.
Looks like you've got some formatting issues here @Andrew-Paystack, I think you need to remove the newline characters
| "@modelcontextprotocol/inspector": "^0.18.0", | ||
| "@modelcontextprotocol/sdk": "^1.26.0", | ||
| "dotenv": "^17.2.3", | ||
| "zod": "^4.3.6" |
There was a problem hiding this comment.
I see zod is still being imported at the beginning of make-paystack-request.ts, won't the build fail if you've removed it as a dependency?
| @@ -0,0 +1,174 @@ | |||
| # Editor Setup | |||
There was a problem hiding this comment.
We already have README.md, why the additional file? Seems like this should all just go in the existing file instead
There was a problem hiding this comment.
@tolu-paystack I figured that as tools keep increasing, people would like to add how to setup theirs. I wanted to keep Setup separate from the ReadMe so that the read-me is clear.
| @@ -1,7 +1,64 @@ | |||
| #!/usr/bin/env node | |||
| } | ||
|
|
||
| // Check if we have an API key from CLI or environment | ||
| if (!cliApiKey && !process.env.PAYSTACK_TEST_SECRET_KEY) { |
There was a problem hiding this comment.
This is similar to what is being done in the config file. Can we consolidate?
| }, | ||
| "bin": { | ||
| "paystack": "./build/index.js" | ||
| "paystack-mcp": "./build/index.js" |
There was a problem hiding this comment.
Let's use paystack-mcp-server
This p/r structures the MCP to be distributed via NPM