中文 | English | 🤖 Agent Install
语雀 AI 生态 — MCP Tools and Skills for OpenCode
Integrate your Yuque knowledge base with OpenCode — the open-source AI coding agent. Get 16 MCP tools for document management and 14 ready-to-use skills for knowledge workflows.
Personal knowledge base AI integration — 16 MCP Tools + 8 Skills.
Team knowledge base AI integration — 16 MCP Tools + 6 Skills.
📂 group/
- Go to yuque.com/settings/tokens
- Create a new token with the permissions you need
- Copy the token
Add the following to your opencode.json (project-level or global ~/.config/opencode/opencode.json):
Note: Replace
YOUR_YUQUE_TOKENwith your actual token in the command array. Theenvironmentfield can optionally be used ifyuque-mcpreads from env vars.
You can also copy the pre-built template:
cp shared/mcp-config/opencode.json ~/.config/opencode/opencode.json
# Then edit the file and replace YOUR_YUQUE_TOKEN with your actual token# List MCP servers and verify yuque is connected
opencode mcp list
# Debug the connection if needed
opencode mcp debug yuqueOnce connected, all 16 yuque-mcp tools will be available to the AI agent.
OpenCode skills live in .opencode/skills/ (project-level) or ~/.config/opencode/skills/ (global).
# Personal skills
cp -r plugins/opencode/personal/skills/* /path/to/your/project/.opencode/skills/
# Group skills (for team projects)
cp -r plugins/opencode/group/skills/* /path/to/your/project/.opencode/skills/# Personal skills
cp -r plugins/opencode/personal/skills/* ~/.config/opencode/skills/
# Group skills
cp -r plugins/opencode/group/skills/* ~/.config/opencode/skills/# Install personal skills globally
mkdir -p ~/.config/opencode/skills
for skill in plugins/opencode/personal/skills/*/; do
cp -r "$skill" ~/.config/opencode/skills/
done
echo "✅ Installed $(ls -d plugins/opencode/personal/skills/*/ | wc -l | tr -d ' ') personal skills"
# Install group skills globally
for skill in plugins/opencode/group/skills/*/; do
cp -r "$skill" ~/.config/opencode/skills/
done
echo "✅ Installed $(ls -d plugins/opencode/group/skills/*/ | wc -l | tr -d ' ') group skills"After installation, OpenCode will automatically discover the skills. The agent can see the list and load them on demand.
| Skill | Description |
|---|---|
| smart-search | Search personal knowledge bases with natural language and get summarized answers |
| smart-summary | Generate summaries at different granularity levels (one-liner, key points, detailed) |
| daily-capture | Capture fleeting ideas and organize them into structured thematic notes |
| reading-digest | Extract core insights and action items from articles into structured reading notes |
| note-refine | Polish rough notes into high-quality documents with better structure and formatting |
| knowledge-connect | Discover hidden connections between documents and suggest cross-references |
| style-extract | Analyze writing style from documents and generate a style profile |
| stale-detector | Find outdated documents and generate maintenance reports |
| Skill | Description |
|---|---|
| smart-search | Search group knowledge bases with natural language (team-scoped) |
| weekly-report | Generate group weekly reports from Yuque activity data |
| knowledge-report | Generate comprehensive monthly knowledge management reports |
| meeting-notes | Format meeting content into structured notes and archive to Yuque |
| tech-design | Generate technical design documents using a standard template |
| onboarding-guide | Compile core team documents into a structured onboarding reading guide |
The yuque-mcp server provides 16 tools across these categories:
| Tool | Description |
|---|---|
yuque_get_user |
Get current authenticated user information |
| Tool | Description |
|---|---|
yuque_search |
Search for documents or repos in Yuque |
| Tool | Description |
|---|---|
yuque_list_books |
List all books for the current user |
yuque_get_book |
Get a specific book by ID or namespace |
yuque_create_book |
Create a new book |
yuque_update_book |
Update a book |
| Tool | Description |
|---|---|
yuque_list_docs |
List all documents in a book |
yuque_get_doc |
Get a specific document with full content |
yuque_create_doc |
Create a new document in a book |
yuque_update_doc |
Update an existing document |
| Tool | Description |
|---|---|
yuque_get_toc |
Get the table of contents for a book |
yuque_update_toc |
Update the table of contents for a book |
| Tool | Description |
|---|---|
yuque_list_notes |
List all notes with pagination |
yuque_get_note |
Get a specific note with full content |
yuque_create_note |
Create a new note |
yuque_update_note |
Update an existing note |
- OpenCode's SKILL.md format is compatible with this project's skill format (frontmatter + markdown)
- OpenCode also reads
.claude/skills/as a fallback, so Claude Code skills work in OpenCode too - The MCP configuration uses OpenCode's native format (
commandarray +environmentobject)
- OpenCode — Open-source AI coding agent
- OpenCode Docs: MCP Servers
- OpenCode Docs: Skills
- Yuque AI Ecosystem Website
- yuque-mcp-server (npm)
MIT © Yuque
{ "$schema": "https://opencode.ai/config.json", "mcp": { "yuque": { "type": "local", "command": ["npx", "-y", "yuque-mcp", "--token=YOUR_YUQUE_TOKEN"], "enabled": true, "environment": { "YUQUE_TOKEN": "" } } } }