@caravo/mcp 0.1.2 → 0.1.3
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/index.js +6 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ Local stdio MCP server for [Caravo](https://caravo.ai) with built-in x402 wallet
|
|
|
8
8
|
# Claude Code
|
|
9
9
|
claude mcp add caravo -- npx -y @caravo/mcp@latest
|
|
10
10
|
|
|
11
|
-
# Optional: with API key for balance auth
|
|
11
|
+
# Optional: with API key for balance auth (favorites work either way)
|
|
12
12
|
claude mcp add caravo -e CARAVO_API_KEY=am_xxx -- npx -y @caravo/mcp@latest
|
|
13
13
|
```
|
|
14
14
|
|
|
@@ -30,9 +30,9 @@ claude mcp add caravo -e CARAVO_API_KEY=am_xxx -- npx -y @caravo/mcp@latest
|
|
|
30
30
|
| `list_tags` | List all categories |
|
|
31
31
|
| `list_providers` | List all providers |
|
|
32
32
|
| `get_wallet_info` | Get wallet address and USDC balance |
|
|
33
|
-
| `favorite_tool` | Bookmark a tool (
|
|
34
|
-
| `unfavorite_tool` | Remove bookmark (
|
|
35
|
-
| `list_favorites` | List bookmarked tools (
|
|
33
|
+
| `favorite_tool` | Bookmark a tool (server with API key, local without) |
|
|
34
|
+
| `unfavorite_tool` | Remove bookmark (server with API key, local without) |
|
|
35
|
+
| `list_favorites` | List bookmarked tools (server with API key, local without) |
|
|
36
36
|
| `list_tool_requests` | Browse tool requests |
|
|
37
37
|
| `request_tool` | Request a new tool |
|
|
38
38
|
| `upvote_tool_request` | Upvote a tool request |
|
package/dist/index.js
CHANGED
|
@@ -321,7 +321,9 @@ function registerAllTools(server) {
|
|
|
321
321
|
if (!Number.isInteger(per_page) || per_page < 1) {
|
|
322
322
|
return { content: [{ type: "text", text: "Error: per_page must be a positive integer" }], isError: true };
|
|
323
323
|
}
|
|
324
|
-
per_page
|
|
324
|
+
if (per_page > 100) {
|
|
325
|
+
return { content: [{ type: "text", text: "Error: per_page must be at most 100" }], isError: true };
|
|
326
|
+
}
|
|
325
327
|
const params = new URLSearchParams();
|
|
326
328
|
if (query)
|
|
327
329
|
params.set("query", query);
|
|
@@ -548,7 +550,9 @@ function registerAllTools(server) {
|
|
|
548
550
|
if (!Number.isInteger(per_page) || per_page < 1) {
|
|
549
551
|
return { content: [{ type: "text", text: "Error: per_page must be a positive integer" }], isError: true };
|
|
550
552
|
}
|
|
551
|
-
per_page
|
|
553
|
+
if (per_page > 100) {
|
|
554
|
+
return { content: [{ type: "text", text: "Error: per_page must be at most 100" }], isError: true };
|
|
555
|
+
}
|
|
552
556
|
const params = new URLSearchParams();
|
|
553
557
|
params.set("status", status);
|
|
554
558
|
params.set("page", String(page));
|