yuque-mcp-server AGENTS.md

yuque-mcp-server AGENTS.md is an instructions file for Codex, OpenCode from yuque/yuque-mcp-server. It costs 714 tokens per session, scanned A, original, MIT.

A repository guide for yuque-mcp, a Node.js and TypeScript server that exposes the Yuque service through MCP, a standard way for AI clients to discover and call tools.

In plain words
What is it for?
Use it when changing Yuque tools, authentication, transport, documentation, project structure, or release configuration.
Why use it?
It identifies the authoritative documentation, required checks, and updates needed when the server's tools, API wrapper, or architecture changes.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/yuque/yuque-mcp-server/agents-md
Clone the repo
git clone --depth 1 https://github.com/yuque/yuque-mcp-server

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for yuque-mcp-server AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/yuque/yuque-mcp-server/agents-md.svg)](https://agentmods.dev/instructions/yuque/yuque-mcp-server/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/yuque/yuque-mcp-server/agents-md"><img src="https://agentmods.dev/badge/instructions/yuque/yuque-mcp-server/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 714 This file is loaded in full into every session.
When invoked 714 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00714 $0.00714
Opus 5 $0.00357 $0.00357
Sonnet 5 $0.00143 $0.00143
Haiku 4.5 $0.00071 $0.00071

Measured 3d ago against content hash 7e87efed4cfb, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

yuque-mcp-server AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 52 lines

What it actually says

AGENTS.md

本文件提供当前仓库的协作约定。更通用的个人偏好仍遵循上层或全局 AGENTS.md

项目定位

这是 yuque-mcp,一个把语雀 API 暴露为 MCP tools 的 Node.js / TypeScript 项目。MCP client 通过 tools/list 发现能力,通过 tools/call 调用语雀相关操作。

项目文档入口

维护或理解项目边界时,优先阅读 docs/ 下的文档:

维护要求

  • 改 MCP tool surface 时,同步更新 docs/capability-scope.mdtests/mcp/tool-registry-contract.test.ts
  • 改 CLI、transport、认证、host/base URL 解析或发布配置时,同步更新 docs/technical-stack.md
  • 改 server 分层、tool 注册、service API wrapper 或文档读写路径时,同步更新 docs/core-architecture.md
  • 当前代码和 contract tests 是 authoritative source(权威来源);文档要跟随真实实现更新。

环境自举

  • Fresh clone 后先执行 npm ci,再跑任何命令。
  • 任何命令报 command not found,先跑 npm ci 再重试。
  • Node 版本以 .nvmrc 为准(CI 会覆盖 18/20/22/24)。

常用命令

npm run check       # 质量门:lint + format:check + typecheck + test + build
npm run lint        # 单跑 ESLint(src 和 tests)
npm run typecheck   # 单跑 tsc --noEmit
npm test            # 单跑全量测试,单次运行(watch 用 npm run test:watch)
  • 完成的定义:npm run check 退出码为 0。提交前必须跑通,CI 跑的是同一条命令。
  • 迭代期间跑单个测试文件更快:npx vitest run tests/tools/doc.test.ts
  • CI 额外跑两个 dist smoke tests(smoke:distsmoke:pack-install)。
  • Real API smoke tests 默认跳过,开启所需的环境变量见 docs/technical-stack.md

标准工作流

执行常见变更前,先读 docs/workflows/ 下对应的步骤文档:

  • 新增 MCP tool: docs/workflows/add-tool.md(可先跑 npm run new:tool -- <domain> <yuque_tool_name> 生成骨架)
  • 修改现有 tool 参数或行为: docs/workflows/modify-tool.md
  • 修复 bug: docs/workflows/fix-bug.md
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 52 lines · 714 tokens per session scan A 7e87efed4cfb

Subscribe to this mod's changes

yuque-mcp-server AGENTS.md is an instructions file published in the GitHub repository yuque/yuque-mcp-server (232 stars, last pushed 1mo ago), licensed MIT. It adds 714 tokens to every session, about $0.0036 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,345 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

next.js AGENTS.md

Instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens