mcp-server-wom-call 0.0.4 → 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 CHANGED
@@ -1,35 +1,18 @@
1
- # MCP 客户端配置示例
1
+ # mcp-server-wom-call
2
2
 
3
- ## Claude Desktop 配置 (claude_desktop_config.json)
3
+ MCP Server for Work Order Management (WOM) System Integration - 用于自动化创建运维工单的 MCP 服务器
4
4
 
5
- ```json
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
+ [![npm version](https://badge.fury.io/js/mcp-server-wom-call.svg)](https://www.npmjs.com/package/mcp-server-wom-call)
20
6
 
21
- ```
22
- ## Cline 配置示例
23
- ```json
24
- {
25
- "mcpServers": {
26
- "wom-ticket-creator": {
27
- "command": "node",
28
- "args": ["dist/index.js"],
29
- "initializationOptions": {
30
- "esburl": "https://esb.example.top/common"
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
@@ -4,13 +4,15 @@
4
4
  * 用于自动化创建运维工单的 MCP 服务器
5
5
  *
6
6
  * @author Your Name
7
- * @version 0.1.2
7
+ * @version <% process.env.version %>
8
8
  */
9
9
  import 'dotenv/config';
10
10
  import { Server } from '@modelcontextprotocol/sdk/server/index.js';
11
11
  import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
12
12
  import { CallToolRequestSchema, ListToolsRequestSchema } from '@modelcontextprotocol/sdk/types.js';
13
13
  import ESBProtocolBuilder from './utils/ESBProtocolBuilder.js';
14
+ import packageJson from '../package.json' with { type: 'json' };
15
+ console.log(packageJson.version);
14
16
  // ============ 常量定义 ============
15
17
  /**
16
18
  * 工单创建工具定义
@@ -112,7 +114,7 @@ let ESB_URL = process.env.ESB_URL || '';
112
114
  // ============ 服务器配置 ============
113
115
  const SERVER_CONFIG = {
114
116
  name: 'mcp-server-wom-call',
115
- version: '0.1.2',
117
+ version: packageJson.version,
116
118
  description: 'MCP Server for Work Order Management System Integration'
117
119
  };
118
120
  // ============ 工具函数 ============
@@ -3,7 +3,7 @@
3
3
  * 用于自动化创建运维工单的 MCP 服务器
4
4
  *
5
5
  * @author Your Name
6
- * @version 0.1.2
6
+ * @version <% process.env.version %>
7
7
  */
8
8
  import 'dotenv/config';
9
9
  //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcp-server-wom-call",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "MCP Server for Work Order Management System Integration",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",