mcp-server-wom-call 0.0.3 → 0.0.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 +15 -32
- package/dist/index.js +5 -2
- package/dist/services/esb.service.js +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +19 -24
package/README.md
CHANGED
|
@@ -1,35 +1,18 @@
|
|
|
1
|
-
#
|
|
1
|
+
# mcp-server-wom-call
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
MCP Server for Work Order Management (WOM) System Integration - 用于自动化创建运维工单的 MCP 服务器
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
{
|
|
7
|
-
"mcpServers": {
|
|
8
|
-
"wom-ticket-creator": {
|
|
9
|
-
"command": "node",
|
|
10
|
-
"args": ["/path/to/your/build/index.js"],
|
|
11
|
-
"env": {
|
|
12
|
-
"NODE_ENV": "production"
|
|
13
|
-
},
|
|
14
|
-
"initializationOptions": {
|
|
15
|
-
"esburl": "https://esb.example.top/common"
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
5
|
+
[](https://www.npmjs.com/package/mcp-server-wom-call)
|
|
20
6
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
```
|
|
7
|
+
## 功能特性
|
|
8
|
+
|
|
9
|
+
- 🎫 自动化创建运维工单
|
|
10
|
+
- 🔌 集成企业服务总线 (ESB)
|
|
11
|
+
- 📎 支持附件上传
|
|
12
|
+
- ✅ 完整的参数验证
|
|
13
|
+
- 🛡️ TypeScript 类型安全
|
|
14
|
+
|
|
15
|
+
## 安装
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npm install -g mcp-server-wom-call
|
package/dist/index.js
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
1
2
|
/**
|
|
2
3
|
* MCP Server - Work Order Management (WOM) Ticket Creator
|
|
3
4
|
* 用于自动化创建运维工单的 MCP 服务器
|
|
4
5
|
*
|
|
5
6
|
* @author Your Name
|
|
6
|
-
* @version
|
|
7
|
+
* @version <% process.env.version %>
|
|
7
8
|
*/
|
|
8
9
|
import 'dotenv/config';
|
|
9
10
|
import { Server } from '@modelcontextprotocol/sdk/server/index.js';
|
|
10
11
|
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
11
12
|
import { CallToolRequestSchema, ListToolsRequestSchema } from '@modelcontextprotocol/sdk/types.js';
|
|
12
13
|
import ESBProtocolBuilder from './utils/ESBProtocolBuilder.js';
|
|
14
|
+
import packageJson from '../package.json' with { type: 'json' };
|
|
15
|
+
console.log(packageJson.version);
|
|
13
16
|
// ============ 常量定义 ============
|
|
14
17
|
/**
|
|
15
18
|
* 工单创建工具定义
|
|
@@ -111,7 +114,7 @@ let ESB_URL = process.env.ESB_URL || '';
|
|
|
111
114
|
// ============ 服务器配置 ============
|
|
112
115
|
const SERVER_CONFIG = {
|
|
113
116
|
name: 'mcp-server-wom-call',
|
|
114
|
-
version:
|
|
117
|
+
version: packageJson.version,
|
|
115
118
|
description: 'MCP Server for Work Order Management System Integration'
|
|
116
119
|
};
|
|
117
120
|
// ============ 工具函数 ============
|
package/dist/types/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,35 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mcp-server-wom-call",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "MCP Server for Work Order Management System Integration",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"author": "Myth",
|
|
7
5
|
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
8
7
|
"bin": {
|
|
9
|
-
"mcp-server-wom-call": "dist/index.js"
|
|
8
|
+
"mcp-server-wom-call": "./dist/index.js"
|
|
10
9
|
},
|
|
11
10
|
"files": [
|
|
12
|
-
"dist"
|
|
11
|
+
"dist",
|
|
12
|
+
"README.md",
|
|
13
|
+
"LICENSE"
|
|
13
14
|
],
|
|
14
15
|
"scripts": {
|
|
15
|
-
"build": "tsc &&
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
16
|
+
"build": "tsc && node scripts/postbuild.js",
|
|
17
|
+
"dev": "tsc --watch",
|
|
18
|
+
"start": "node build/index.js",
|
|
19
|
+
"prepublishOnly": "npm run build",
|
|
19
20
|
"test:local": "node dist/index.js"
|
|
20
21
|
},
|
|
21
|
-
"dependencies": {
|
|
22
|
-
"@modelcontextprotocol/sdk": "1.0.1",
|
|
23
|
-
"dotenv": "^17.2.3"
|
|
24
|
-
},
|
|
25
|
-
"devDependencies": {
|
|
26
|
-
"@types/node": "^22",
|
|
27
|
-
"shx": "^0.3.4",
|
|
28
|
-
"tsc-alias": "^1.8.16",
|
|
29
|
-
"tsconfig-paths": "^4.2.0",
|
|
30
|
-
"tsx": "^4.21.0",
|
|
31
|
-
"typescript": "^5.6.2"
|
|
32
|
-
},
|
|
33
22
|
"keywords": [
|
|
34
23
|
"mcp",
|
|
35
24
|
"mcp-server",
|
|
@@ -39,9 +28,15 @@
|
|
|
39
28
|
"esb",
|
|
40
29
|
"model-context-protocol"
|
|
41
30
|
],
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
31
|
+
"author": "Your Name",
|
|
32
|
+
"license": "MIT",
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@modelcontextprotocol/sdk": "^1.0.1",
|
|
35
|
+
"dotenv": "^16.0.0"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@types/node": "^20.0.0",
|
|
39
|
+
"typescript": "^5.0.0"
|
|
45
40
|
},
|
|
46
41
|
"engines": {
|
|
47
42
|
"node": ">=18.0.0"
|