dingcard-mcp 0.0.0-stage → 0.59.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 lottshin
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,3 +1,24 @@
1
- # Temporary Holding Version
1
+ # dingcard-mcp
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ 叮卡(DingCard)的 MCP 服务器:让 AI 客户端直接生成、检查、修改和导出叮卡的自由画布卡片,再一步交给编辑器让人接着改。
4
+
5
+ - 生成:`create_document_from_template`、`create_document_from_content`、`create_document_from_outline`
6
+ - 查看与修改:`inspect_document`、`apply_actions`(与编辑器同一个归约器)、`list_assets`(图标、装饰、配色字体、花字、拼图、滤镜)
7
+ - 写法:`get_guide`(按主题读文档、动作、内容和导出的完整写法)
8
+ - 检查:`check_document`(按导出的样子排版后列出看得见的问题)
9
+ - 导出:`render_document`(逐页 PNG / JPG、一个 PDF 或一张长图)、`render_markdown`
10
+ - 交给人:`open_in_editor`(在浏览器里的叮卡编辑器打开)、`get_document`
11
+
12
+ 服务端保存它创建和修改的文档,工具之间传 `documentId` 即可,不必来回传整份 JSON;图片可以直接写本机文件路径,会自动嵌入。
13
+
14
+ ## 接入
15
+
16
+ ```json
17
+ {
18
+ "mcpServers": {
19
+ "dingcard": { "command": "npx", "args": ["-y", "dingcard-mcp"] }
20
+ }
21
+ }
22
+ ```
23
+
24
+ 需要 Node.js 22 以上和本机安装的 Chrome(渲染、检查用)。渲染用到的网页字体从 Google Fonts 下载,下载过的存在本机;连不上时设 `DINGCARD_FONTS_URL`(例如 `https://fonts.googleapis.cn`)换一个字体源。要 `share_document` 把作品变成分享链接,再设 `DINGCARD_SERVER_URL`(部署的叮卡地址)和 `DINGCARD_SERVER_TOKEN`(一个 API 令牌,需要 images、shares 权限),或 `DINGCARD_SERVER_USERNAME` / `DINGCARD_SERVER_PASSWORD`(一个叮卡账号)。完整说明见 [docs/mcp.md](https://github.com/lottshin/DingCard/blob/master/docs/mcp.md)。