dsh-plugin-mcp-mvp-mes 0.1.0 → 0.1.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/LICENSE +21 -21
- package/README.md +60 -51
- package/cordis.patch.yml +21 -24
- package/lib/index.mjs +5 -0
- package/package.json +30 -13
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,51 +1,60 @@
|
|
|
1
|
-
# dsh-plugin-mcp-mvp-mes
|
|
2
|
-
|
|
3
|
-
MOM MES MCP Connector for DeepSeek Harness (DSH)
|
|
4
|
-
|
|
5
|
-
## 简介
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
1
|
+
# dsh-plugin-mcp-mvp-mes
|
|
2
|
+
|
|
3
|
+
MOM MES MCP Connector for DeepSeek Harness (DSH)
|
|
4
|
+
|
|
5
|
+
## 简介
|
|
6
|
+
|
|
7
|
+
这是一个纯配置型 Streamable HTTP MCP 桥接 bundle,通过宿主内置的 `@deepseek-ai/dsh-mcp-client` 对接 MOM MES 制造执行系统。安装后配置环境变量,DSH 即可连接 MCP 服务、加载并调用 MES 相关工具(工单查询、设备状态、生产记录等)。
|
|
8
|
+
|
|
9
|
+
> 本插件仅为 DSH 配置桥接包,**不包含 MES 后端服务**,依赖独立部署的 MCP 服务。
|
|
10
|
+
|
|
11
|
+
## MCP 信息
|
|
12
|
+
|
|
13
|
+
- Transport: `streamable-http`
|
|
14
|
+
- Endpoint: `https://mom-mes-connector-t.hdt.cosmoplat.com/mcp`
|
|
15
|
+
|
|
16
|
+
## 安装
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
dsh plugin --profile web add dsh-plugin-mcp-mvp-mes
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## 配置(环境变量)
|
|
23
|
+
|
|
24
|
+
bundle 本身不提供 UI 配置表单,凭据从环境变量读取。在 `~/.dsh/.env`(或宿主进程环境)中设置:
|
|
25
|
+
|
|
26
|
+
```env
|
|
27
|
+
MOM_MES_API_KEY=deecfd29-34da-4504-a745-22d69bf840c7
|
|
28
|
+
MOM_MES_BASE_URL=https://mom-dev.hdt.cosmoplat.com
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
- `MOM_MES_API_KEY`:写入请求头 `Authorization: Bearer <key>`
|
|
32
|
+
- `MOM_MES_BASE_URL`:写入请求头 `x-api-base-url`,用于后端路由转发
|
|
33
|
+
|
|
34
|
+
修改后重启 DSH(或触发该层 HMR 重载)使其生效。
|
|
35
|
+
|
|
36
|
+
## 使用说明
|
|
37
|
+
|
|
38
|
+
1. 安装插件
|
|
39
|
+
2. 在 `~/.dsh/.env` 填入上述两项环境变量
|
|
40
|
+
3. 重启 DSH,自动连接 MCP 服务并加载工具列表
|
|
41
|
+
4. 模型工具命名为 `mcp__mvpMes__<原始工具名>`
|
|
42
|
+
|
|
43
|
+
## 参数说明
|
|
44
|
+
|
|
45
|
+
| 环境变量 | 注入位置 | 说明 |
|
|
46
|
+
| --- | --- | --- |
|
|
47
|
+
| `MOM_MES_API_KEY` | `Authorization: Bearer` | 认证密钥 |
|
|
48
|
+
| `MOM_MES_BASE_URL` | `x-api-base-url` | MES 后端基础地址,示例 `https://mom-dev.hdt.cosmoplat.com` |
|
|
49
|
+
|
|
50
|
+
## 自测清单
|
|
51
|
+
|
|
52
|
+
- ✅ DSH 可通过包名安装(bundle 声明生效,无 `no dsh.bundle` 报错)
|
|
53
|
+
- ✅ 安装后 profile 的 `dsh.profile.bundles` 包含本包
|
|
54
|
+
- ✅ 环境变量正确注入 `Authorization`、`x-api-base-url` 两个请求头
|
|
55
|
+
- ✅ 可正常完成 `tools/list`,工具以 `mcp__mvpMes__` 前缀出现
|
|
56
|
+
- ✅ 无硬编码密钥,凭据由用户自行维护
|
|
57
|
+
|
|
58
|
+
## License
|
|
59
|
+
|
|
60
|
+
MIT
|
package/cordis.patch.yml
CHANGED
|
@@ -1,24 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
required:
|
|
23
|
-
- apiKey
|
|
24
|
-
- xApiBaseUrl
|
|
1
|
+
# dsh-plugin-mcp-mvp-mes — bundle layer.
|
|
2
|
+
#
|
|
3
|
+
# Mounts the host's built-in @deepseek-ai/dsh-mcp-client against the MOM MES
|
|
4
|
+
# Streamable HTTP endpoint. Credentials are read from environment variables
|
|
5
|
+
# (~/.dsh/.env or the host process env), never hard-coded in this file.
|
|
6
|
+
#
|
|
7
|
+
# Required env:
|
|
8
|
+
# MOM_MES_API_KEY -> Authorization: Bearer <key>
|
|
9
|
+
# MOM_MES_BASE_URL -> x-api-base-url header (e.g. https://mom-dev.hdt.cosmoplat.com)
|
|
10
|
+
|
|
11
|
+
- insert:
|
|
12
|
+
- id: mcp-mvp-mes
|
|
13
|
+
name: '@deepseek-ai/dsh-mcp-client'
|
|
14
|
+
config:
|
|
15
|
+
serverName: mvpMes
|
|
16
|
+
transport: streamable-http
|
|
17
|
+
url: https://mom-mes-connector-t.hdt.cosmoplat.com/mcp
|
|
18
|
+
headers:
|
|
19
|
+
Authorization: !!js '`Bearer ${process.env.MOM_MES_API_KEY ?? ""}`'
|
|
20
|
+
x-api-base-url: !!js '`${process.env.MOM_MES_BASE_URL ?? ""}`'
|
|
21
|
+
failOnStartupError: false
|
package/lib/index.mjs
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// dsh-plugin-mcp-mvp-mes — pure-config bundle.
|
|
2
|
+
// This package only contributes a cordis.patch.yml layer that mounts the host's
|
|
3
|
+
// built-in @deepseek-ai/dsh-mcp-client against the MOM MES MCP endpoint.
|
|
4
|
+
// No runtime code is needed, so the entry stays empty.
|
|
5
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,13 +1,30 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "dsh-plugin-mcp-mvp-mes",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "MOM MES MCP
|
|
5
|
-
"keywords": ["dsh-plugin", "deepseek-harness", "mcp", "mes", "mom"],
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
"cordis.patch.yml"
|
|
12
|
-
]
|
|
13
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "dsh-plugin-mcp-mvp-mes",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "MOM MES MCP 连接器,通过宿主内置 dsh-mcp-client 对接 mom-mes-connector-t.hdt.cosmoplat.com",
|
|
5
|
+
"keywords": ["dsh-plugin", "deepseek-harness", "mcp", "mes", "mom", "streamable-http"],
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"main": "lib/index.mjs",
|
|
9
|
+
"files": [
|
|
10
|
+
"lib/index.mjs",
|
|
11
|
+
"cordis.patch.yml"
|
|
12
|
+
],
|
|
13
|
+
"exports": {
|
|
14
|
+
".": "./lib/index.mjs",
|
|
15
|
+
"./cordis.patch.yml": "./cordis.patch.yml",
|
|
16
|
+
"./package.json": "./package.json"
|
|
17
|
+
},
|
|
18
|
+
"dsh": {
|
|
19
|
+
"bundle": {
|
|
20
|
+
"patch": "./cordis.patch.yml"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"engines": {
|
|
24
|
+
"dsh": ">=0.1.0-rc.6"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {},
|
|
27
|
+
"publishConfig": {
|
|
28
|
+
"access": "public"
|
|
29
|
+
}
|
|
30
|
+
}
|