@nullpay/mcp 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/setup.js +6 -3
  2. package/package.json +1 -1
package/dist/setup.js CHANGED
@@ -33,7 +33,7 @@ function buildServerEntry(answers) {
33
33
  const env = {
34
34
  NULLPAY_MAIN_ADDRESS: answers.address,
35
35
  NULLPAY_MAIN_PRIVATE_KEY: answers.privateKey,
36
- NULLPAY_MAIN_PASSWORD: answers.password,
36
+ ...(answers.password ? { NULLPAY_MAIN_PASSWORD: answers.password } : {}),
37
37
  };
38
38
  if (process.platform === 'win32') {
39
39
  return {
@@ -79,7 +79,7 @@ function writeMcpConfig(configPath, serverName, entry) {
79
79
  }
80
80
  async function askChoice(rl) {
81
81
  process_1.stdout.write('Where do you want to install NullPay MCP?\n');
82
- process_1.stdout.write('1. Claude Code\n');
82
+ process_1.stdout.write('1. Claude Code (beta version)\n');
83
83
  process_1.stdout.write('2. Claude Desktop\n');
84
84
  process_1.stdout.write('3. Cancel\n');
85
85
  while (true) {
@@ -102,11 +102,14 @@ async function askRequired(rl, label) {
102
102
  process_1.stdout.write(`${label} is required.\n`);
103
103
  }
104
104
  }
105
+ async function askOptional(rl, label) {
106
+ return (await rl.question(`${label}: `)).trim();
107
+ }
105
108
  async function collectAnswers(rl) {
106
109
  process_1.stdout.write('\nNullPay will configure Claude automatically. You only need to provide your wallet credentials here.\n\n');
107
110
  const address = await askRequired(rl, 'Main wallet address');
108
111
  const privateKey = await askRequired(rl, 'Main wallet private key');
109
- const password = await askRequired(rl, 'NullPay password');
112
+ const password = await askOptional(rl, 'NullPay password (optional if you have it backed up in your records)');
110
113
  return {
111
114
  address,
112
115
  privateKey,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nullpay/mcp",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "NullPay MCP server and Claude setup wizard for conversational payment flows",
5
5
  "type": "commonjs",
6
6
  "main": "dist/server.js",