npm @wwwwwujl/yuque-mcpstdioMITupdated 6mo ago
This folder is prepared for building a custom MCP server for Yuque.
Was kannst du mit Yuque MCP machen?
yuque-mcp
中文说明: README.zh-CN.md
This folder is prepared for building a custom MCP server for Yuque.
Goal
Build a Yuque MCP server so Codex can:
- discover Yuque repos and docs
- read doc content in markdown/raw mode
- create/update/delete docs when needed
- create docs from local files and update docs from local files
- create/update/delete repos (knowledge bases)
- create/update/delete groups
- manage group members (
list/add/remove) - run combined operations (
get_my_repositories,get_repository_overview,search_and_read,create_document_with_toc) - update repository TOC nodes
- use Yuque content as a research knowledge base
Included Docs
docs/00-project-brief.mddocs/01-scope-v1.mddocs/02-architecture.mddocs/03-tool-contract.mddocs/04-api-mapping.mddocs/05-security.mddocs/06-implementation-plan.mddocs/07-test-plan.mddocs/08-codex-integration.mddocs/09-release-notes-zh.mddocs/10-registry-publish.mddocs/11-weekly-maintenance.mddocs/12-complaint-and-takedown.mdCHANGELOG.mdCONTRIBUTING.mdSECURITY.mdDISCLAIMER.mdtasks/TODO.md
Session Kickoff
In your new Codex session, start with:
- Read
docs/01-scope-v1.mdanddocs/03-tool-contract.md. - Scaffold Node + TypeScript MCP server.
- Implement read-only tools.
- Add write tools for group/repo/doc CRUD + TOC update.
- Run tests and add Codex MCP config.
Quick Start (Local)
npm install
npm run build
Required env:
YUQUE_TOKENYUQUE_ENDPOINT(optional, defaulthttps://www.yuque.com/api/v2/)YUQUE_TIMEOUT_MS(optional, default10000)YUQUE_MAX_RETRIES(optional, default2, read-only retries only)YUQUE_ALLOW_WRITE(optional, defaultfalse)YUQUE_WRITE_NAMESPACE_ALLOWLIST(optional, comma-separated namespace allowlist for repo/doc/toc writes)YUQUE_WRITE_GROUP_ALLOWLIST(optional, comma-separated group login allowlist for group writes)YUQUE_ALLOW_DELETE(optional, defaultfalse)YUQUE_DELETE_NAMESPACE_ALLOWLIST(optional, comma-separated delete allowlist targets; namespace for repo/doc, login for group)YUQUE_FILE_ROOT(optional, default current working directory, used by file-based doc tools)YUQUE_FILE_MAX_BYTES(optional, default1048576)YUQUE_FILE_ALLOWED_EXTENSIONS(optional, default.md,.markdown,.txt)
Write safety:
- All write tools are blocked by default.
- Set
YUQUE_ALLOW_WRITE=trueto enable writes. - Optional write allowlists:
YUQUE_WRITE_NAMESPACE_ALLOWLIST=team/sandbox,team/testYUQUE_WRITE_GROUP_ALLOWLIST=sandbox-team
Delete safety:
yuque_delete_doc,yuque_delete_repo, andyuque_delete_groupare blocked by default.- To enable delete for test repos only, set:
YUQUE_ALLOW_WRITE=trueYUQUE_ALLOW_DELETE=trueYUQUE_DELETE_NAMESPACE_ALLOWLIST=your/test-namespace,your-test-group-login
- Delete tools also require
confirm: trueand exactconfirm_text:- doc:
DELETE DOC <namespace>/<docRef> - repo:
DELETE REPO <namespace> - group:
DELETE GROUP <login>
- doc:
Latest highlights:
yuque_get_doc/yuque_update_doc/yuque_delete_docsupport eitherslugordoc_id.yuque_list_docssupports pagination (offset,limit).yuque_search_docsnow scans paginated docs across the full repository.- Doc format supports
markdown,html,lake; visibility supports0 | 1 | 2. - TOC update supports extra fields (
editNode,url,open_window,visible). - Group member tools:
yuque_list_group_users,yuque_add_group_user,yuque_remove_group_user. - File-based tools are constrained by root directory, extension allowlist, and max size.
Run in dev:
npm run dev
Run compiled server:
npm run start
Run local MCP smoke test (test namespace only):
YUQUE_SMOKE_NAMESPACE=your/test-namespace npm run smoke
Run write smoke suite with cleanup (create/update/toc/delete on test namespace):
YUQUE_SMOKE_NAMESPACE=your/test-namespace \
YUQUE_SMOKE_ENABLE_WRITE=true \
YUQUE_ALLOW_WRITE=true \
YUQUE_ALLOW_DELETE=true \
YUQUE_DELETE_NAMESPACE_ALLOWLIST=your/test-namespace \
npm run smoke
Suggested Stack
- Node.js 20+
- TypeScript
@modelcontextprotocol/sdk- Native
fetchor lightweight HTTP client zodfor input validation
Open Source Governance
- Contribution guide:
CONTRIBUTING.md - Security policy:
SECURITY.md - Weekly maintenance checklist:
docs/11-weekly-maintenance.md - Complaint and takedown policy:
docs/12-complaint-and-takedown.md - Disclaimer:
DISCLAIMER.md
Installation
Yuque MCP zu deinem Client hinzufügen. Wähl den, den du nutzt.
claude mcp add yuque-mcp -- npx -y @wwwwwujl/yuque-mcpcodex mcp add yuque-mcp -- npx -y @wwwwwujl/yuque-mcpamp mcp add yuque-mcp -- npx -y @wwwwwujl/yuque-mcp{
"mcpServers": {
"yuque-mcp": {
"command": "npx",
"args": [
"-y",
"@wwwwwujl/yuque-mcp"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"yuque-mcp": {
"command": "npx",
"args": [
"-y",
"@wwwwwujl/yuque-mcp"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"yuque-mcp","command":"npx","args":["-y","@wwwwwujl/yuque-mcp"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"yuque-mcp": {
"command": "npx",
"args": [
"-y",
"@wwwwwujl/yuque-mcp"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"yuque-mcp": {
"command": "npx",
"args": [
"-y",
"@wwwwwujl/yuque-mcp"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"yuque-mcp": {
"command": "npx",
"args": [
"-y",
"@wwwwwujl/yuque-mcp"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"yuque-mcp": {
"type": "local",
"command": "npx",
"args": [
"-y",
"@wwwwwujl/yuque-mcp"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"yuque-mcp": {
"command": {
"path": "npx",
"args": [
"-y",
"@wwwwwujl/yuque-mcp"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y @wwwwwujl/yuque-mcpRun `goose configure`, choose **Add Extension → Command-line Extension**, and paste this command.
Score
39 / 100
Unvollständig
- Dokumentation25/25
- Pflege15/25
- Vertrauen13/20
- Funktionsumfang0/15
- Installation12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 195 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint — no local install
Versionsverlauf
| Versionen | Veröffentlicht |
|---|---|
| 1.1.0Aktuell | 18. Feb. 2026 |
| 1.0.6 | 18. Feb. 2026 |
| 1.0.5 | 18. Feb. 2026 |