@manifest-network/manifest-mcp-node 0.3.5 → 0.4.5

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
@@ -2,10 +2,11 @@
2
2
 
3
3
  Node.js CLI entry points for the Manifest MCP servers with stdio transport and encrypted keyfile wallet.
4
4
 
5
- Provides three binaries:
5
+ Provides four binaries:
6
6
  - **`manifest-mcp-chain`** -- Chain MCP server (5 tools: queries, transactions, module discovery)
7
7
  - **`manifest-mcp-lease`** -- Lease MCP server (6 tools: credit balance, funding, lease queries, SKUs, providers)
8
8
  - **`manifest-mcp-fred`** -- Fred MCP server (8 tools: catalog, deployment, status, logs, restart, update, diagnostics, releases)
9
+ - **`manifest-mcp-cosmwasm`** -- CosmWasm MCP server (2 tools: MFX-to-PWR rate query, token conversion)
9
10
 
10
11
  ## Setup
11
12
 
@@ -17,7 +18,7 @@ npm run build
17
18
 
18
19
  ## Wallet setup
19
20
 
20
- All three servers need a wallet to sign transactions. Choose one of the options below.
21
+ All four servers need a wallet to sign transactions. Choose one of the options below.
21
22
 
22
23
  ### Option A -- Generate a new keyfile (recommended)
23
24
 
@@ -25,7 +26,7 @@ All three servers need a wallet to sign transactions. Choose one of the options
25
26
  npx manifest-mcp-chain keygen
26
27
  ```
27
28
 
28
- All CLIs share the same keyfile (`~/.manifest/key.json`), so any of the three commands works for `keygen` and `import`. You will be prompted for an encryption password. The keyfile is written with mode `0600`.
29
+ All CLIs share the same keyfile (`~/.manifest/key.json`), so any of the four commands works for `keygen` and `import`. You will be prompted for an encryption password. The keyfile is written with mode `0600`.
29
30
 
30
31
  ### Option B -- Import an existing mnemonic
31
32
 
@@ -59,6 +60,10 @@ manifest-mcp-lease import Import a mnemonic into an encrypted keyfile
59
60
  manifest-mcp-fred Start the fred MCP server (stdio)
60
61
  manifest-mcp-fred keygen Generate a new encrypted keyfile
61
62
  manifest-mcp-fred import Import a mnemonic into an encrypted keyfile
63
+
64
+ manifest-mcp-cosmwasm Start the cosmwasm MCP server (stdio)
65
+ manifest-mcp-cosmwasm keygen Generate a new encrypted keyfile
66
+ manifest-mcp-cosmwasm import Import a mnemonic into an encrypted keyfile
62
67
  ```
63
68
 
64
69
  ## MCP client integration
@@ -101,6 +106,17 @@ Replace the placeholder values below with your actual chain ID, RPC/REST endpoin
101
106
  "COSMOS_GAS_PRICE": "0.01umfx",
102
107
  "MANIFEST_KEY_PASSWORD": "your-keyfile-password"
103
108
  }
109
+ },
110
+ "manifest-cosmwasm": {
111
+ "command": "npx",
112
+ "args": ["manifest-mcp-cosmwasm"],
113
+ "env": {
114
+ "COSMOS_CHAIN_ID": "your-chain-id",
115
+ "COSMOS_RPC_URL": "https://your-rpc-endpoint/",
116
+ "COSMOS_GAS_PRICE": "0.01umfx",
117
+ "MANIFEST_KEY_PASSWORD": "your-keyfile-password",
118
+ "MANIFEST_CONVERTER_ADDRESS": "manifest1..."
119
+ }
104
120
  }
105
121
  }
106
122
  }
@@ -138,10 +154,13 @@ A wallet is still required at startup even in query-only mode. Transaction tools
138
154
  | `COSMOS_RPC_URL` | One of `COSMOS_RPC_URL` or `COSMOS_REST_URL` required | -- | RPC endpoint URL (HTTPS required; HTTP allowed for localhost) |
139
155
  | `COSMOS_GAS_PRICE` | Required when `COSMOS_RPC_URL` is set | -- | Gas price with denom (e.g. `0.01umfx`) |
140
156
  | `COSMOS_REST_URL` | One of `COSMOS_RPC_URL` or `COSMOS_REST_URL` required | -- | LCD/REST endpoint URL for query-only mode |
157
+ | `COSMOS_GAS_MULTIPLIER` | No | `1.5` | Gas simulation multiplier (must be >= 1) |
141
158
  | `COSMOS_ADDRESS_PREFIX` | No | `manifest` | Bech32 address prefix |
142
159
  | `MANIFEST_KEY_FILE` | No | `~/.manifest/key.json` | Path to the encrypted keyfile |
143
160
  | `MANIFEST_KEY_PASSWORD` | No | -- | Password to decrypt the keyfile |
144
161
  | `COSMOS_MNEMONIC` | No | -- | BIP-39 mnemonic (fallback when no keyfile exists) |
162
+ | `MANIFEST_FAUCET_URL` | No | -- | Faucet URL (enables `request_faucet` tool on chain server) |
163
+ | `MANIFEST_CONVERTER_ADDRESS` | Required for cosmwasm server | -- | CosmWasm converter contract address |
145
164
  | `LOG_LEVEL` | No | `warn` | Log level: `debug`, `info`, `warn`, `error`, or `silent` |
