@rsdoctor/docs 1.1.10 → 1.2.0-beta.1

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.
@@ -141,6 +141,23 @@ RSDOCTOR=true npm run build
141
141
  2. Restart the Cursor editor
142
142
  3. Start interaction in the MCP panel
143
143
 
144
+ #### GitHub Copilot
145
+
146
+ 1. Create `.vscode/mcp.json` in your project root directory. GitHub Copilot will automatically load the MCP Server configuration.
147
+
148
+ ```json
149
+ {
150
+ "mcpServers": {
151
+ "rsdoctor": {
152
+ "command": "npx",
153
+ "args": ["-y", "@rsdoctor/mcp-server@latest"]
154
+ }
155
+ }
156
+ }
157
+ ```
158
+
159
+ 2. In the Copilot Chat view, select [Agent mode](https://code.visualstudio.com/docs/copilot/chat/chat-agent-mode#_use-agent-mode), then start interacting.
160
+
144
161
  #### Claude
145
162
 
146
163
  Add configuration in `claude_desktop_config.json`:
@@ -171,6 +188,21 @@ Add configuration in the configuration file:
171
188
  }
172
189
  ```
173
190
 
191
+ #### Trae
192
+
193
+ You can configure and add it via "Create Agent" → "MCP" → "Add" → "Manual Add":
194
+
195
+ ```json
196
+ {
197
+ "mcpServers": {
198
+ "rsdoctor": {
199
+ "command": "npx",
200
+ "args": ["-y", "@rsdoctor/mcp-server@latest"]
201
+ }
202
+ }
203
+ }
204
+ ```
205
+
174
206
  ## Configuration instructions
175
207
 
176
208
  ### Command line parameters
@@ -141,6 +141,23 @@ RSDOCTOR=true npm run build
141
141
  2. 重启 Cursor 编辑器
142
142
  3. 在 MCP 面板中开始交互
143
143
 
144
+ #### GitHub Copilot
145
+
146
+ 1. 在项目根目录创建 `.vscode/mcp.json`,GitHub Copilot 默认会自动加载 MCP Server 配置
147
+
148
+ ```json
149
+ {
150
+ "mcpServers": {
151
+ "rsdoctor": {
152
+ "command": "npx",
153
+ "args": ["-y", "@rsdoctor/mcp-server@latest"]
154
+ }
155
+ }
156
+ }
157
+ ```
158
+
159
+ 2. 在 Copilot Chat 面板中选择 [Agent 模式](https://code.visualstudio.com/docs/copilot/chat/chat-agent-mode#_use-agent-mode),然后开始交互。
160
+
144
161
  #### Claude
145
162
 
146
163
  在 `claude_desktop_config.json` 中添加配置:
@@ -171,6 +188,35 @@ RSDOCTOR=true npm run build
171
188
  }
172
189
  ```
173
190
 
191
+ #### Trae
192
+
193
+ 可在「创建智能体」- 「MCP」-「添加」-「手动添加」中配置添加:
194
+
195
+ ```json
196
+ {
197
+ "mcpServers": {
198
+ "rsdoctor": {
199
+ "command": "npx",
200
+ "args": ["-y", "@rsdoctor/mcp-server@latest"]
201
+ }
202
+ }
203
+ }
204
+ ```
205
+
206
+ 目前已在 Trae CN MCP 市场中发布,除了手动配置外,也可以通过市场搜索 「rsdoctor-mcp」进行添加并使用。
207
+
208
+ <img
209
+ src="https://assets.rspack.rs/others/assets/rsdoctor/trae-mcp.png"
210
+ alt="trae-mcp"
211
+ style={{
212
+ width: '90%',
213
+ height: 'auto',
214
+ maxHeight: '50vh',
215
+ objectFit: 'cover',
216
+ display: 'block',
217
+ }}
218
+ />
219
+
174
220
  ## 配置说明
175
221
 
176
222
  ### 命令行参数
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsdoctor/docs",
3
- "version": "1.1.10",
3
+ "version": "1.2.0-beta.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/web-infra-dev/rsdoctor",
@@ -19,8 +19,8 @@
19
19
  "registry": "https://registry.npmjs.org/"
20
20
  },
21
21
  "devDependencies": {
22
- "@rspress/plugin-algolia": "2.0.0-beta.18",
23
- "@rspress/plugin-llms": "2.0.0-beta.18",
22
+ "@rspress/plugin-algolia": "2.0.0-beta.20",
23
+ "@rspress/plugin-llms": "2.0.0-beta.20",
24
24
  "@rspress/plugin-rss": "2.0.0-beta.6",
25
25
  "@types/node": "^22.8.1",
26
26
  "@types/react": "^18.3.23",
@@ -32,10 +32,10 @@
32
32
  "rspress-plugin-font-open-sans": "^1.0.0",
33
33
  "rspress-plugin-sitemap": "^1.1.4",
34
34
  "typescript": "^5.2.2",
35
- "@rsdoctor/types": "1.1.10"
35
+ "@rsdoctor/types": "1.2.0-beta.1"
36
36
  },
37
37
  "dependencies": {
38
- "@rstack-dev/doc-ui": "1.10.6",
38
+ "@rstack-dev/doc-ui": "1.10.8",
39
39
  "react-markdown": "^9.1.0",
40
40
  "rspress": "2.0.0-beta.6"
41
41
  },