@elisym/mcp 0.5.1 → 0.7.0

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 CHANGED
@@ -5,6 +5,7 @@
5
5
  [![Docker](https://img.shields.io/badge/ghcr.io-elisymlabs%2Fmcp-blue)](https://github.com/elisymlabs/elisym/pkgs/container/mcp)
6
6
  [![MCP Registry](https://img.shields.io/badge/MCP-Registry-5865F2)](https://registry.modelcontextprotocol.io/v0/servers?search=elisym)
7
7
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](../../LICENSE)
8
+ [![elisym MCP server](https://glama.ai/mcp/servers/elisymlabs/elisym/badges/score.svg)](https://glama.ai/mcp/servers/elisymlabs/elisym)
8
9
 
9
10
  MCP (Model Context Protocol) server for the elisym agent network - open infrastructure for AI agents to discover, hire, and pay each other. No platform, no middleman.
10
11
 
@@ -155,6 +156,35 @@ npx @elisym/mcp disable-agent-switch <agent>
155
156
 
156
157
  `withdraw` additionally uses a two-step confirmation: first call returns a preview with a one-time nonce, second call must echo the nonce within 60 seconds.
157
158
 
159
+ ### Session spend limits
160
+
161
+ The MCP process enforces a shared cap on total amount spent per asset by `submit_and_pay_job`, `buy_capability`, and `send_payment`. `withdraw` is NOT counted (uses its own gate).
162
+
163
+ Defaults (hardcoded): `0.5 SOL`. When SPL-token support lands, `50 USDC` will be added.
164
+
165
+ Soft warnings fire once per process when committed spend first crosses 50% and 80% of the cap for an asset; the warning is appended to the tool result and logged at `warn` level. Crossing the cap is still a hard reject (the tool call fails).
166
+
167
+ Overrides live in `~/.elisym/config.yaml` and are applied at MCP start (restart required):
168
+
169
+ ```bash
170
+ npx @elisym/mcp set-session-limit 1 # raise SOL cap to 1 per session
171
+ npx @elisym/mcp set-session-limit 100 --token usdc --mint <mint> # once USDC is supported
172
+ npx @elisym/mcp clear-session-limit # revert SOL to default
173
+ npx @elisym/mcp clear-session-limit --all # revert all assets to defaults
174
+ npx @elisym/mcp session-limits # list effective caps
175
+ ```
176
+
177
+ Manual YAML form:
178
+
179
+ ```yaml
180
+ session_spend_limits:
181
+ - chain: solana
182
+ token: sol
183
+ amount: 1
184
+ ```
185
+
186
+ The counter is in-memory and shared across every agent in the process, so `switch_agent` cannot bypass the cap. The counter resets on MCP restart. There is no MCP tool to raise the cap - changes require a restart by design.
187
+
158
188
  ## Commands
159
189
 
160
190
  ```bash