Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| YUQUE_COOKIE | Yes | 语雀 Cookie(单个 _yuque_session 的值或完整的 Cookie 字符串)。可以是仅 _yuque_session 的值,也可以是完整的 Cookie 字符串(如:lang=zh-cn; _yuque_session=xxx; yuque_ctoken=xxx; current_theme=default) | |
| YUQUE_BASE_URL | No | 语雀基础 URL。企业私有部署时需要设置,公有云用户可以不设置。 | https://www.yuque.com |
| YUQUE_NAMESPACE | No | 默认知识库命名空间。格式为 username/repo,支持中文(如:username/repo 或 用户名/知识库名)。设置后可以直接通过 slug 获取文档,无需每次指定命名空间。 |
Schema
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get-yuque-doc | 从语雀 URL 或命名空间+slug 获取文档的详细信息。 支持的输入格式:
返回的信息包括:
|
| get-yuque-toc | 获取语雀知识库的完整目录结构(TOC)。 可以查看知识库中所有文档的层级结构、标题和 slug。 |
| search-yuque-docs | 在指定的知识库中搜索文档。 会在文档标题和描述中进行关键词匹配。 |
| list-yuque-docs | 列出指定知识库中的所有文档。 返回文档列表,包括标题、slug、更新时间等基本信息。 |