@caravo/mcp 0.1.36 → 0.1.37
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 +1 -1
- package/dist/index.js +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ Local stdio MCP server for [Caravo](https://caravo.ai) with built-in x402 wallet
|
|
|
9
9
|
claude mcp add caravo -- npx -y @caravo/mcp@latest
|
|
10
10
|
|
|
11
11
|
# Optional: with API key for balance auth (favorites work either way)
|
|
12
|
-
claude mcp add caravo -e CARAVO_API_KEY=
|
|
12
|
+
claude mcp add caravo -e CARAVO_API_KEY=crv_xxx -- npx -y @caravo/mcp@latest
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## How It Works
|
package/dist/index.js
CHANGED
|
@@ -133,8 +133,8 @@ const TRIGGER_SCENARIOS = `WHEN TO USE — if the user's request matches any of
|
|
|
133
133
|
• News
|
|
134
134
|
("latest news about", "breaking news")
|
|
135
135
|
|
|
136
|
-
•
|
|
137
|
-
("find
|
|
136
|
+
• Service discovery
|
|
137
|
+
("find a service", "search for a service", "service marketplace")`;
|
|
138
138
|
const EXAMPLE_SERVICES = [
|
|
139
139
|
"- google/nano-banana: Google Gemini-based ultra-fast image generation, great for prompt following and text rendering.",
|
|
140
140
|
"- semanticscholar/paper-search: Search academic papers across all disciplines. Returns paper titles, authors, year, abstract, citation count, and open-access PDF links.",
|
|
@@ -161,10 +161,10 @@ function saveConfig(data) {
|
|
|
161
161
|
mkdirSync(CONFIG_DIR, { recursive: true });
|
|
162
162
|
writeFileSync(CONFIG_FILE, JSON.stringify(data, null, 2), { mode: 0o600 });
|
|
163
163
|
}
|
|
164
|
-
// Optional API key: env takes priority, then config file; must have am_ prefix
|
|
164
|
+
// Optional API key: env takes priority, then config file; must have crv_ or am_ prefix
|
|
165
165
|
const RAW_KEY = process.env.CARAVO_API_KEY || loadConfig().api_key;
|
|
166
166
|
// Mutable so the `login` tool can update it mid-session
|
|
167
|
-
let API_KEY = RAW_KEY && RAW_KEY.startsWith("am_") ? RAW_KEY : undefined;
|
|
167
|
+
let API_KEY = RAW_KEY && (RAW_KEY.startsWith("crv_") || RAW_KEY.startsWith("am_")) ? RAW_KEY : undefined;
|
|
168
168
|
const wallet = loadOrCreateWallet();
|
|
169
169
|
process.stderr.write(`[caravo] wallet: ${wallet.address}\n`);
|
|
170
170
|
process.stderr.write(API_KEY
|
package/package.json
CHANGED