@agent-shield/mcp 0.2.2 → 0.3.1
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 +8 -2
- package/package.json +11 -12
package/README.md
CHANGED
|
@@ -57,7 +57,7 @@ Add to `.cursor/mcp.json` in your project:
|
|
|
57
57
|
}
|
|
58
58
|
```
|
|
59
59
|
|
|
60
|
-
## Tools (
|
|
60
|
+
## Tools (18)
|
|
61
61
|
|
|
62
62
|
### Read-Only
|
|
63
63
|
|
|
@@ -65,6 +65,7 @@ Add to `.cursor/mcp.json` in your project:
|
|
|
65
65
|
|------|-------------|
|
|
66
66
|
| `shield_check_vault` | Check vault status, owner, agent, and policy configuration |
|
|
67
67
|
| `shield_check_spending` | Check rolling 24h spending and recent transaction history |
|
|
68
|
+
| `shield_check_pending_policy` | Check pending timelocked policy update status |
|
|
68
69
|
|
|
69
70
|
### Owner-Signed (Write)
|
|
70
71
|
|
|
@@ -75,8 +76,12 @@ Add to `.cursor/mcp.json` in your project:
|
|
|
75
76
|
| `shield_withdraw` | Withdraw tokens from a vault |
|
|
76
77
|
| `shield_register_agent` | Register an agent signing key |
|
|
77
78
|
| `shield_update_policy` | Update spending caps, token/protocol allowlists, leverage limits |
|
|
79
|
+
| `shield_queue_policy_update` | Queue a timelocked policy change |
|
|
80
|
+
| `shield_apply_pending_policy` | Apply a queued policy change after timelock expires |
|
|
81
|
+
| `shield_cancel_pending_policy` | Cancel a queued policy change |
|
|
78
82
|
| `shield_revoke_agent` | Emergency kill switch — freezes vault immediately |
|
|
79
83
|
| `shield_reactivate_vault` | Unfreeze a vault, optionally with a new agent |
|
|
84
|
+
| `shield_provision` | Provision a vault via Solana Actions |
|
|
80
85
|
|
|
81
86
|
### Agent-Signed (Requires `AGENTSHIELD_AGENT_KEYPAIR_PATH`)
|
|
82
87
|
|
|
@@ -85,6 +90,7 @@ Add to `.cursor/mcp.json` in your project:
|
|
|
85
90
|
| `shield_execute_swap` | Execute a Jupiter token swap through the vault |
|
|
86
91
|
| `shield_open_position` | Open a Flash Trade leveraged perpetual position |
|
|
87
92
|
| `shield_close_position` | Close a Flash Trade perpetual position |
|
|
93
|
+
| `shield_agent_transfer` | Transfer tokens to an allowlisted destination |
|
|
88
94
|
|
|
89
95
|
## Resources (3)
|
|
90
96
|
|
|
@@ -117,7 +123,7 @@ AGENTSHIELD_WALLET_PATH=~/.config/solana/id.json node dist/index.js
|
|
|
117
123
|
- **Transport**: stdio only (local subprocess of the AI tool)
|
|
118
124
|
- **Credentials**: Environment variables (keypair file paths)
|
|
119
125
|
- **SDK**: Wraps `AgentShieldClient` from `@agent-shield/sdk` — every tool delegates to a client method
|
|
120
|
-
- **Error handling**: All
|
|
126
|
+
- **Error handling**: All 46 Anchor error codes (6000–6045) mapped to human-readable messages with actionable suggestions
|
|
121
127
|
|
|
122
128
|
## Support
|
|
123
129
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agent-shield/mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"author": "Kaleb Rupe (https://x.com/MightieMags)",
|
|
5
5
|
"homepage": "https://github.com/Kaleb-Rupe/agentshield#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -13,12 +13,6 @@
|
|
|
13
13
|
"bin": {
|
|
14
14
|
"agent-shield-mcp": "dist/index.js"
|
|
15
15
|
},
|
|
16
|
-
"scripts": {
|
|
17
|
-
"build": "tsc",
|
|
18
|
-
"clean": "rm -rf dist",
|
|
19
|
-
"test": "mocha --require ts-node/register 'tests/*.test.ts' 'tests/**/*.test.ts' --timeout 30000",
|
|
20
|
-
"prepublishOnly": "npm run build"
|
|
21
|
-
},
|
|
22
16
|
"files": [
|
|
23
17
|
"dist/**/*",
|
|
24
18
|
"README.md"
|
|
@@ -30,7 +24,7 @@
|
|
|
30
24
|
"@modelcontextprotocol/sdk": "^1.12.1"
|
|
31
25
|
},
|
|
32
26
|
"peerDependencies": {
|
|
33
|
-
"@agent-shield/sdk": ">=0.
|
|
27
|
+
"@agent-shield/sdk": ">=0.4.0",
|
|
34
28
|
"@agent-shield/custody-crossmint": ">=0.1.0",
|
|
35
29
|
"@coral-xyz/anchor": ">=0.32.1",
|
|
36
30
|
"@solana/spl-token": ">=0.4.0",
|
|
@@ -43,8 +37,6 @@
|
|
|
43
37
|
}
|
|
44
38
|
},
|
|
45
39
|
"devDependencies": {
|
|
46
|
-
"@agent-shield/sdk": "workspace:*",
|
|
47
|
-
"@agent-shield/custody-crossmint": "workspace:*",
|
|
48
40
|
"@coral-xyz/anchor": "^0.32.1",
|
|
49
41
|
"@solana/spl-token": "^0.4.0",
|
|
50
42
|
"@solana/web3.js": "^1.95.0",
|
|
@@ -56,7 +48,9 @@
|
|
|
56
48
|
"mocha": "^10.3.0",
|
|
57
49
|
"sinon": "^17.0.1",
|
|
58
50
|
"ts-node": "^10.9.2",
|
|
59
|
-
"typescript": "^5.3.3"
|
|
51
|
+
"typescript": "^5.3.3",
|
|
52
|
+
"@agent-shield/sdk": "0.4.1",
|
|
53
|
+
"@agent-shield/custody-crossmint": "0.1.3"
|
|
60
54
|
},
|
|
61
55
|
"keywords": [
|
|
62
56
|
"mcp",
|
|
@@ -74,5 +68,10 @@
|
|
|
74
68
|
"type": "git",
|
|
75
69
|
"url": "https://github.com/Kaleb-Rupe/agentshield",
|
|
76
70
|
"directory": "packages/mcp"
|
|
71
|
+
},
|
|
72
|
+
"scripts": {
|
|
73
|
+
"build": "tsc",
|
|
74
|
+
"clean": "rm -rf dist",
|
|
75
|
+
"test": "mocha --require ts-node/register 'tests/*.test.ts' 'tests/**/*.test.ts' --timeout 30000"
|
|
77
76
|
}
|
|
78
|
-
}
|
|
77
|
+
}
|