@ww_nero/skills 3.4.1 → 3.6.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.
Files changed (3) hide show
  1. package/README.md +21 -26
  2. package/index.js +1 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -1,45 +1,40 @@
1
- # @ww_nero/snippet
1
+ # @ww_nero/skills
2
2
 
3
- MCP 服务器,不直接执行转换,而是根据 `type` 返回可直接运行的 Python 参考脚本和要点说明。支持四类示例:
3
+ MCP 服务器,提供 Python 参考脚本和技能指导。
4
+
5
+ ## 工具列表
6
+
7
+ ### snippet
8
+
9
+ 根据 `title` 返回可直接运行的 Python 参考脚本,保存到工作目录下。支持以下类型:
4
10
 
5
11
  - `html_to_png`:Playwright 渲染 HTML 后截图
6
12
  - `pdf_to_png`:pdf2image 分页导出位图
7
- - `pptx_to_pdf`:LibreOffice 无头模式转 PDF
8
- - `svg_to_pptx`:附带 `ppt_slide.html` 与对应的构建脚本,演示渐变背景、发光文本和贝塞尔曲线
13
+ - `pptx_to_png`:LibreOffice 无头模式转 PDF 再转 PNG
14
+ - `svg_to_pptx`:将 SVG 转化为 PPTX 中的可操作元素
15
+ - `step_to_stl`:将 STEP/STP 文件转换为 STL 网格文件
16
+ - `combine_stls`:合并多个 STL 文件
17
+
18
+ ### ppt
19
+
20
+ 返回制作 PPT 的全流程指导说明和注意事项。
9
21
 
10
22
  ## MCP 配置示例
11
23
 
12
24
  ```json
13
- "snippet": {
25
+ "skills": {
14
26
  "command": "npx",
15
- "args": ["-y", "@ww_nero/snippet@latest"],
27
+ "args": ["-y", "@ww_nero/skills@latest"],
16
28
  "env": {},
17
29
  "type": "stdio"
18
30
  }
19
31
  ```
20
32
 
21
- 工具列表中仅包含 `convert`,调用时传入:
22
-
23
- ```json
24
- {
25
- "type": "html_to_png" // 可选: html_to_png | pdf_to_png | pptx_to_pdf | svg_to_pptx
26
- }
27
- ```
28
-
29
- 参数说明:
30
- - `type`:示例类型,取值仅限 `html_to_png` / `pdf_to_png` / `pptx_to_pdf` / `svg_to_pptx`。
31
-
32
- 返回内容包括:
33
-
34
- 1. 关键要点(参数、注意事项、风格处理建议等)。
35
- 2. 完整的 Python 示例脚本(位于 `assets/` 下)。
36
- 3. 如需额外资源(例如 SVG),会同时内联展示并标注路径。
37
-
38
- ## 运行脚本所需依赖(如需执行)
33
+ ## 运行脚本所需依赖
39
34
 
40
35
  ```bash
41
- pip install playwright pdf2image pillow python-pptx
36
+ pip install playwright pdf2image pillow python-pptx pythonocc-core gmsh
42
37
  playwright install
43
38
  ```
44
39
 
45
- 示例脚本默认使用简体中文注释,可直接复制到本地运行或按需修改。
40
+ 示例脚本默认使用简体中文注释,可直接复制到本地运行或按需修改。
package/index.js CHANGED
@@ -149,7 +149,7 @@ const listTools = () => ({
149
149
  ]
150
150
  });
151
151
 
152
- const server = new Server({ name: 'skills', version: '3.4.1' }, { capabilities: { tools: {} } });
152
+ const server = new Server({ name: 'skills', version: '3.6.0' }, { capabilities: { tools: {} } });
153
153
 
154
154
  server.setRequestHandler(ListToolsRequestSchema, async () => listTools());
155
155
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ww_nero/skills",
3
- "version": "3.4.1",
3
+ "version": "3.6.0",
4
4
  "description": "MCP server that returns Python reference snippets and skill guides",
5
5
  "main": "index.js",
6
6
  "bin": {