@youcloud/metersphere-mcp 0.0.0-stage → 1.0.0
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/CHANGELOG.md +10 -0
- package/CONTRIBUTING.md +71 -0
- package/LICENSE +21 -0
- package/README.md +107 -2
- package/dist/adapters/v1-20.js +126 -0
- package/dist/client.js +75 -0
- package/dist/config.js +60 -0
- package/dist/errors.js +38 -0
- package/dist/index.js +16 -0
- package/dist/server.js +59 -0
- package/dist/services/metersphere.js +250 -0
- package/dist/version.js +3 -0
- package/dist/workflow/context.js +145 -0
- package/dist/workflow/contracts.js +63 -0
- package/dist/workflow/executor.js +599 -0
- package/dist/workflow/operations.js +143 -0
- package/dist/workflow/tokens.js +53 -0
- package/dist/workflow/tool-access.js +38 -0
- package/docs/README.md +168 -0
- package/docs/agent-workflow.md +41 -0
- package/docs/tools/cases.md +136 -0
- package/docs/tools/execution.md +117 -0
- package/docs/tools/operations.md +52 -0
- package/docs/tools/plans.md +182 -0
- package/docs/tools/projects.md +99 -0
- package/docs/tools/reports.md +80 -0
- package/docs/tools/reviews.md +75 -0
- package/examples/record-case-result.json +27 -0
- package/examples/workflow-config.json +20 -0
- package/package.json +59 -4
package/package.json
CHANGED
|
@@ -1,6 +1,61 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@youcloud/metersphere-mcp",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "面向产品验收工作流的 MeterSphere MCP 服务,支持全流程测试管理:用例创建 → 用例评审 → 测试计划 → 测试执行 → 结果记录 → 报告生成",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"bin": {
|
|
8
|
+
"metersphere-mcp": "dist/index.js"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"dist/**/*.js",
|
|
12
|
+
"README.md",
|
|
13
|
+
"CHANGELOG.md",
|
|
14
|
+
"CONTRIBUTING.md",
|
|
15
|
+
"LICENSE",
|
|
16
|
+
"docs/README.md",
|
|
17
|
+
"docs/tools/*.md",
|
|
18
|
+
"docs/agent-workflow.md",
|
|
19
|
+
"examples/workflow-config.json",
|
|
20
|
+
"examples/record-case-result.json"
|
|
21
|
+
],
|
|
22
|
+
"engines": {
|
|
23
|
+
"node": ">=22.23.2"
|
|
24
|
+
},
|
|
25
|
+
"keywords": [
|
|
26
|
+
"mcp",
|
|
27
|
+
"metersphere",
|
|
28
|
+
"workflow",
|
|
29
|
+
"软件测试"
|
|
30
|
+
],
|
|
31
|
+
"scripts": {
|
|
32
|
+
"prebuild": "node --input-type=module -e \"import { rmSync } from 'node:fs'; rmSync('dist', { recursive: true, force: true });\"",
|
|
33
|
+
"typecheck": "tsc --noEmit",
|
|
34
|
+
"build": "tsc -p tsconfig.build.json",
|
|
35
|
+
"start": "node dist/index.js",
|
|
36
|
+
"pretest": "npm run build",
|
|
37
|
+
"test": "vitest run",
|
|
38
|
+
"pretest:watch": "npm run build",
|
|
39
|
+
"test:watch": "vitest",
|
|
40
|
+
"verify": "npm run typecheck && npm test",
|
|
41
|
+
"verify:readonly": "node scripts/verify-readonly.mjs",
|
|
42
|
+
"test:package": "node scripts/verify-package.mjs",
|
|
43
|
+
"prepack": "npm run build",
|
|
44
|
+
"prepublishOnly": "npm run verify && npm run test:package && npm audit --audit-level=high"
|
|
45
|
+
},
|
|
46
|
+
"dependencies": {
|
|
47
|
+
"@modelcontextprotocol/sdk": "1.32.2",
|
|
48
|
+
"zod": "4.6.7"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@types/node": "22.20.4",
|
|
52
|
+
"typescript": "5.9.3",
|
|
53
|
+
"vite": "7.3.8",
|
|
54
|
+
"vitest": "5.1.0"
|
|
55
|
+
},
|
|
56
|
+
"publishConfig": {
|
|
57
|
+
"access": "public",
|
|
58
|
+
"registry": "https://registry.npmjs.org/",
|
|
59
|
+
"tag": "latest"
|
|
60
|
+
}
|
|
61
|
+
}
|