@rb2b/rb2b-apis-mcp 1.1.3 → 1.1.5
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 +6 -6
- package/dist/server.js +2 -1
- 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));
|
|
@@ -66,6 +65,7 @@ async function main() {
|
|
|
66
65
|
else {
|
|
67
66
|
console.log("RB2B MCP Server — Initial Setup");
|
|
68
67
|
console.log("=================================\n");
|
|
68
|
+
console.log("Don't have an API key? Sign up at https://ui.api.rb2b.com\n");
|
|
69
69
|
}
|
|
70
70
|
const input = await prompt(existing
|
|
71
71
|
? "Enter a new RB2B API key (or press Enter to keep the existing one): "
|
package/dist/server.js
CHANGED
|
@@ -43,7 +43,7 @@ server.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
|
43
43
|
tools: [
|
|
44
44
|
{
|
|
45
45
|
name: "set_api_key",
|
|
46
|
-
description: "Update the RB2B API key. The new key is validated before saving and takes effect immediately. Cost: free.",
|
|
46
|
+
description: "Update the RB2B API key. The new key is validated before saving and takes effect immediately. Cost: free. Don't have an API key? Sign up at https://ui.api.rb2b.com.",
|
|
47
47
|
inputSchema: {
|
|
48
48
|
type: "object",
|
|
49
49
|
properties: {
|
|
@@ -301,6 +301,7 @@ server.setRequestHandler(CallToolRequestSchema, async (req) => {
|
|
|
301
301
|
case "help":
|
|
302
302
|
result = {
|
|
303
303
|
description: "RB2B MCP Server — Identity Resolution & Enrichment Tools",
|
|
304
|
+
signup: "Don't have an API key? Sign up at https://ui.api.rb2b.com.",
|
|
304
305
|
rate_limit: "50 requests/second per endpoint. When processing batches, stay within this limit.",
|
|
305
306
|
tools: [
|
|
306
307
|
{ name: "help", cost: creditLabel(0), input: "none", description: "List all available tools (this command)" },
|