@muhaven/mcp 0.2.1 → 0.2.2

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/manifest.json CHANGED
@@ -3,9 +3,9 @@
3
3
  "manifest_version": "0.2",
4
4
  "name": "muhaven-mcp",
5
5
  "display_name": "MuHaven (RWA portfolio)",
6
- "version": "0.2.1",
6
+ "version": "0.2.2",
7
7
  "description": "Confidential RWA portfolio management on Fhenix CoFHE. Read your encrypted balances, propose yield claims and policy changes — all signing happens in a sibling broker daemon, the LLM never sees your private key.",
8
- "long_description": "MuHaven MCP exposes 23 tools across read.* / position.* / policy.* / issuer.* / governance.* groups for managing real-world asset (RWA) tokens with FHE-encrypted balances. Authentication uses a one-time device-code ceremony (run `muhaven-broker login`); subsequent tool calls fetch the JWT from the broker over a Unix socket. Position / governance tools deep-link to the dashboard for passkey signing — they NEVER auto-submit to a bundler. The companion `muhaven-broker` daemon must be running before tools can be invoked. See README for setup.",
8
+ "long_description": "MuHaven MCP exposes 24 tools across read.* / position.* / policy.* / issuer.* / governance.* groups for managing real-world asset (RWA) tokens with FHE-encrypted balances. Authentication uses a one-time device-code ceremony (run `muhaven-broker login`); subsequent tool calls fetch the JWT from the broker over a Unix socket. Position / governance tools deep-link to the dashboard for passkey signing — they NEVER auto-submit to a bundler. The companion `muhaven-broker` daemon must be running before tools can be invoked. See README for setup.",
9
9
  "author": {
10
10
  "name": "MuHaven",
11
11
  "email": "hello@muhaven.app",
@@ -32,7 +32,11 @@
32
32
  "MUHAVEN_BACKEND_URL": "${user_config.backend_url}",
33
33
  "MUHAVEN_DASHBOARD_URL": "${user_config.dashboard_url}",
34
34
  "MUHAVEN_BROKER_ENDPOINT": "${user_config.broker_endpoint}",
35
- "MUHAVEN_READ_ONLY": "${user_config.read_only}"
35
+ "MUHAVEN_READ_ONLY": "${user_config.read_only}",
36
+ "MUHAVEN_BUNDLER_URL": "${user_config.bundler_url}",
37
+ "MUHAVEN_CHAIN_ID": "${user_config.chain_id}",
38
+ "MUHAVEN_SUBSCRIPTION_ADDRESS": "${user_config.subscription_address}",
39
+ "MUHAVEN_ENTRY_POINT": "${user_config.entry_point_address}"
36
40
  }
37
41
  }
38
42
  },
@@ -93,6 +97,38 @@
93
97
  "description": "When enabled, only the muhaven.read.* toolset is exposed; position.* and policy.* tools are not registered.",
94
98
  "default": false,
95
99
  "sensitive": false
100
+ },
101
+ {
102
+ "key": "bundler_url",
103
+ "type": "string",
104
+ "title": "ERC-4337 bundler RPC URL (Path D autonomous mode)",
105
+ "description": "Wave 5 Path D — when set, enables broker-signed autonomous position.buy submission via this bundler. Leave blank to keep position tools on Path C (dashboard deep-link, user passkey-signs). Must be https:// (or http:// to loopback for dev). The full Path D UserOp-build path ships in @muhaven/mcp 0.3.x; today's 0.2.1 only exercises the preflight + Path C fall-through.",
106
+ "default": "",
107
+ "sensitive": false
108
+ },
109
+ {
110
+ "key": "chain_id",
111
+ "type": "string",
112
+ "title": "Chain id (for Path D bundler chain check)",
113
+ "description": "Chain id the bundler must report. Default 421614 (Arbitrum Sepolia). Operators on a different network MUST override alongside bundler_url. Unused when bundler_url is blank.",
114
+ "default": "421614",
115
+ "sensitive": false
116
+ },
117
+ {
118
+ "key": "subscription_address",
119
+ "type": "string",
120
+ "title": "MuHavenSubscription contract address (Path D autonomous-buy target)",
121
+ "description": "Wave 5 Path D Slice 1 Commit 3.5 — the MuHavenSubscription contract address Path D's autonomous-buy UserOp targets. Source: deployments/arb-sepolia-v2.json (prod) or deployments/arb-sepolia-v2.staging.json (stage), `subscription` field. Leave blank to keep position.buy on Path C even when bundler_url + broker are set.",
122
+ "default": "",
123
+ "sensitive": false
124
+ },
125
+ {
126
+ "key": "entry_point_address",
127
+ "type": "string",
128
+ "title": "ERC-4337 EntryPoint address (Path D, defaults to v0.7 canonical)",
129
+ "description": "Wave 5 Path D Slice 1 Commit 3.5 — defaults to the canonical EntryPoint v0.7 deployment (0x0000000071727De22E5E9d8BAf0edAc6f37da032), same on every EVM chain. Only override on a future EntryPoint rotation.",
130
+ "default": "0x0000000071727De22E5E9d8BAf0edAc6f37da032",
131
+ "sensitive": false
96
132
  }
97
133
  ],
98
134
  "$comment_setup": "First-run instructions: (1) install this package via your MCPB host (Claude Desktop / Cursor / Claude Code) or globally via `npm install -g @muhaven/mcp`. (2) Run `muhaven-broker setup` — one-shot: applies env defaults, mints an ephemeral session key, spawns the broker daemon detached, then walks you through the passkey-bound device-code login (opens browser to https://muhaven.app/link?code=XXXX-XXXX). The daemon stays running after `setup` returns. Use `muhaven-broker setup --foreground` if systemd / launchd / a Windows service will own the daemon's lifecycle instead. (3) Use any tool in this MCP package."
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@muhaven/mcp",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "MuHaven MCP server — read/position/policy toolsets bridging Claude Desktop / Cursor / Claude Code to the MuHaven backend, with a sibling muhaven-broker daemon holding the session-key private half over a local IPC socket",
5
5
  "type": "module",
6
6
  "repository": {
@@ -70,7 +70,8 @@
70
70
  "dependencies": {
71
71
  "@modelcontextprotocol/sdk": "^1.0.4",
72
72
  "viem": "^2.47.0",
73
- "zod": "^3.24.0"
73
+ "zod": "^3.25.0",
74
+ "zod-to-json-schema": "^3.24.0"
74
75
  },
75
76
  "optionalDependencies": {
76
77
  "@napi-rs/keyring": "^1.1.0"