Manage YuQue knowledge base documents through YuQue MCP tools. This skill focuses on key usage points and common operation patterns of MCP tools.
MCP Tool Overview
All operations are completed through YuQue MCP tools:
mcp_YuQueMCP_get_default_repository- Get default knowledge base informationmcp_YuQueMCP_get_repository_toc_tree- Get the complete directory tree structuremcp_YuQueMCP_search- Search documentsmcp_YuQueMCP_create_document- Create a new documentmcp_YuQueMCP_get_document- Read document contentmcp_YuQueMCP_update_document- Update document content or titlemcp_YuQueMCP_move_document- Move a document to another directorymcp_YuQueMCP_delete_document- Delete a document
Basic Operation Key Points
Create Document
Steps:
- Get the directory structure:
mcp_YuQueMCP_get_repository_toc_treeunderstand the organization method - Determine the location: choose an appropriate
parentUuidor use the root directory (null) - Prepare content: use Markdown format
- Create the document: call
mcp_YuQueMCP_create_document, parameters:title(required): document titlebody(optional): document content in Markdown formatparentUuid(optional): parent directory UUID
Key points:
- Titles must be unique under the same directory
- Content uses standard Markdown syntax
- If parentUuid is not specified, it is created in the root directory
Search Documents
Usage:
mcp_YuQueMCP_search query="搜索关键词" type="DOC" page=1
Parameter description:
query(required): search keywordtype(optional): document type filterpage(optional): pagination page number
Key points:
- Use specific keywords rather than generic terms
- Combine multiple keywords to improve precision
- Use pagination for large result sets
Update Document
Usage:
mcp_YuQueMCP_update_document docId="文档ID" body="新内容" title="新标题"
Parameter description:
docId(required): document IDbody(optional): new document contenttitle(optional): new document title
Key points:
- Provide at least one of body or title
- After updating, verify whether the changes took effect
- Confirm that the document ID is correct
Move Document
Usage:
mcp_YuQueMCP_move_document docId="文档ID" parentUuid="目标父目录UUID"
Key points:
- If parentUuid is null, move to the root directory
- Confirm that the target directory exists
- Avoid circular references (cannot move to its own subdirectory)
Delete Document
Usage:
mcp_YuQueMCP_delete_document docId="文档ID"
Key points:
- The delete operation is irreversible and requires confirmation
- Verify that the document ID is correct
- Back up the content before deleting
Common Workflows
Document Creation Process
- View structure:
get_repository_toc_treeunderstand the existing organization - Determine location: choose an appropriate parent directory UUID
- Prepare content: write content in Markdown format
- Create document: call
create_document - Verify result: confirm that the document appears in the expected location
Document Organization Process
- Get the current structure:
get_repository_toc_treeView the complete directory tree - Identify documents that need to be moved: Determine the reorganization target
- Perform the move: Use
move_documentto reposition - Verify the structure: After moving, retrieve the directory tree again to confirm
Error Handling Key Points
Common Errors
Document creation failed:
- Check whether the title is unique in the target directory
- Verify that the Markdown syntax is correct
- Confirm that the parentUuid exists
Search returned no results:
- Try broader or alternative keywords
- Check spelling and terminology
- Verify document visibility/permissions
Move failed:
- Confirm that the target parentUuid exists
- Check whether the source document exists
- Verify that there are no circular references
Error Handling Patterns
try:
result = mcp_YuQueMCP_create_document(title="标题", body="内容")
except Exception as e:
# 记录错误
# 实现重试逻辑
# 提供用户反馈
Best Practices to Use
Preparation Before Operations
- Get knowledge base information: First call
get_default_repositoryto learn about the knowledge base - View the directory structure: Use
get_repository_toc_treeto plan the organization - Search verification: Search before creating to confirm the document does not exist
Content Guidelines
- Use clear, descriptive titles
- Use standard Markdown format for content
- Keep documents moderately sized (avoid overly large documents)
- Organize related documents in the same directory
Collaboration Notes
- Set appropriate visibility permissions
- Use version naming for major changes
- Coordinate with the team before moving documents
- Regularly clean up outdated content
Tool Parameter Quick Reference
| Tool | Required Parameters | Optional Parameters | Description |
|---|---|---|---|
create_document |
title |
body, parentUuid |
Create document |
get_document |
docId |
- | Read document |
update_document |
docId |
body, title |
Update document |
move_document |
docId |
parentUuid |
Move document |
delete_document |
docId |
- | Delete document |
search |
query |
type, page |
Search documents |
get_repository_toc_tree |
- | - | Get directory tree |
get_default_repository |
- | - | Get knowledge base information |
Reference Documentation
For detailed information, see:
- references/mcp-tools.md - Complete MCP tool reference
- references/troubleshooting.md - Troubleshooting guide