@avalkit/mcp 0.1.5 → 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.
Files changed (3) hide show
  1. package/README.md +32 -14
  2. package/dist/index.js +1 -1
  3. package/package.json +6 -15
package/README.md CHANGED
@@ -1,8 +1,10 @@
1
1
  # @avalkit/mcp
2
2
 
3
- Spend governance and audit for AI agents. The policy + audit layer that sits above any payment toolkit.
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) gives your AI assistant five tools: declare a planned spend, get approve/deny based on your rules, query a tamper-evident audit log, and manage per-user budgets — all with one config line.
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
 
@@ -10,7 +12,7 @@ Spend governance and audit for AI agents. The policy + audit layer that sits abo
10
12
 
11
13
  Add to `~/Library/Application Support/Claude/claude_desktop_config.json`:
12
14
 
13
- \`\`\`json
15
+ ```json
14
16
  {
15
17
  "mcpServers": {
16
18
  "avalkit": {
@@ -19,27 +21,43 @@ Add to `~/Library/Application Support/Claude/claude_desktop_config.json`:
19
21
  }
20
22
  }
21
23
  }
22
- \`\`\`
24
+ ```
25
+
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):
23
33
 
24
- Restart Claude Desktop. First use opens your browser to sign in — click Allow and you're done.
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
- ### Cursor, Windsurf, Claude Code
40
+ ## Tools
27
41
 
28
- Same pattern in their MCP settings: `npx --yes @avalkit/mcp`, no arguments.
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 — first tool call opens your browser, you sign in with email (magic link), tokens save to `~/.avalkit/tokens.json` and auto-refresh.
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
- ripted use, set `AVALKIT_API_KEY` in the `env` block. Get a key from [app.avalkit.com](https://app.avalkit.com).
54
+ For scripted use, set `AVALKIT_API_KEY` in the server's `env` block instead.
35
55
 
36
- CLI: `npx @avalkit/mcp login` / `logout`.
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) — docs, pricing, how it works
41
- - [app.avalkit.com](https://app.avalkit.com) — dashboard
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
63
  MIT licensed.
package/dist/index.js CHANGED
@@ -142,7 +142,7 @@ const UpsertRulesSchema = z.object({
142
142
  // --- MCP Server ---
143
143
  const server = new Server({
144
144
  name: "avalkit",
145
- version: "0.1.0",
145
+ version: "0.1.7",
146
146
  }, {
147
147
  capabilities: {
148
148
  tools: {},
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@avalkit/mcp",
3
- "version": "0.1.5",
4
- "description": "MCP server for Avalkit — spend governance and audit for AI agents",
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
- "mcp": "dist/index.js"
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 <bustos.erik01@gmail.com>",
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
+ }