tencent-docs
腾讯文档 MCP 提供了一套完整的在线文档操作工具,支持创建、查询、编辑多种类型的在线文档。
Works with
6
total installs
6
this week
2
GitHub stars
0
upvotes
Install Skill
Run in your terminal
6
installs
6
this week
2
stars
Installation Guide
How to use tencent-docs on Cursor
AI-first code editor with Composer
Prerequisites
Before installing skills in Cursor, ensure your development environment meets these requirements:
- ›Cursor installed and configured on your machine
- ›Node.js 16+ with npm — verify with
node --version - ›Active project directory where you want to add
tencent-docs
Run the install command
Execute the skills CLI command in your project's root directory to begin installation:
Fetches tencent-docs from zrong/skills and configures it for Cursor.
Select Cursor when prompted
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Verify installation
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate tencent-docs. Access via /tencent-docs in your agent's command palette.
Security Notice
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Documentation
腾讯文档 MCP 使用指南
腾讯文档 MCP 提供了一套完整的在线文档操作工具,支持创建、查询、编辑多种类型的在线文档。
支持的文档类型
| 类型 | doc_type | 推荐度 | 说明 |
|---|---|---|---|
| 文档 | smartcanvas | ⭐⭐⭐ 首选 | 排版美观,支持丰富组件,支持 MDX 高级排版格式 |
| Excel | sheet | ⭐⭐⭐ | 数据表格专用 |
| PPT | slide | ⭐⭐⭐ | 幻灯片,演示文稿专用 |
| 思维导图 | mind | ⭐⭐⭐ | 知识图谱专用 |
| 流程图 | flowchart | ⭐⭐⭐ | 流程展示专用 |
| Word | doc | ⭐⭐ | 传统格式,排版一般 |
| 收集表 | form | ⭐⭐ | 表单收集 |
| 智能表格 | smartsheet | ⭐⭐⭐ | 高级结构化表格,支持多视图、字段管理 |
⚙️ 快速配置
首次安装使用时,需要先完成本地安装和注册,详见 references/auth.md。
🎯 场景路由表
根据任务场景,选择对应的参考文档:
| 场景 | 文档类型 | 参考文档 |
|---|---|---|
| 报告、笔记、文章、总结等 | smartcanvas | smartcanvas/entry.md |
| 结构化数据管理 | smartsheet | references/smartsheet_references.md |
| 计算、筛选、统计、Excel 操作 | sheet | sheet/entry.md(sheet.* 工具 + sheetengine 精细编辑) |
| 论文、公文、合同等专业文档 | word (doc) | doc/entry.md |
| 已有 Word 文档精细编辑 | word (docengine) | references/docengine_references.md(独立服务 tencent-docengine,支持 resolve_document_structure 获取完整结构树,可定位表格指定行列、文本框内部等精确位置) |
| PPT / 演示文稿 | slide | references/slide_references.md |
| 层次化知识整理 | mind | references/diagram_references.md |
| 流程/架构展示 | flowchart | references/diagram_references.md |
| 收集表 | form | references/manage_references.md(使用 manage.create_file,file_type=form;传入 space_id 可在空间内创建) |
| 知识库空间管理(空间/节点/文件夹) | — | references/space_references.md |
| 获取文档内容、上传图片、网页剪藏等公共接口 | — | references/workflows.md (get_content/upload_image) |
| 文件管理(重命名/移动/删除/复制/导入导出/权限等) | — | references/manage_references.md |
| 其他通用场景 | smartcanvas | smartcanvas/entry.md |
📁 文件目录结构
tencent-docs/
├── SKILL.md # 入口文件(本文件),全局导航与核心规则
├── setup.sh # 本地安装脚本
├── import_file.sh # 文件导入辅助脚本(预导入+上传COS)
├── references/ # 参考文档(按品类/功能划分)
│ ├── auth.md # 鉴权与授权流程
│ ├── workflows.md # 公共接口(get_content)+ 常见工作流
│ ├── smartsheet_references.md # 智能表格(smartsheet)操作
│ ├── slide_references.md # 幻灯片(slide/PPT)生成
│ ├── diagram_references.md # 思维导图 + 流程图创建
│ ├── docengine_references.md # Word 文档精细编辑(独立服务 tencent-docengine)
│ ├── space_references.md # 知识库空间管理(空间/节点/文件夹)
│ └── manage_references.md # 文件管理(重命名/移动/删除/复制/导入导出/权限)
├── smartcanvas/ # 智能文档(smartcanvas)品类模块
│ ├── entry.md # 智能文档(smartcanvas)品类入口,创建与编辑
│ └── mdx_references.md # MDX 格式规范(smartcanvas 内容格式)
├── doc/ # Word 文档(doc)品类模块
│ ├── entry.md # Word 品类入口,工作流指引
│ └── doc_format/ # Word 格式定义与模板
└── sheet/ # Excel 文档(sheet)品类模块
├── entry.md # Sheet 品类入口(含 sheetengine 服务信息与工具列表)
└── api/ # Sheet 专用 API 定义
🔧 调用方式
获取工具列表
mcporter list tencent-docs
调用工具
mcporter call "tencent-docs" "<工具名>" --args '<JSON参数>'
⚠️ 参考文档中的参数说明应与 MCP 工具 Schema 保持一致。如有冲突,以
mcporter list tencent-docs返回的 Schema 为准。
通用响应结构
所有 API 返回都包含:
error: 错误信息(成功时为空)trace_id: 调用链追踪 ID
API 详细参考
各品类工具的完整 API 说明(调用示例、参数说明、返回值说明)请参考场景路由表中对应的参考文档。公共接口和常见工作流详见 references/workflows.md。
常见工作流
详见 references/workflows.md,包含以下内容:
公共接口
- get_content:获取文档完整内容,支持所有文档类型的通用读取接口
工作流列表
- 搜索并读取文档:manage.search_file 按关键词搜索 → 获取 file_id → get_content 读取内容
- 智能表格操作:先 smartsheet.list_tables 获取 sheet_id,再使用 smartsheet.* 系列工具
- 文件管理:manage.folder_list 获取目录 → manage.* 工具进行重命名、移动、删除、复制、权限设置
- 网页剪藏:scrape_url 抓取网页 → scrape_progress 轮询进度 → 自动保存为智能文档(用户提供 URL 时必须优先使用此工作流)
核心规则
- 默认使用 smartcanvas:除非用户明确指定其他格式,新增文档优先使用
create_smartcanvas_by_mdx;编辑已有文档使用smartcanvas.*系列工具;编辑已有 Word 文档使用tencent-docengine独立服务 - 创建文档支持
parent_id:所有create_*_by_markdown、create_smartcanvas_by_mdx和create_flowchart_by_mermaid工具均支持parent_id参数,可将文档创建到指定目录;不填则在根目录创建 node_id即file_id:空间节点的node_id同时也是文档的file_id- 删除节点需谨慎:
delete_space_node默认仅删除当前节点(remove_type=current),使用all时会递归删除所有子节点 - Markdown 内容:使用 UTF-8 格式,特殊字符无需转义
- 分页查询:每页返回 20-40 条记录,使用
has_next判断是否有更多 - 独立服务共用 Token:
tencent-docengine(Word 编辑)和tencent-sheetengine(Sheet 编辑)是独立 MCP 服务,但与tencent-docs共用同一个 Token,完成tencent-docs授权后自动配置,无需单独鉴权 - 异步任务使用 spawn 子会话轮询:
create_slide(PPT 生成)、scrape_url(网页剪藏)等异步任务,推荐使用 spawn 子会话专职轮询,主会话保持响应避免阻塞用户交互
问题定位指南
常见错误码
| 错误码 | 错误类型 | 解决方案 |
|---|---|---|
| 400006 | Token 鉴权失败 | 需要先完成本地授权,详见 references/auth.md |
| 400007 | VIP权限不足 | ⭐ 立即升级VIP:访问 https://docs.qq.com/vip?immediate_buy=1?part_aid=persnlspace_mcp 购买VIP服务 |
| -32601 | 请求接口错误 | 确认调用的工具是否在工具列表中存在 |
| -32603 | 请求参数错误 | 确认请求参数是否正确,例如 file_id、content 等 |
| 11607 | 请求参数错误 | 确认请求参数是否正确,例如 file_id、content 等 |
排查步骤
- 匹配错误码:先查上方错误码表,按对应方案处理
- 确认工具可用:
mcporter list tencent-docs查看可用工具列表及参数定义 - 确认授权状态:如有鉴权相关错误,重新执行
references/auth.md中的授权流程 - 查阅品类参考文档:根据场景路由表找到对应参考文档,确认工具调用规范和参数约束
SKILL 更新
每天使用 SKILL 前进行一次更新检查,按照如下的步骤执行:
- 查看当前版本version:读取本文件顶部 frontmatter 中的
version字段;格式为 MAJOR.MINOR.PATCH - 查看最新版本latest:通过命令获取最新版本信息
latest,输入参数version为上一步获取的当前版本
mcporter call "https://docs.qq.com/openapi/mcp" "check_skill_update" --args '{"version": "<version>"}'
JSON 格式数据返回,返回参数示例:
latest: 最新版本号,格式为 MAJOR.MINOR.PATCHrelease_note: 最新版本发布说明instruction: 更新指令
- 更新版本:如果当前版本
version低于最新版本latest,则遵循instruction指令进行更新,或提示用户更新
List & Monetize Your Skill
Submit your Claude Code skill and start earning
Use Cases
Task Automation & Efficiency
Automate repetitive workflows and reduce manual effort
Example
Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Knowledge Enhancement
Learn new skills, understand complex topics, get expert guidance
Example
Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Quality Improvement
Enhance output quality through reviews, suggestions, and refinements
Example
Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
Implementation Guide
Prerequisites
- ›Claude Desktop or compatible AI client with skill support
- ›Clear understanding of task or problem to solve
- ›Willingness to iterate and refine outputs
Time Estimate
15-45 minutes depending on use case complexity
Steps
- 1Install skill using provided installation command
- 2Test with simple use case relevant to your work
- 3Evaluate output quality and relevance
- 4Iterate on prompts to improve results
- 5Integrate into regular workflow if valuable
Common Pitfalls
- ⚠Expecting perfect results without iteration
- ⚠Not providing enough context in prompts
- ⚠Using skill for tasks outside its intended scope
- ⚠Accepting outputs without review and validation
Best Practices
✓ Do
- +Start with clear, specific prompts
- +Provide relevant context and constraints
- +Review and refine all outputs before using
- +Iterate to improve output quality
- +Document successful prompt patterns
✗ Don't
- −Don't use without understanding skill limitations
- −Don't skip validation of outputs
- −Don't share sensitive information in prompts
- −Don't expect skill to replace human judgment
💡 Pro Tips
- ★Be specific about desired format and style
- ★Ask for multiple options to choose from
- ★Request explanations to understand reasoning
- ★Combine AI efficiency with human expertise
When to Use This
✓ Use when
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
✗ Avoid when
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
Learning Path
- 1Familiarize yourself with skill capabilities and limitations
- 2Start with low-risk, non-critical tasks
- 3Progress to more complex and valuable use cases
- 4Build expertise through regular use and experimentation
Related Skills
video-analyzer
6zrong/skills
langgraph-docs
7langchain-ai/deepagents
find-docs
7upstash/context7
docs-writer
5google-gemini/gemini-cli
docs-cleaner
4daymade/claude-code-skills
tailwind-4-docs
4lombiq/tailwind-agent-skills
Reviews
- DDiego Okafor★★★★★Dec 28, 2024
Useful defaults in tencent-docs — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
- NNikhil Martin★★★★★Dec 16, 2024
tencent-docs is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
- PPratham Ware★★★★★Dec 12, 2024
Useful defaults in tencent-docs — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
- LLayla Park★★★★★Dec 4, 2024
I recommend tencent-docs for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
- LLayla Shah★★★★★Nov 23, 2024
Keeps context tight: tencent-docs is the kind of skill you can hand to a new teammate without a long onboarding doc.
- IIsabella Flores★★★★★Nov 19, 2024
tencent-docs is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
- MMeera Chawla★★★★★Nov 7, 2024
Useful defaults in tencent-docs — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
- YYash Thakker★★★★★Nov 3, 2024
tencent-docs is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
- NNikhil Yang★★★★★Oct 26, 2024
I recommend tencent-docs for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
- DDhruvi Jain★★★★★Oct 22, 2024
Keeps context tight: tencent-docs is the kind of skill you can hand to a new teammate without a long onboarding doc.
showing 1-10 of 42
Discussion
Comments — not star reviews- No comments yet — start the thread.