146
165
 
147
166
  Set `COSMOS_RPC_URL` + `COSMOS_GAS_PRICE` for full access (queries + transactions). Set `COSMOS_REST_URL` alone for query-only mode (LCD/REST). When both are set, `COSMOS_REST_URL` is preferred for queries.
@@ -182,6 +201,13 @@ Set `COSMOS_RPC_URL` + `COSMOS_GAS_PRICE` for full access (queries + transaction
182
201
  | `app_diagnostics` | Get provision diagnostics for a deployed app |
183
202
  | `app_releases` | Get release/version history for a deployed app |
184
203
 
204
+ ## CosmWasm server tools (2)
205
+
206
+ | Tool | Description |
207
+ |------|-------------|
208
+ | `get_mfx_to_pwr_rate` | Get the current MFX-to-PWR conversion rate and preview amounts |
209
+ | `convert_mfx_to_pwr` | Convert MFX tokens to PWR via the on-chain converter contract |
210
+
185
211
  ## License
186
212
 
187
213
  MIT
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1,20 @@
1
+ #!/usr/bin/env node
2
+ import { bootstrap } from "./bootstrap.js";
3
+ import { CosmwasmMCPServer } from "@manifest-network/manifest-mcp-cosmwasm";
4
+ //#region src/cosmwasm.ts
5
+ bootstrap({
6
+ cliName: "manifest-mcp-cosmwasm",
7
+ label: "cosmwasm",
8
+ createServer: (opts) => {
9
+ const converterAddress = process.env.MANIFEST_CONVERTER_ADDRESS?.trim();
10
+ if (!converterAddress) throw new Error("MANIFEST_CONVERTER_ADDRESS environment variable is required. Set it to the bech32 address of the MFX-to-PWR converter contract.");
11
+ return new CosmwasmMCPServer({
12
+ ...opts,
13
+ converterAddress
14
+ }).getServer();
15
+ }
16
+ });
17
+ //#endregion
18
+ export {};
19
+
20
+ //# sourceMappingURL=cosmwasm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cosmwasm.js","names":[],"sources":["../src/cosmwasm.ts"],"sourcesContent":["#!/usr/bin/env node\nimport { CosmwasmMCPServer } from '@manifest-network/manifest-mcp-cosmwasm';\nimport { bootstrap } from './bootstrap.js';\n\nbootstrap({\n cliName: 'manifest-mcp-cosmwasm',\n label: 'cosmwasm',\n createServer: (opts) => {\n const converterAddress = process.env.MANIFEST_CONVERTER_ADDRESS?.trim();\n if (!converterAddress) {\n throw new Error(\n 'MANIFEST_CONVERTER_ADDRESS environment variable is required. ' +\n 'Set it to the bech32 address of the MFX-to-PWR converter contract.',\n );\n }\n return new CosmwasmMCPServer({ ...opts, converterAddress }).getServer();\n },\n});\n"],"mappings":";;;;AAIA,UAAU;CACR,SAAS;CACT,OAAO;CACP,eAAe,SAAS;EACtB,MAAM,mBAAmB,QAAQ,IAAI,4BAA4B,MAAM;AACvE,MAAI,CAAC,iBACH,OAAM,IAAI,MACR,kIAED;AAEH,SAAO,IAAI,kBAAkB;GAAE,GAAG;GAAM;GAAkB,CAAC,CAAC,WAAW;;CAE1E,CAAC"}
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@manifest-network/manifest-mcp-node",
3
- "version": "0.3.5",
3
+ "version": "0.4.5",
4
4
  "description": "Node.js MCP servers for Manifest Network with stdio transport and keyfile wallet",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "manifest-mcp-chain": "dist/chain.js",
8
8
  "manifest-mcp-lease": "dist/lease.js",
9
- "manifest-mcp-fred": "dist/fred.js"
9
+ "manifest-mcp-fred": "dist/fred.js",
10
+ "manifest-mcp-cosmwasm": "dist/cosmwasm.js"
10
11
  },
11
12
  "scripts": {
12
13
  "build": "tsdown",
@@ -43,10 +44,11 @@
43
44
  "@cosmjs/amino": "0.32.4",
44
45
  "@cosmjs/encoding": "0.32.4",
45
46
  "@cosmjs/proto-signing": "0.32.4",
46
- "@manifest-network/manifest-mcp-core": "^0.3.5",
47
- "@manifest-network/manifest-mcp-chain": "^0.3.5",
48
- "@manifest-network/manifest-mcp-lease": "^0.3.5",
49
- "@manifest-network/manifest-mcp-fred": "^0.3.5",
47
+ "@manifest-network/manifest-mcp-core": "^0.4.4",
48
+ "@manifest-network/manifest-mcp-chain": "^0.4.4",
49
+ "@manifest-network/manifest-mcp-lease": "^0.4.4",
50
+ "@manifest-network/manifest-mcp-cosmwasm": "^0.4.4",
51
+ "@manifest-network/manifest-mcp-fred": "^0.4.4",
50
52
  "@modelcontextprotocol/sdk": "1.27.1",
51
53
  "dotenv": "^17.2.3"
52
54
  },