@rb2b/rb2b-apis-mcp 1.1.3 → 1.1.4
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.
- package/README.md +4 -4
- package/dist/init.js +5 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ This server requires an MCP-compatible client. Install one first:
|
|
|
26
26
|
### 2. Run the setup wizard
|
|
27
27
|
|
|
28
28
|
```bash
|
|
29
|
-
npx @rb2b/rb2b-apis-mcp init
|
|
29
|
+
npx -y @rb2b/rb2b-apis-mcp init
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
This will:
|
|
@@ -42,7 +42,7 @@ If auto-registration didn't run or you're using a different MCP client:
|
|
|
42
42
|
|
|
43
43
|
**Claude Code:**
|
|
44
44
|
```bash
|
|
45
|
-
claude mcp add rb2b -- npx @rb2b/rb2b-apis-mcp
|
|
45
|
+
claude mcp add rb2b -- npx -y @rb2b/rb2b-apis-mcp
|
|
46
46
|
```
|
|
47
47
|
|
|
48
48
|
**Claude Desktop** — edit your config file:
|
|
@@ -55,7 +55,7 @@ claude mcp add rb2b -- npx @rb2b/rb2b-apis-mcp
|
|
|
55
55
|
"mcpServers": {
|
|
56
56
|
"rb2b": {
|
|
57
57
|
"command": "npx",
|
|
58
|
-
"args": ["@rb2b/rb2b-apis-mcp"]
|
|
58
|
+
"args": ["-y", "@rb2b/rb2b-apis-mcp"]
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
}
|
|
@@ -136,7 +136,7 @@ The API key is stored at `~/.rb2b/config.json` with permissions `600` (owner rea
|
|
|
136
136
|
**To update your API key**, use any of these methods:
|
|
137
137
|
|
|
138
138
|
- **From Claude:** ask Claude to use the `set_api_key` tool — it validates the key before saving and takes effect immediately, no restart needed
|
|
139
|
-
- **From the terminal:** run `npx @rb2b/rb2b-apis-mcp init` — detects an existing key and prompts for a replacement
|
|
139
|
+
- **From the terminal:** run `npx -y @rb2b/rb2b-apis-mcp init` — detects an existing key and prompts for a replacement
|
|
140
140
|
|
|
141
141
|
---
|
|
142
142
|
|
package/dist/init.js
CHANGED
|
@@ -14,15 +14,14 @@ function registerClaudeCode() {
|
|
|
14
14
|
const check = spawnSync("claude", ["mcp", "list"], { encoding: "utf-8" });
|
|
15
15
|
if (check.error || check.status !== 0)
|
|
16
16
|
return;
|
|
17
|
-
//
|
|
17
|
+
// Remove any existing registration so we always register with correct flags.
|
|
18
18
|
if (check.stdout?.includes("rb2b")) {
|
|
19
|
-
|
|
20
|
-
return;
|
|
19
|
+
spawnSync("claude", ["mcp", "remove", "rb2b"], { encoding: "utf-8" });
|
|
21
20
|
}
|
|
22
|
-
const result = spawnSync("claude", ["mcp", "add", "rb2b", "--", "npx", "@rb2b/rb2b-apis-mcp"], { encoding: "utf-8" });
|
|
21
|
+
const result = spawnSync("claude", ["mcp", "add", "rb2b", "--", "npx", "-y", "@rb2b/rb2b-apis-mcp"], { encoding: "utf-8" });
|
|
23
22
|
if (result.error || result.status !== 0) {
|
|
24
23
|
console.log("Claude Code: could not auto-register. Run manually:");
|
|
25
|
-
console.log(" claude mcp add rb2b -- npx @rb2b/rb2b-apis-mcp");
|
|
24
|
+
console.log(" claude mcp add rb2b -- npx -y @rb2b/rb2b-apis-mcp");
|
|
26
25
|
}
|
|
27
26
|
else {
|
|
28
27
|
console.log("Claude Code: registered successfully.");
|
|
@@ -46,7 +45,7 @@ function registerClaudeDesktop() {
|
|
|
46
45
|
console.log("Claude Desktop: already registered.");
|
|
47
46
|
return;
|
|
48
47
|
}
|
|
49
|
-
mcpServers.rb2b = { command: "npx", args: ["@rb2b/rb2b-apis-mcp"] };
|
|
48
|
+
mcpServers.rb2b = { command: "npx", args: ["-y", "@rb2b/rb2b-apis-mcp"] };
|
|
50
49
|
config.mcpServers = mcpServers;
|
|
51
50
|
try {
|
|
52
51
|
writeFileSync(configPath, JSON.stringify(config, null, 2));
|