@avalkit/mcp 0.1.6 → 0.1.7
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 +31 -13
- package/dist/index.js +1 -1
- package/package.json +6 -15
package/README.md
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
# @avalkit/mcp
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**The control layer for AI agents. Set what they're allowed to do, and prove everything they did.**
|
|
4
4
|
|
|
5
|
-
[Avalkit](https://avalkit.com)
|
|
5
|
+
This MCP server gives your AI assistant [Avalkit](https://avalkit.com)'s tools: declare a planned spend, get an approve or deny decision based on your rules, manage those rules, and read the tamper-evident audit log.
|
|
6
|
+
|
|
7
|
+
Avalkit decides and records. Your existing payment rails move the money.
|
|
6
8
|
|
|
7
9
|
## Install
|
|
8
10
|
|
|
@@ -21,25 +23,41 @@ Add to `~/Library/Application Support/Claude/claude_desktop_config.json`:
|
|
|
21
23
|
}
|
|
22
24
|
```
|
|
23
25
|
|
|
24
|
-
Restart Claude Desktop.
|
|
26
|
+
Restart Claude Desktop. The first time Claude uses an Avalkit tool, your browser opens so you can sign in.
|
|
27
|
+
|
|
28
|
+
Tested with Claude Desktop.
|
|
29
|
+
|
|
30
|
+
## Get an account
|
|
31
|
+
|
|
32
|
+
Sign-in works for existing accounts. To create one, request a sign-up link (replace the email with yours):
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
curl -X POST https://mcp.avalkit.com/v1/signup \
|
|
36
|
+
-H "Content-Type: application/json" \
|
|
37
|
+
-d '{"email": "you@example.com"}'
|
|
38
|
+
```
|
|
25
39
|
|
|
26
|
-
|
|
40
|
+
## Tools
|
|
27
41
|
|
|
28
|
-
|
|
42
|
+
| Tool | What it does |
|
|
43
|
+
|---|---|
|
|
44
|
+
| `avalkit_create_intent` | Declare a planned spend and get approved or denied, with a reason |
|
|
45
|
+
| `avalkit_list_rules` | List your spend rules |
|
|
46
|
+
| `avalkit_upsert_rules` | Create or update rules for a user or agent: max per intent, daily limit, allowed categories |
|
|
47
|
+
| `avalkit_list_audit` | Read the hash-chained audit log |
|
|
48
|
+
| `avalkit_execute_intent` | Run an approved intent through the demo payment path (test mode only) |
|
|
29
49
|
|
|
30
50
|
## Authentication
|
|
31
51
|
|
|
32
|
-
OAuth by default
|
|
52
|
+
OAuth by default: on first use your browser opens, you sign in with your email (magic link), and tokens are saved to `~/.avalkit/tokens.json` and refreshed automatically.
|
|
33
53
|
|
|
34
|
-
For scripted use, set `AVALKIT_API_KEY` in the `env` block
|
|
54
|
+
For scripted use, set `AVALKIT_API_KEY` in the server's `env` block instead.
|
|
35
55
|
|
|
36
|
-
|
|
56
|
+
From the command line: `npx @avalkit/mcp login` and `npx @avalkit/mcp logout`.
|
|
37
57
|
|
|
38
58
|
## Links
|
|
39
59
|
|
|
40
|
-
- [avalkit.com](https://avalkit.com)
|
|
41
|
-
- [
|
|
42
|
-
- [github.com/avalkit/avalkit](https://github.com/avalkit/avalkit) — source
|
|
43
|
-
- founders@avalkit.com — say hi
|
|
60
|
+
- [app.avalkit.com](https://app.avalkit.com): dashboard (API keys and connected apps)
|
|
61
|
+
- [avalkit.com](https://avalkit.com): Avalkit
|
|
44
62
|
|
|
45
|
-
MIT licensed.
|
|
63
|
+
MIT licensed.
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@avalkit/mcp",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "MCP server for Avalkit
|
|
3
|
+
"version": "0.1.7",
|
|
4
|
+
"description": "MCP server for Avalkit, the control layer for AI agents. Set what they're allowed to do, and prove everything they did.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"bin": {
|
|
8
|
-
|
|
8
|
+
"mcp": "dist/index.js"
|
|
9
9
|
},
|
|
10
10
|
"files": [
|
|
11
11
|
"dist",
|
|
@@ -25,20 +25,11 @@
|
|
|
25
25
|
"ai-agents",
|
|
26
26
|
"spend-governance",
|
|
27
27
|
"ai-cost",
|
|
28
|
-
"claude"
|
|
29
|
-
"cursor"
|
|
28
|
+
"claude"
|
|
30
29
|
],
|
|
31
|
-
"author": "Erik Bustos
|
|
30
|
+
"author": "Erik Bustos",
|
|
32
31
|
"license": "MIT",
|
|
33
32
|
"homepage": "https://avalkit.com",
|
|
34
|
-
"repository": {
|
|
35
|
-
"type": "git",
|
|
36
|
-
"url": "https://github.com/avalkit/avalkit.git",
|
|
37
|
-
"directory": "mcp-server"
|
|
38
|
-
},
|
|
39
|
-
"bugs": {
|
|
40
|
-
"url": "https://github.com/avalkit/avalkit/issues"
|
|
41
|
-
},
|
|
42
33
|
"engines": {
|
|
43
34
|
"node": ">=18"
|
|
44
35
|
},
|
|
@@ -55,4 +46,4 @@
|
|
|
55
46
|
"tsx": "^4.21.0",
|
|
56
47
|
"typescript": "^6.0.3"
|
|
57
48
|
}
|
|
58
|
-
}
|
|
49
|
+
}
|