hchain-mcp 1.0.0 → 1.0.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 CHANGED
@@ -1,11 +1,11 @@
1
- # h-mcp
1
+ # hchain-mcp
2
2
 
3
3
  AI-native multi-chain trading MCP Server — 99 tools, HTTP & stdio dual transport.
4
4
 
5
5
  ## Install
6
6
 
7
7
  ```bash
8
- npm install -g h-mcp
8
+ npm install -g hchain-mcp
9
9
  ```
10
10
 
11
11
  ## Usage
@@ -13,7 +13,7 @@ npm install -g h-mcp
13
13
  ### stdio (local Agent)
14
14
 
15
15
  ```bash
16
- h-mcp
16
+ hchain-mcp
17
17
  ```
18
18
 
19
19
  Set API Key:
@@ -22,17 +22,17 @@ Set API Key:
22
22
  export OKX_API_KEY=xxx
23
23
  export OKX_SECRET_KEY=xxx
24
24
  export OKX_PASSPHRASE=xxx
25
- h-mcp
25
+ hchain-mcp
26
26
  ```
27
27
 
28
28
  ### HTTP (remote Agent)
29
29
 
30
30
  ```bash
31
- h-mcp start:http
31
+ hchain-mcp start:http
32
32
  # → http://127.0.0.1:3000
33
33
 
34
34
  # or custom port
35
- PORT=3099 h-mcp start:http
35
+ PORT=3099 hchain-mcp start:http
36
36
  ```
37
37
 
38
38
  Endpoints:
@@ -47,9 +47,9 @@ Endpoints:
47
47
  ```json
48
48
  {
49
49
  "mcpServers": {
50
- "h-mcp": {
50
+ "hchain-mcp": {
51
51
  "command": "npx",
52
- "args": ["h-mcp"],
52
+ "args": ["hchain-mcp"],
53
53
  "env": {
54
54
  "OKX_API_KEY": "xxx",
55
55
  "OKX_SECRET_KEY": "xxx",
@@ -65,7 +65,7 @@ Or HTTP mode:
65
65
  ```json
66
66
  {
67
67
  "mcpServers": {
68
- "h-mcp": {
68
+ "hchain-mcp": {
69
69
  "url": "http://127.0.0.1:3099/mcp"
70
70
  }
71
71
  }
package/dist/http.js CHANGED
@@ -62,7 +62,7 @@ async function main() {
62
62
  sessionIdGenerator: () => crypto.randomUUID(),
63
63
  });
64
64
  // 2. MCP Server + 全部工具注册
65
- const server = new McpServer({ name: "hchain-mcp", version: "1.0.0" });
65
+ const server = new McpServer({ name: "hchain-mcp", version: "1.0.1" });
66
66
  registerBalanceTools(server, auth);
67
67
  registerGatewayTools(server, auth);
68
68
  registerTxHistoryTools(server, auth);
package/dist/index.js CHANGED
@@ -34,7 +34,7 @@ async function main() {
34
34
  else {
35
35
  console.error("[h-mcp] Auth 已配置");
36
36
  }
37
- const server = new McpServer({ name: "hchain-mcp", version: "1.0.0" });
37
+ const server = new McpServer({ name: "hchain-mcp", version: "1.0.1" });
38
38
  // 逐模块注册工具 (按官方文档对接)
39
39
  registerBalanceTools(server, auth);
40
40
  registerGatewayTools(server, auth);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hchain-mcp",
3
- "version": "1.0.0",
4
- "description": "h-mcp — AI-native multi-chain trading MCP Server, 99 tools over HTTP & stdio",
3
+ "version": "1.0.1",
4
+ "description": "hchain-mcp — AI-native multi-chain trading MCP Server, 99 tools over HTTP & stdio",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "scripts": {
package/src/http.ts CHANGED
@@ -63,7 +63,7 @@ async function main() {
63
63
  });
64
64
 
65
65
  // 2. MCP Server + 全部工具注册
66
- const server = new McpServer({ name: "hchain-mcp", version: "1.0.0" });
66
+ const server = new McpServer({ name: "hchain-mcp", version: "1.0.1" });
67
67
 
68
68
  registerBalanceTools(server, auth);
69
69
  registerGatewayTools(server, auth);
package/src/index.ts CHANGED
@@ -35,7 +35,7 @@ async function main() {
35
35
  console.error("[h-mcp] Auth 已配置");
36
36
  }
37
37
 
38
- const server = new McpServer({ name: "hchain-mcp", version: "1.0.0" });
38
+ const server = new McpServer({ name: "hchain-mcp", version: "1.0.1" });
39
39
 
40
40
  // 逐模块注册工具 (按官方文档对接)
41
41
  registerBalanceTools(server, auth);