Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
YUQUE_COOKIENoDirectly pass the Yuque Cookie. Highest priority and works cross-platform as a fallback.
YUQUE_BASE_URLNoBase URL for Yuque. Change this for private deployments.https://www.yuque.com
YUQUE_TIMEOUT_MSNoTimeout for a single request in milliseconds.20000
YUQUE_ALLOW_WRITENoSet to '1' to enable document creation and updates. Write access is disabled by default. Can also be enabled by appending '--allow-write' to args.closed
YUQUE_COOKIE_FILENoRead the Yuque Cookie from a file.
YUQUE_MAX_DOC_CHARSNoMaximum number of characters returned for a single document.200000
YUQUE_USER_DATA_DIRNoYuque desktop profile directory containing 'Local State'. Auto-detected by default.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

通过语雀桌面端已登录的会话访问语雀(无需 API Token / 会员)。先用 yuque_list_books 找到 book_id,再用 yuque_list_docs / yuque_get_doc 阅读内容。

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
yuque_whoamiA

查看当前登录的语雀账号、会员状态、知识库数量,并验证登录态是否有效。

yuque_list_booksA

列出当前账号可见的全部知识库(含 id、名称、文档数、slug)。返回的 id 就是其他工具需要的 book_id。

yuque_list_docsB

列出某个知识库(book_id)里的文档,返回文档 id、标题、slug、链接和更新时间。

yuque_get_docB

读取一篇语雀文档的 Markdown 正文与元信息。doc 可以是文档 slug 或文档 id;也可以直接传语雀文档链接。

yuque_get_tocA

读取知识库的目录树(标题层级、文档 id、slug),便于按结构浏览。

yuque_searchB

全文搜索文档或知识库(复用语雀站内搜索索引)。

yuque_list_recentB

列出当前账号最近更新(或最近阅读)的文档。

yuque_create_docA

在指定知识库中新建一篇 Markdown 文档。默认禁用,需 YUQUE_ALLOW_WRITE=1。

yuque_update_docA

更新已有文档的标题或 Markdown 正文。默认禁用,需 YUQUE_ALLOW_WRITE=1。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.6/5.0

Scored across 9 tools

Disambiguation4/5

Each tool has a clearly distinct purpose: identity check, book enumeration, doc enumeration, single-doc read, TOC structure, full-text search, recency listing, and two write operations. The only mild overlap is between yuque_get_doc (reads one doc) and yuque_get_toc (reads a book's structure), plus yuque_list_recent vs yuque_search, but the descriptions make the boundaries clear.

Naming Consistency5/5

All nine tools follow a strictly consistent yuque_verb_noun pattern in snake_case (whoami is the sole noun-only name but reads naturally as an identity verb). Verb choices (list/get/search/create/update) are predictable and reused coherently across resources.

Tool Count5/5

Nine tools is well-scoped for a Yuque read-first client: enough to cover discovery, navigation, retrieval, and editing without redundancy. Every tool earns its place and no trivial or filler tool exists.

Completeness3/5

Read coverage is strong (books, docs, TOC, search, recent, whoami) and write coverage includes create and update. However there is no delete_doc, no document move/rename, and no book or group management, leaving the lifecycle incomplete for anything beyond authoring and editing.

Maintenance

ActivityNo data
ResponsivenessNo recent community issues