mcp-probe-kit 1.10.0 → 1.11.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.
@@ -0,0 +1,85 @@
1
+ /**
2
+ * 文档和工具类的 Schema 定义
3
+ */
4
+ export declare const docUtilToolSchemas: readonly [{
5
+ readonly name: "genreadme";
6
+ readonly description: "当用户需要生成项目 README 文档时使用。生成 README 文档,包含项目介绍/安装/使用/脚本/FAQ";
7
+ readonly inputSchema: {
8
+ readonly type: "object";
9
+ readonly properties: {
10
+ readonly project_info: {
11
+ readonly type: "string";
12
+ readonly description: "项目信息。可以是项目描述、代码或 package.json 内容";
13
+ };
14
+ readonly style: {
15
+ readonly type: "string";
16
+ readonly description: "文档风格:simple(简洁)、detailed(详细)。可选,默认 detailed";
17
+ };
18
+ };
19
+ readonly required: readonly [];
20
+ readonly additionalProperties: true;
21
+ };
22
+ }, {
23
+ readonly name: "check_deps";
24
+ readonly description: "当用户需要检查项目依赖健康度、查找过期依赖时使用。检查依赖版本、安全漏洞、体积,输出升级建议";
25
+ readonly inputSchema: {
26
+ readonly type: "object";
27
+ readonly properties: {};
28
+ readonly required: readonly [];
29
+ readonly additionalProperties: true;
30
+ };
31
+ }, {
32
+ readonly name: "convert";
33
+ readonly description: "当用户需要转换代码格式或框架时使用。转换代码(JS→TS/Class→Hooks/Vue2→Vue3),保持逻辑不变";
34
+ readonly inputSchema: {
35
+ readonly type: "object";
36
+ readonly properties: {
37
+ readonly code: {
38
+ readonly type: "string";
39
+ readonly description: "要转换的代码";
40
+ };
41
+ readonly from: {
42
+ readonly type: "string";
43
+ readonly description: "源格式:js、class、vue2。可选,会自动识别";
44
+ };
45
+ readonly to: {
46
+ readonly type: "string";
47
+ readonly description: "目标格式:ts、hooks、vue3。可选,会自动识别";
48
+ };
49
+ };
50
+ readonly required: readonly [];
51
+ readonly additionalProperties: true;
52
+ };
53
+ }, {
54
+ readonly name: "css_order";
55
+ readonly description: "当用户需要整理 CSS 属性顺序时使用。重排 CSS 属性顺序,按布局→盒模型→视觉→其他规则整理";
56
+ readonly inputSchema: {
57
+ readonly type: "object";
58
+ readonly properties: {
59
+ readonly css: {
60
+ readonly type: "string";
61
+ readonly description: "CSS 代码。可选,如果不提供会处理当前文件";
62
+ };
63
+ };
64
+ readonly required: readonly [];
65
+ readonly additionalProperties: true;
66
+ };
67
+ }, {
68
+ readonly name: "split";
69
+ readonly description: "当用户需要拆分大文件、模块化代码时使用。将大文件拆分为小模块,按类型/功能/组件策略拆分";
70
+ readonly inputSchema: {
71
+ readonly type: "object";
72
+ readonly properties: {
73
+ readonly file: {
74
+ readonly type: "string";
75
+ readonly description: "要拆分的文件内容";
76
+ };
77
+ readonly strategy: {
78
+ readonly type: "string";
79
+ readonly description: "拆分策略:auto(自动)、by-type(按类型)、by-function(按功能)。可选,默认 auto";
80
+ };
81
+ };
82
+ readonly required: readonly [];
83
+ readonly additionalProperties: true;
84
+ };
85
+ }];
@@ -0,0 +1,93 @@
1
+ /**
2
+ * 文档和工具类的 Schema 定义
3
+ */
4
+ export const docUtilToolSchemas = [
5
+ // 文档工具
6
+ {
7
+ name: "genreadme",
8
+ description: "当用户需要生成项目 README 文档时使用。生成 README 文档,包含项目介绍/安装/使用/脚本/FAQ",
9
+ inputSchema: {
10
+ type: "object",
11
+ properties: {
12
+ project_info: {
13
+ type: "string",
14
+ description: "项目信息。可以是项目描述、代码或 package.json 内容",
15
+ },
16
+ style: {
17
+ type: "string",
18
+ description: "文档风格:simple(简洁)、detailed(详细)。可选,默认 detailed",
19
+ },
20
+ },
21
+ required: [],
22
+ additionalProperties: true,
23
+ },
24
+ },
25
+ {
26
+ name: "check_deps",
27
+ description: "当用户需要检查项目依赖健康度、查找过期依赖时使用。检查依赖版本、安全漏洞、体积,输出升级建议",
28
+ inputSchema: {
29
+ type: "object",
30
+ properties: {},
31
+ required: [],
32
+ additionalProperties: true,
33
+ },
34
+ },
35
+ // 工具类
36
+ {
37
+ name: "convert",
38
+ description: "当用户需要转换代码格式或框架时使用。转换代码(JS→TS/Class→Hooks/Vue2→Vue3),保持逻辑不变",
39
+ inputSchema: {
40
+ type: "object",
41
+ properties: {
42
+ code: {
43
+ type: "string",
44
+ description: "要转换的代码",
45
+ },
46
+ from: {
47
+ type: "string",
48
+ description: "源格式:js、class、vue2。可选,会自动识别",
49
+ },
50
+ to: {
51
+ type: "string",
52
+ description: "目标格式:ts、hooks、vue3。可选,会自动识别",
53
+ },
54
+ },
55
+ required: [],
56
+ additionalProperties: true,
57
+ },
58
+ },
59
+ {
60
+ name: "css_order",
61
+ description: "当用户需要整理 CSS 属性顺序时使用。重排 CSS 属性顺序,按布局→盒模型→视觉→其他规则整理",
62
+ inputSchema: {
63
+ type: "object",
64
+ properties: {
65
+ css: {
66
+ type: "string",
67
+ description: "CSS 代码。可选,如果不提供会处理当前文件",
68
+ },
69
+ },
70
+ required: [],
71
+ additionalProperties: true,
72
+ },
73
+ },
74
+ {
75
+ name: "split",
76
+ description: "当用户需要拆分大文件、模块化代码时使用。将大文件拆分为小模块,按类型/功能/组件策略拆分",
77
+ inputSchema: {
78
+ type: "object",
79
+ properties: {
80
+ file: {
81
+ type: "string",
82
+ description: "要拆分的文件内容",
83
+ },
84
+ strategy: {
85
+ type: "string",
86
+ description: "拆分策略:auto(自动)、by-type(按类型)、by-function(按功能)。可选,默认 auto",
87
+ },
88
+ },
89
+ required: [],
90
+ additionalProperties: true,
91
+ },
92
+ },
93
+ ];
@@ -0,0 +1,76 @@
1
+ /**
2
+ * Git 相关工具的 Schema 定义
3
+ */
4
+ export declare const gitToolSchemas: readonly [{
5
+ readonly name: "gencommit";
6
+ readonly description: "当用户需要生成 Git commit 消息时使用。返回 Conventional Commits 规范指南,AI 根据指南和变更内容生成符合规范的提交消息";
7
+ readonly inputSchema: {
8
+ readonly type: "object";
9
+ readonly properties: {
10
+ readonly changes: {
11
+ readonly type: "string";
12
+ readonly description: "代码变更内容。可以是 git diff 输出、变更描述或自然语言。如果不提供,工具会提示执行 git diff";
13
+ };
14
+ readonly type: {
15
+ readonly type: "string";
16
+ readonly description: "Commit 类型:fixed(修复)、feat(新功能)、docs(文档)、style(样式)、chore(杂项)、refactor(重构)、test(测试)。可选,会自动识别";
17
+ };
18
+ };
19
+ readonly required: readonly [];
20
+ readonly additionalProperties: true;
21
+ };
22
+ }, {
23
+ readonly name: "genchangelog";
24
+ readonly description: "当用户需要生成版本更新日志、准备发布时使用。根据 commit 历史生成 CHANGELOG,按 feat/fix/breaking 分类";
25
+ readonly inputSchema: {
26
+ readonly type: "object";
27
+ readonly properties: {
28
+ readonly version: {
29
+ readonly type: "string";
30
+ readonly description: "版本号(如 v1.2.0)。可选,如果不提供会提示用户输入";
31
+ };
32
+ readonly from: {
33
+ readonly type: "string";
34
+ readonly description: "起始 tag 或 commit。可选,默认为上一个 tag";
35
+ };
36
+ readonly to: {
37
+ readonly type: "string";
38
+ readonly description: "结束 tag 或 commit。可选,默认为 HEAD";
39
+ };
40
+ };
41
+ readonly required: readonly [];
42
+ readonly additionalProperties: true;
43
+ };
44
+ }, {
45
+ readonly name: "genpr";
46
+ readonly description: "当用户需要创建 Pull Request、生成 PR 描述时使用。分析 commit 历史,生成包含变更摘要、影响范围、测试说明的 PR 描述";
47
+ readonly inputSchema: {
48
+ readonly type: "object";
49
+ readonly properties: {
50
+ readonly branch: {
51
+ readonly type: "string";
52
+ readonly description: "分支名称。可选,默认为当前分支";
53
+ };
54
+ readonly commits: {
55
+ readonly type: "string";
56
+ readonly description: "Commit 历史。可选,会自动获取 git log";
57
+ };
58
+ };
59
+ readonly required: readonly [];
60
+ readonly additionalProperties: true;
61
+ };
62
+ }, {
63
+ readonly name: "resolve_conflict";
64
+ readonly description: "当用户遇到 Git 合并冲突、需要解决冲突时使用。分析冲突内容(<<<<<<< ======= >>>>>>>),理解双方意图,提供解决方案";
65
+ readonly inputSchema: {
66
+ readonly type: "object";
67
+ readonly properties: {
68
+ readonly conflicts: {
69
+ readonly type: "string";
70
+ readonly description: "Git 冲突内容。包含 <<<<<<< ======= >>>>>>> 标记的文件内容";
71
+ };
72
+ };
73
+ readonly required: readonly [];
74
+ readonly additionalProperties: true;
75
+ };
76
+ }];
@@ -0,0 +1,81 @@
1
+ /**
2
+ * Git 相关工具的 Schema 定义
3
+ */
4
+ export const gitToolSchemas = [
5
+ {
6
+ name: "gencommit",
7
+ description: "当用户需要生成 Git commit 消息时使用。返回 Conventional Commits 规范指南,AI 根据指南和变更内容生成符合规范的提交消息",
8
+ inputSchema: {
9
+ type: "object",
10
+ properties: {
11
+ changes: {
12
+ type: "string",
13
+ description: "代码变更内容。可以是 git diff 输出、变更描述或自然语言。如果不提供,工具会提示执行 git diff",
14
+ },
15
+ type: {
16
+ type: "string",
17
+ description: "Commit 类型:fixed(修复)、feat(新功能)、docs(文档)、style(样式)、chore(杂项)、refactor(重构)、test(测试)。可选,会自动识别",
18
+ },
19
+ },
20
+ required: [],
21
+ additionalProperties: true,
22
+ },
23
+ },
24
+ {
25
+ name: "genchangelog",
26
+ description: "当用户需要生成版本更新日志、准备发布时使用。根据 commit 历史生成 CHANGELOG,按 feat/fix/breaking 分类",
27
+ inputSchema: {
28
+ type: "object",
29
+ properties: {
30
+ version: {
31
+ type: "string",
32
+ description: "版本号(如 v1.2.0)。可选,如果不提供会提示用户输入",
33
+ },
34
+ from: {
35
+ type: "string",
36
+ description: "起始 tag 或 commit。可选,默认为上一个 tag",
37
+ },
38
+ to: {
39
+ type: "string",
40
+ description: "结束 tag 或 commit。可选,默认为 HEAD",
41
+ },
42
+ },
43
+ required: [],
44
+ additionalProperties: true,
45
+ },
46
+ },
47
+ {
48
+ name: "genpr",
49
+ description: "当用户需要创建 Pull Request、生成 PR 描述时使用。分析 commit 历史,生成包含变更摘要、影响范围、测试说明的 PR 描述",
50
+ inputSchema: {
51
+ type: "object",
52
+ properties: {
53
+ branch: {
54
+ type: "string",
55
+ description: "分支名称。可选,默认为当前分支",
56
+ },
57
+ commits: {
58
+ type: "string",
59
+ description: "Commit 历史。可选,会自动获取 git log",
60
+ },
61
+ },
62
+ required: [],
63
+ additionalProperties: true,
64
+ },
65
+ },
66
+ {
67
+ name: "resolve_conflict",
68
+ description: "当用户遇到 Git 合并冲突、需要解决冲突时使用。分析冲突内容(<<<<<<< ======= >>>>>>>),理解双方意图,提供解决方案",
69
+ inputSchema: {
70
+ type: "object",
71
+ properties: {
72
+ conflicts: {
73
+ type: "string",
74
+ description: "Git 冲突内容。包含 <<<<<<< ======= >>>>>>> 标记的文件内容",
75
+ },
76
+ },
77
+ required: [],
78
+ additionalProperties: true,
79
+ },
80
+ },
81
+ ];