yuque-mcp-plus 0.2.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/README.en.md +111 -0
- package/README.md +112 -1
- package/package.json +2 -2
- package/src/server.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.2 - 2026-03-04
|
|
4
|
+
|
|
5
|
+
Changed:
|
|
6
|
+
|
|
7
|
+
- added switchable `node` and `npx` setup examples for Codex, Claude Code, Qoder, OpenCode, and Trae
|
|
8
|
+
|
|
9
|
+
## 0.2.1 - 2026-03-04
|
|
10
|
+
|
|
11
|
+
Changed:
|
|
12
|
+
|
|
13
|
+
- simplified the Chinese README title copy to "语雀 MCP 服务"
|
|
14
|
+
- added `npx yuque-mcp-plus` usage to Chinese and English docs
|
|
15
|
+
- updated package metadata description for npm usage
|
|
16
|
+
|
|
3
17
|
## 0.2.0 - 2026-03-04
|
|
4
18
|
|
|
5
19
|
Added:
|
package/README.en.md
CHANGED
|
@@ -58,6 +58,18 @@ Resolution order:
|
|
|
58
58
|
|
|
59
59
|
## Run
|
|
60
60
|
|
|
61
|
+
Run directly from npm:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
npx yuque-mcp-plus
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
With environment variables:
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
YUQUE_TOKEN="your-token" npx yuque-mcp-plus
|
|
71
|
+
```
|
|
72
|
+
|
|
61
73
|
```bash
|
|
62
74
|
node ./src/index.js
|
|
63
75
|
```
|
|
@@ -84,6 +96,10 @@ Release workflow:
|
|
|
84
96
|
|
|
85
97
|
## Codex MCP Config Example
|
|
86
98
|
|
|
99
|
+
If you want to switch between the local source tree and the published npm package, only `command + args` need to change.
|
|
100
|
+
|
|
101
|
+
Source mode:
|
|
102
|
+
|
|
87
103
|
```toml
|
|
88
104
|
[mcp_servers.yuque]
|
|
89
105
|
command = "node"
|
|
@@ -93,6 +109,17 @@ args = [ "/Users/program/code/code_mcp/yuque-mcp-plus/src/index.js" ]
|
|
|
93
109
|
YUQUE_TOKEN = "your-token"
|
|
94
110
|
```
|
|
95
111
|
|
|
112
|
+
npm mode:
|
|
113
|
+
|
|
114
|
+
```toml
|
|
115
|
+
[mcp_servers.yuque]
|
|
116
|
+
command = "npx"
|
|
117
|
+
args = [ "-y", "yuque-mcp-plus" ]
|
|
118
|
+
|
|
119
|
+
[mcp_servers.yuque.env]
|
|
120
|
+
YUQUE_TOKEN = "your-token"
|
|
121
|
+
```
|
|
122
|
+
|
|
96
123
|
## Other Client Integrations
|
|
97
124
|
|
|
98
125
|
The examples below are based on the client docs available on 2026-03-04. UI labels and config file locations may change, but the local `stdio` startup model is the same.
|
|
@@ -101,14 +128,23 @@ The examples below are based on the client docs available on 2026-03-04. UI labe
|
|
|
101
128
|
|
|
102
129
|
The current official docs recommend registering a local `stdio` MCP server with a command like this:
|
|
103
130
|
|
|
131
|
+
Source mode:
|
|
132
|
+
|
|
104
133
|
```bash
|
|
105
134
|
claude mcp add --transport stdio yuque -- node /Users/program/code/code_mcp/yuque-mcp-plus/src/index.js
|
|
106
135
|
```
|
|
107
136
|
|
|
137
|
+
npm mode:
|
|
138
|
+
|
|
139
|
+
```bash
|
|
140
|
+
claude mcp add --transport stdio yuque -- npx -y yuque-mcp-plus
|
|
141
|
+
```
|
|
142
|
+
|
|
108
143
|
With environment variables:
|
|
109
144
|
|
|
110
145
|
```bash
|
|
111
146
|
claude mcp add --transport stdio --env YUQUE_TOKEN=your-token yuque -- node /Users/program/code/code_mcp/yuque-mcp-plus/src/index.js
|
|
147
|
+
claude mcp add --transport stdio --env YUQUE_TOKEN=your-token yuque -- npx -y yuque-mcp-plus
|
|
112
148
|
```
|
|
113
149
|
|
|
114
150
|
Useful management commands:
|
|
@@ -120,6 +156,8 @@ claude mcp get yuque
|
|
|
120
156
|
|
|
121
157
|
If you prefer project-shared config, you can also place this in your project root `.mcp.json`:
|
|
122
158
|
|
|
159
|
+
Source mode:
|
|
160
|
+
|
|
123
161
|
```json
|
|
124
162
|
{
|
|
125
163
|
"mcpServers": {
|
|
@@ -136,6 +174,25 @@ If you prefer project-shared config, you can also place this in your project roo
|
|
|
136
174
|
}
|
|
137
175
|
```
|
|
138
176
|
|
|
177
|
+
npm mode:
|
|
178
|
+
|
|
179
|
+
```json
|
|
180
|
+
{
|
|
181
|
+
"mcpServers": {
|
|
182
|
+
"yuque": {
|
|
183
|
+
"command": "npx",
|
|
184
|
+
"args": [
|
|
185
|
+
"-y",
|
|
186
|
+
"yuque-mcp-plus"
|
|
187
|
+
],
|
|
188
|
+
"env": {
|
|
189
|
+
"YUQUE_TOKEN": "${YUQUE_TOKEN}"
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
```
|
|
195
|
+
|
|
139
196
|
### Qoder
|
|
140
197
|
|
|
141
198
|
Qoder currently supports adding MCP servers directly from the settings UI.
|
|
@@ -149,6 +206,8 @@ Path:
|
|
|
149
206
|
|
|
150
207
|
Use this project with:
|
|
151
208
|
|
|
209
|
+
Source mode:
|
|
210
|
+
|
|
152
211
|
```json
|
|
153
212
|
{
|
|
154
213
|
"mcpServers": {
|
|
@@ -165,6 +224,25 @@ Use this project with:
|
|
|
165
224
|
}
|
|
166
225
|
```
|
|
167
226
|
|
|
227
|
+
npm mode:
|
|
228
|
+
|
|
229
|
+
```json
|
|
230
|
+
{
|
|
231
|
+
"mcpServers": {
|
|
232
|
+
"yuque": {
|
|
233
|
+
"command": "npx",
|
|
234
|
+
"args": [
|
|
235
|
+
"-y",
|
|
236
|
+
"yuque-mcp-plus"
|
|
237
|
+
],
|
|
238
|
+
"env": {
|
|
239
|
+
"YUQUE_TOKEN": "your-token"
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
```
|
|
245
|
+
|
|
168
246
|
After saving, a successful connection icon should appear. Use Qoder in `Agent mode` so it can invoke MCP tools.
|
|
169
247
|
|
|
170
248
|
### OpenCode
|
|
@@ -173,6 +251,8 @@ OpenCode currently configures MCP in `opencode.jsonc`. Local MCP servers belong
|
|
|
173
251
|
|
|
174
252
|
Example:
|
|
175
253
|
|
|
254
|
+
Source mode:
|
|
255
|
+
|
|
176
256
|
```jsonc
|
|
177
257
|
{
|
|
178
258
|
"$schema": "https://opencode.ai/config.json",
|
|
@@ -192,6 +272,28 @@ Example:
|
|
|
192
272
|
}
|
|
193
273
|
```
|
|
194
274
|
|
|
275
|
+
npm mode:
|
|
276
|
+
|
|
277
|
+
```jsonc
|
|
278
|
+
{
|
|
279
|
+
"$schema": "https://opencode.ai/config.json",
|
|
280
|
+
"mcp": {
|
|
281
|
+
"yuque": {
|
|
282
|
+
"type": "local",
|
|
283
|
+
"command": [
|
|
284
|
+
"npx",
|
|
285
|
+
"-y",
|
|
286
|
+
"yuque-mcp-plus"
|
|
287
|
+
],
|
|
288
|
+
"enabled": true,
|
|
289
|
+
"environment": {
|
|
290
|
+
"YUQUE_TOKEN": "your-token"
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
```
|
|
296
|
+
|
|
195
297
|
In prompts, you can refer to it explicitly, for example:
|
|
196
298
|
|
|
197
299
|
```text
|
|
@@ -211,11 +313,20 @@ Typical flow:
|
|
|
211
313
|
|
|
212
314
|
Recommended values:
|
|
213
315
|
|
|
316
|
+
Source mode:
|
|
317
|
+
|
|
214
318
|
- Name: `yuque`
|
|
215
319
|
- Command: `node`
|
|
216
320
|
- Args: `/Users/program/code/code_mcp/yuque-mcp-plus/src/index.js`
|
|
217
321
|
- Env: `YUQUE_TOKEN=your-token`
|
|
218
322
|
|
|
323
|
+
npm mode:
|
|
324
|
+
|
|
325
|
+
- Name: `yuque`
|
|
326
|
+
- Command: `npx`
|
|
327
|
+
- Args: `-y yuque-mcp-plus`
|
|
328
|
+
- Env: `YUQUE_TOKEN=your-token`
|
|
329
|
+
|
|
219
330
|
Notes:
|
|
220
331
|
|
|
221
332
|
- The exact entry point and field names may vary by Trae version
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# yuque-mcp-plus
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
语雀 MCP 服务。
|
|
4
4
|
|
|
5
5
|
它在现有 `yuque-mcp-server` 的基础上补了几类关键能力:
|
|
6
6
|
|
|
@@ -67,6 +67,18 @@
|
|
|
67
67
|
|
|
68
68
|
## 运行方式
|
|
69
69
|
|
|
70
|
+
通过 npm 直接运行:
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
npx yuque-mcp-plus
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
如果要带环境变量:
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
YUQUE_TOKEN="your-token" npx yuque-mcp-plus
|
|
80
|
+
```
|
|
81
|
+
|
|
70
82
|
直接启动:
|
|
71
83
|
|
|
72
84
|
```bash
|
|
@@ -95,6 +107,10 @@ npm test
|
|
|
95
107
|
|
|
96
108
|
## Codex MCP 配置示例
|
|
97
109
|
|
|
110
|
+
如果你想在本地源码和 npm 已发布包之间切换,可以直接替换 `command + args`。
|
|
111
|
+
|
|
112
|
+
源码模式:
|
|
113
|
+
|
|
98
114
|
```toml
|
|
99
115
|
[mcp_servers.yuque]
|
|
100
116
|
command = "node"
|
|
@@ -104,6 +120,17 @@ args = [ "/Users/program/code/code_mcp/yuque-mcp-plus/src/index.js" ]
|
|
|
104
120
|
YUQUE_TOKEN = "your-token"
|
|
105
121
|
```
|
|
106
122
|
|
|
123
|
+
npm 模式:
|
|
124
|
+
|
|
125
|
+
```toml
|
|
126
|
+
[mcp_servers.yuque]
|
|
127
|
+
command = "npx"
|
|
128
|
+
args = [ "-y", "yuque-mcp-plus" ]
|
|
129
|
+
|
|
130
|
+
[mcp_servers.yuque.env]
|
|
131
|
+
YUQUE_TOKEN = "your-token"
|
|
132
|
+
```
|
|
133
|
+
|
|
107
134
|
## 其他客户端接入
|
|
108
135
|
|
|
109
136
|
下面这些示例基于 2026-03-04 当天可查到的客户端文档整理。不同版本的 UI 或配置文件位置可能会变,但本地 `stdio` 启动方式基本一致。
|
|
@@ -112,14 +139,23 @@ YUQUE_TOKEN = "your-token"
|
|
|
112
139
|
|
|
113
140
|
官方文档当前推荐直接用命令注册本地 `stdio` MCP:
|
|
114
141
|
|
|
142
|
+
源码模式:
|
|
143
|
+
|
|
115
144
|
```bash
|
|
116
145
|
claude mcp add --transport stdio yuque -- node /Users/program/code/code_mcp/yuque-mcp-plus/src/index.js
|
|
117
146
|
```
|
|
118
147
|
|
|
148
|
+
npm 模式:
|
|
149
|
+
|
|
150
|
+
```bash
|
|
151
|
+
claude mcp add --transport stdio yuque -- npx -y yuque-mcp-plus
|
|
152
|
+
```
|
|
153
|
+
|
|
119
154
|
如果要带环境变量:
|
|
120
155
|
|
|
121
156
|
```bash
|
|
122
157
|
claude mcp add --transport stdio --env YUQUE_TOKEN=your-token yuque -- node /Users/program/code/code_mcp/yuque-mcp-plus/src/index.js
|
|
158
|
+
claude mcp add --transport stdio --env YUQUE_TOKEN=your-token yuque -- npx -y yuque-mcp-plus
|
|
123
159
|
```
|
|
124
160
|
|
|
125
161
|
常用管理命令:
|
|
@@ -131,6 +167,8 @@ claude mcp get yuque
|
|
|
131
167
|
|
|
132
168
|
如果你使用项目共享配置,也可以把它写进项目根目录的 `.mcp.json`:
|
|
133
169
|
|
|
170
|
+
源码模式:
|
|
171
|
+
|
|
134
172
|
```json
|
|
135
173
|
{
|
|
136
174
|
"mcpServers": {
|
|
@@ -147,6 +185,25 @@ claude mcp get yuque
|
|
|
147
185
|
}
|
|
148
186
|
```
|
|
149
187
|
|
|
188
|
+
npm 模式:
|
|
189
|
+
|
|
190
|
+
```json
|
|
191
|
+
{
|
|
192
|
+
"mcpServers": {
|
|
193
|
+
"yuque": {
|
|
194
|
+
"command": "npx",
|
|
195
|
+
"args": [
|
|
196
|
+
"-y",
|
|
197
|
+
"yuque-mcp-plus"
|
|
198
|
+
],
|
|
199
|
+
"env": {
|
|
200
|
+
"YUQUE_TOKEN": "${YUQUE_TOKEN}"
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
```
|
|
206
|
+
|
|
150
207
|
### Qoder
|
|
151
208
|
|
|
152
209
|
Qoder 当前支持在设置页里直接添加 MCP。
|
|
@@ -160,6 +217,8 @@ Qoder 当前支持在设置页里直接添加 MCP。
|
|
|
160
217
|
|
|
161
218
|
本项目可直接使用:
|
|
162
219
|
|
|
220
|
+
源码模式:
|
|
221
|
+
|
|
163
222
|
```json
|
|
164
223
|
{
|
|
165
224
|
"mcpServers": {
|
|
@@ -176,6 +235,25 @@ Qoder 当前支持在设置页里直接添加 MCP。
|
|
|
176
235
|
}
|
|
177
236
|
```
|
|
178
237
|
|
|
238
|
+
npm 模式:
|
|
239
|
+
|
|
240
|
+
```json
|
|
241
|
+
{
|
|
242
|
+
"mcpServers": {
|
|
243
|
+
"yuque": {
|
|
244
|
+
"command": "npx",
|
|
245
|
+
"args": [
|
|
246
|
+
"-y",
|
|
247
|
+
"yuque-mcp-plus"
|
|
248
|
+
],
|
|
249
|
+
"env": {
|
|
250
|
+
"YUQUE_TOKEN": "your-token"
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
```
|
|
256
|
+
|
|
179
257
|
保存后如果能看到连接图标,说明服务已成功连上。使用时要切到 `Agent mode`,这样 Qoder 才会调用 MCP 工具。
|
|
180
258
|
|
|
181
259
|
### OpenCode
|
|
@@ -184,6 +262,8 @@ OpenCode 当前在 `opencode.jsonc` 里配置 MCP。本地 MCP 要放在 `mcp`
|
|
|
184
262
|
|
|
185
263
|
示例:
|
|
186
264
|
|
|
265
|
+
源码模式:
|
|
266
|
+
|
|
187
267
|
```jsonc
|
|
188
268
|
{
|
|
189
269
|
"$schema": "https://opencode.ai/config.json",
|
|
@@ -203,6 +283,28 @@ OpenCode 当前在 `opencode.jsonc` 里配置 MCP。本地 MCP 要放在 `mcp`
|
|
|
203
283
|
}
|
|
204
284
|
```
|
|
205
285
|
|
|
286
|
+
npm 模式:
|
|
287
|
+
|
|
288
|
+
```jsonc
|
|
289
|
+
{
|
|
290
|
+
"$schema": "https://opencode.ai/config.json",
|
|
291
|
+
"mcp": {
|
|
292
|
+
"yuque": {
|
|
293
|
+
"type": "local",
|
|
294
|
+
"command": [
|
|
295
|
+
"npx",
|
|
296
|
+
"-y",
|
|
297
|
+
"yuque-mcp-plus"
|
|
298
|
+
],
|
|
299
|
+
"enabled": true,
|
|
300
|
+
"environment": {
|
|
301
|
+
"YUQUE_TOKEN": "your-token"
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
```
|
|
307
|
+
|
|
206
308
|
使用时可以在提示词里直接点名,例如:
|
|
207
309
|
|
|
208
310
|
```text
|
|
@@ -222,11 +324,20 @@ Trae 已经支持 MCP,但我当前没查到和 Qoder/OpenCode 一样完整公
|
|
|
222
324
|
|
|
223
325
|
建议填写:
|
|
224
326
|
|
|
327
|
+
源码模式:
|
|
328
|
+
|
|
225
329
|
- Name: `yuque`
|
|
226
330
|
- Command: `node`
|
|
227
331
|
- Args: `/Users/program/code/code_mcp/yuque-mcp-plus/src/index.js`
|
|
228
332
|
- Env: `YUQUE_TOKEN=your-token`
|
|
229
333
|
|
|
334
|
+
npm 模式:
|
|
335
|
+
|
|
336
|
+
- Name: `yuque`
|
|
337
|
+
- Command: `npx`
|
|
338
|
+
- Args: `-y yuque-mcp-plus`
|
|
339
|
+
- Env: `YUQUE_TOKEN=your-token`
|
|
340
|
+
|
|
230
341
|
说明:
|
|
231
342
|
|
|
232
343
|
- Trae 的具体入口位置和字段名可能会随版本变化
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yuque-mcp-plus",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.2.2",
|
|
4
|
+
"description": "Yuque MCP server with TOC, parentUuid, move, and multipart support.",
|
|
5
5
|
"author": "michaeljou <864738795@qq.com>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|