@muhaven/mcp 0.3.0 → 0.4.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/CHANGELOG.md +69 -0
- package/dist/broker.cjs +433 -40
- package/dist/broker.d.cts +31 -1
- package/dist/broker.d.ts +31 -1
- package/dist/broker.js +433 -41
- package/dist/index.cjs +4 -3
- package/dist/index.js +4 -3
- package/manifest.json +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -28,6 +28,7 @@ var DEFAULT_BROKER_MAX_BYTES = 64 * 1024;
|
|
|
28
28
|
var DEFAULT_JWT_CACHE_TTL_SEC = 30;
|
|
29
29
|
var DEFAULT_BUNDLER_TIMEOUT_MS = 2e4;
|
|
30
30
|
var DEFAULT_CHAIN_ID = 421614;
|
|
31
|
+
var DEFAULT_BROKER_RPC_URL = "https://sepolia-rollup.arbitrum.io/rpc";
|
|
31
32
|
var DEFAULT_ENTRY_POINT_ADDRESS = "0x0000000071727De22E5E9d8BAf0edAc6f37da032";
|
|
32
33
|
var ADDRESS_HEX_RE = /^0x[0-9a-fA-F]{40}$/;
|
|
33
34
|
function defaultBrokerEndpoint() {
|
|
@@ -173,8 +174,8 @@ function loadBrokerConfig(env = process.env) {
|
|
|
173
174
|
env.MUHAVEN_DASHBOARD_URL,
|
|
174
175
|
DEFAULT_DASHBOARD_URL
|
|
175
176
|
);
|
|
176
|
-
const chainRpcUrlRaw = readEnv("MUHAVEN_BROKER_RPC_URL", env) ?? readEnv("MUHAVEN_BUNDLER_URL", env);
|
|
177
|
-
const chainRpcUrl =
|
|
177
|
+
const chainRpcUrlRaw = readEnv("MUHAVEN_BROKER_RPC_URL", env) ?? readEnv("MUHAVEN_BUNDLER_URL", env) ?? DEFAULT_BROKER_RPC_URL;
|
|
178
|
+
const chainRpcUrl = resolvePublicUrlEnv(
|
|
178
179
|
"MUHAVEN_BROKER_RPC_URL",
|
|
179
180
|
chainRpcUrlRaw,
|
|
180
181
|
chainRpcUrlRaw
|
|
@@ -3679,7 +3680,7 @@ var SERVER_NAME = "@muhaven/mcp";
|
|
|
3679
3680
|
var SERVER_VERSION = resolveServerVersion();
|
|
3680
3681
|
function resolveServerVersion() {
|
|
3681
3682
|
{
|
|
3682
|
-
return "0.
|
|
3683
|
+
return "0.4.1";
|
|
3683
3684
|
}
|
|
3684
3685
|
}
|
|
3685
3686
|
function toJsonInputSchema(schema) {
|
package/dist/index.js
CHANGED
|
@@ -24,6 +24,7 @@ var DEFAULT_BROKER_MAX_BYTES = 64 * 1024;
|
|
|
24
24
|
var DEFAULT_JWT_CACHE_TTL_SEC = 30;
|
|
25
25
|
var DEFAULT_BUNDLER_TIMEOUT_MS = 2e4;
|
|
26
26
|
var DEFAULT_CHAIN_ID = 421614;
|
|
27
|
+
var DEFAULT_BROKER_RPC_URL = "https://sepolia-rollup.arbitrum.io/rpc";
|
|
27
28
|
var DEFAULT_ENTRY_POINT_ADDRESS = "0x0000000071727De22E5E9d8BAf0edAc6f37da032";
|
|
28
29
|
var ADDRESS_HEX_RE = /^0x[0-9a-fA-F]{40}$/;
|
|
29
30
|
function defaultBrokerEndpoint() {
|
|
@@ -169,8 +170,8 @@ function loadBrokerConfig(env = process.env) {
|
|
|
169
170
|
env.MUHAVEN_DASHBOARD_URL,
|
|
170
171
|
DEFAULT_DASHBOARD_URL
|
|
171
172
|
);
|
|
172
|
-
const chainRpcUrlRaw = readEnv("MUHAVEN_BROKER_RPC_URL", env) ?? readEnv("MUHAVEN_BUNDLER_URL", env);
|
|
173
|
-
const chainRpcUrl =
|
|
173
|
+
const chainRpcUrlRaw = readEnv("MUHAVEN_BROKER_RPC_URL", env) ?? readEnv("MUHAVEN_BUNDLER_URL", env) ?? DEFAULT_BROKER_RPC_URL;
|
|
174
|
+
const chainRpcUrl = resolvePublicUrlEnv(
|
|
174
175
|
"MUHAVEN_BROKER_RPC_URL",
|
|
175
176
|
chainRpcUrlRaw,
|
|
176
177
|
chainRpcUrlRaw
|
|
@@ -3675,7 +3676,7 @@ var SERVER_NAME = "@muhaven/mcp";
|
|
|
3675
3676
|
var SERVER_VERSION = resolveServerVersion();
|
|
3676
3677
|
function resolveServerVersion() {
|
|
3677
3678
|
{
|
|
3678
|
-
return "0.
|
|
3679
|
+
return "0.4.1";
|
|
3679
3680
|
}
|
|
3680
3681
|
}
|
|
3681
3682
|
function toJsonInputSchema(schema) {
|
package/manifest.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"manifest_version": "0.2",
|
|
4
4
|
"name": "muhaven-mcp",
|
|
5
5
|
"display_name": "MuHaven (RWA portfolio)",
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.4.1",
|
|
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
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": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@muhaven/mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
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": {
|