@rushstack/mcp-server 0.1.6 → 0.1.8
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.json +24 -0
- package/CHANGELOG.md +13 -1
- package/README.md +32 -0
- package/lib/rush-doc-fragment.mock.json +18 -0
- package/lib/start.js +1 -1
- package/lib/start.js.map +1 -1
- package/lib/utilities/log.d.ts +2 -2
- package/lib/utilities/log.d.ts.map +1 -1
- package/lib/utilities/log.js +2 -3
- package/lib/utilities/log.js.map +1 -1
- package/package.json +10 -3
package/CHANGELOG.json
CHANGED
|
@@ -1,6 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rushstack/mcp-server",
|
|
3
3
|
"entries": [
|
|
4
|
+
{
|
|
5
|
+
"version": "0.1.8",
|
|
6
|
+
"tag": "@rushstack/mcp-server_v0.1.8",
|
|
7
|
+
"date": "Thu, 29 May 2025 15:10:58 GMT",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"comment": "Update the rush mcp server README.md document"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"version": "0.1.7",
|
|
18
|
+
"tag": "@rushstack/mcp-server_v0.1.7",
|
|
19
|
+
"date": "Tue, 13 May 2025 02:09:20 GMT",
|
|
20
|
+
"comments": {
|
|
21
|
+
"dependency": [
|
|
22
|
+
{
|
|
23
|
+
"comment": "Updating dependency \"@rushstack/heft\" to `0.73.6`"
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
},
|
|
4
28
|
{
|
|
5
29
|
"version": "0.1.6",
|
|
6
30
|
"tag": "@rushstack/mcp-server_v0.1.6",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
# Change Log - @rushstack/mcp-server
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Thu, 29 May 2025 15:10:58 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 0.1.8
|
|
6
|
+
Thu, 29 May 2025 15:10:58 GMT
|
|
7
|
+
|
|
8
|
+
### Patches
|
|
9
|
+
|
|
10
|
+
- Update the rush mcp server README.md document
|
|
11
|
+
|
|
12
|
+
## 0.1.7
|
|
13
|
+
Tue, 13 May 2025 02:09:20 GMT
|
|
14
|
+
|
|
15
|
+
_Version update only_
|
|
4
16
|
|
|
5
17
|
## 0.1.6
|
|
6
18
|
Wed, 07 May 2025 15:11:17 GMT
|
package/README.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# @rushstack/mcp-server
|
|
2
2
|
|
|
3
|
+
With the rapid advancement of LLMs, AI applications like Trae, Cursor, Cline, Windsurf, and others have been thriving. However, due to the large scale of monorepos and the context limitations of LLMs, it’s difficult for these models to fully understand your monorepo. This is where @rushstack/mcp-server comes in — by providing a suite of MCP tools, it enables LLMs to better comprehend your monorepo and assist you more effectively with daily development tasks in a Rush-based monorepo environment.
|
|
4
|
+
|
|
3
5
|
## Usage
|
|
4
6
|
|
|
7
|
+
1. To get the best results, copy the [.cursor](https://github.com/microsoft/rushstack/tree/main/.cursor) directory into the root of your project.
|
|
8
|
+
|
|
9
|
+
2. Configure `@rushstack/mcp-server` in your AI application
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
{
|
|
13
|
+
"mcpServers": {
|
|
14
|
+
"rush": {
|
|
15
|
+
"command": "npx",
|
|
16
|
+
"args": ["-y", "@rushstack/mcp-server", "your-project-path"]
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
3. Congratulations 🎉 You’ve completed the setup — Rush MCP is now ready to use!
|
|
23
|
+
|
|
24
|
+
## Available Tools
|
|
25
|
+
|
|
26
|
+
- `rush_docs`: Retrieves relevant documentation sections based on your queries
|
|
27
|
+
- `rush_workspace_details`: Retrieve detailed workspace information
|
|
28
|
+
- `rush_project_details`: Get detailed information about a specific project
|
|
29
|
+
- `rush_command_validator`: Validate whether commands are compliant and follow best practices
|
|
30
|
+
- `rush_migrate_project`: Migrate a project from one directory to another or into a different subspace
|
|
31
|
+
- `rush_pnpm_lock_file_conflict_resolver`: Resolve pnpm-lock.yaml conflicts
|
|
32
|
+
|
|
5
33
|
## Links
|
|
34
|
+
|
|
35
|
+
- [CHANGELOG.md](
|
|
36
|
+
https://github.com/microsoft/rushstack/blob/main/apps/rush-mcp-server/CHANGELOG.md) - Find
|
|
37
|
+
out what's new in the latest version
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"text": "---\ntitle: rush install-autoinstaller\n---\n\n```\nusage: rush install-autoinstaller [-h] --name AUTOINSTALLER_NAME\n\nUse this command to install dependencies for an autoinstaller folder.\n\nOptional arguments:\n -h, --help Show this help message and exit.\n --name AUTOINSTALLER_NAME\n The name of the autoinstaller, which must be one of\n the folders under common/autoinstallers.\n```\n\n## See also\n\n- [rush update-autoinstaller](../commands/rush_update-autoinstaller.md)\n- [rush init-autoinstaller](../commands/rush_init-autoinstaller.md)",
|
|
4
|
+
"score": 0.7231232
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
"text": "---\ntitle: rush install-autoinstaller\n---\n\n```\n用法:rush install-autoinstaller [-h] --name AUTOINSTALLER_NAME\n\n使用该指令给一个项目安装依赖。\n\n可选参数:\n -h, --help 展示帮助信息并退出\n --name AUTOINSTALLER_NAME\n 指定自动安装的包名,它必须是 common/autoinstallers\n 下的一个文件夹。\n```\n\n## See also\n\n- [rush update-autoinstaller](../commands/rush_update-autoinstaller.md)\n- [rush init-autoinstaller](../commands/rush_init-autoinstaller.md)",
|
|
8
|
+
"score": 0.7132133
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"text": "---\ntitle: rush update-autoinstaller\n---\n\n```\nusage: rush update-autoinstaller [-h] --name AUTOINSTALLER_NAME\n\nUse this command to regenerate the shrinkwrap file for an autoinstaller\nfolder.\n\nOptional arguments:\n -h, --help Show this help message and exit.\n --name AUTOINSTALLER_NAME\n The name of the autoinstaller, which must be one of\n the folders under common/autoinstallers.\n```\n\n## See also\n\n- [rush install-autoinstaller](../commands/rush_install-autoinstaller.md)\n- [rush init-autoinstaller](../commands/rush_init-autoinstaller.md)",
|
|
12
|
+
"score": 0.6632131
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"text": "---\ntitle: rush update-autoinstaller\n---\n\n```\nusage: rush update-autoinstaller [-h] --name AUTOINSTALLER_NAME\n\nUse this command to regenerate the shrinkwrap file for an autoinstaller\nfolder.\n\nOptional arguments:\n -h, --help Show this help message and exit.\n --name AUTOINSTALLER_NAME\n The name of the autoinstaller, which must be one of\n the folders under common/autoinstallers.\n```\n\n## See also\n\n- [rush install-autoinstaller](../commands/rush_install-autoinstaller.md)\n- [rush init-autoinstaller](../commands/rush_init-autoinstaller.md)",
|
|
16
|
+
"score": 0.6528328
|
|
17
|
+
}
|
|
18
|
+
]
|
package/lib/start.js
CHANGED
|
@@ -16,7 +16,7 @@ const main = async () => {
|
|
|
16
16
|
(0, log_1.log)('Rush MCP Server running on stdio');
|
|
17
17
|
};
|
|
18
18
|
main().catch((error) => {
|
|
19
|
-
(0, log_1.log)('Fatal error running server:', error);
|
|
19
|
+
(0, log_1.log)('Fatal error running server:', error instanceof Error ? error.message : error);
|
|
20
20
|
process.exit(1);
|
|
21
21
|
});
|
|
22
22
|
//# sourceMappingURL=start.js.map
|
package/lib/start.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"start.js","sourceRoot":"","sources":["../src/start.ts"],"names":[],"mappings":";AAAA,4FAA4F;AAC5F,2DAA2D;;AAE3D,wEAAiF;AAEjF,yCAAsC;AACtC,qCAAyC;AAEzC,MAAM,IAAI,GAAG,KAAK,IAAmB,EAAE;IACrC,MAAM,iBAAi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C,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IACnF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\n// See LICENSE in the project root for license information.\n\nimport { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';\n\nimport { log } from './utilities/log';\nimport { RushMCPServer } from './server';\n\nconst main = async (): Promise<void> => {\n const rushWorkspacePath: string | undefined = process.argv[2];\n if (!rushWorkspacePath) {\n throw new Error('Please provide workspace root path as the first argument');\n }\n\n const server: RushMCPServer = new RushMCPServer(rushWorkspacePath);\n const transport: StdioServerTransport = new StdioServerTransport();\n await server.connect(transport);\n\n log('Rush MCP Server running on stdio');\n};\n\nmain().catch((error) => {\n log('Fatal error running server:', error instanceof Error ? error.message : error);\n process.exit(1);\n});\n"]}
|
package/lib/utilities/log.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Terminal } from '@rushstack/terminal';
|
|
1
|
+
import { Terminal, type TerminalWriteParameters } from '@rushstack/terminal';
|
|
2
2
|
export declare const terminal: Terminal;
|
|
3
|
-
export declare function log(
|
|
3
|
+
export declare function log(...messageParts: TerminalWriteParameters): void;
|
|
4
4
|
//# sourceMappingURL=log.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../src/utilities/log.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAA2B,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../src/utilities/log.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAA2B,KAAK,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAEtG,eAAO,MAAM,QAAQ,EAAE,QAA8E,CAAC;AAEtG,wBAAgB,GAAG,CAAC,GAAG,YAAY,EAAE,uBAAuB,GAAG,IAAI,CAElE"}
|
package/lib/utilities/log.js
CHANGED
|
@@ -6,8 +6,7 @@ exports.terminal = void 0;
|
|
|
6
6
|
exports.log = log;
|
|
7
7
|
const terminal_1 = require("@rushstack/terminal");
|
|
8
8
|
exports.terminal = new terminal_1.Terminal(new terminal_1.ConsoleTerminalProvider({ verboseEnabled: true }));
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
exports.terminal.writeErrorLine(message, ...optionalParams);
|
|
9
|
+
function log(...messageParts) {
|
|
10
|
+
exports.terminal.writeErrorLine(...messageParts);
|
|
12
11
|
}
|
|
13
12
|
//# sourceMappingURL=log.js.map
|
package/lib/utilities/log.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log.js","sourceRoot":"","sources":["../../src/utilities/log.ts"],"names":[],"mappings":";AAAA,4FAA4F;AAC5F,2DAA2D;;;
|
|
1
|
+
{"version":3,"file":"log.js","sourceRoot":"","sources":["../../src/utilities/log.ts"],"names":[],"mappings":";AAAA,4FAA4F;AAC5F,2DAA2D;;;AAM3D,kBAEC;AAND,kDAAsG;AAEzF,QAAA,QAAQ,GAAa,IAAI,mBAAQ,CAAC,IAAI,kCAAuB,CAAC,EAAE,cAAc,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;AAEtG,SAAgB,GAAG,CAAC,GAAG,YAAqC;IAC1D,gBAAQ,CAAC,cAAc,CAAC,GAAG,YAAY,CAAC,CAAC;AAC3C,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\n// See LICENSE in the project root for license information.\n\nimport { Terminal, ConsoleTerminalProvider, type TerminalWriteParameters } from '@rushstack/terminal';\n\nexport const terminal: Terminal = new Terminal(new ConsoleTerminalProvider({ verboseEnabled: true }));\n\nexport function log(...messageParts: TerminalWriteParameters): void {\n terminal.writeErrorLine(...messageParts);\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rushstack/mcp-server",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "A Model Context Protocol server implementation for Rush",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"rush",
|
|
7
|
+
"modelcontextprotocol",
|
|
8
|
+
"mcp",
|
|
9
|
+
"monorepo",
|
|
10
|
+
"server"
|
|
11
|
+
],
|
|
5
12
|
"repository": {
|
|
6
13
|
"type": "git",
|
|
7
14
|
"url": "https://github.com/microsoft/rushstack.git",
|
|
@@ -21,14 +28,14 @@
|
|
|
21
28
|
"zod": "~3.24.3",
|
|
22
29
|
"@rushstack/node-core-library": "5.13.1",
|
|
23
30
|
"@rushstack/terminal": "0.15.3",
|
|
24
|
-
"@rushstack/rush-sdk": "5.153.
|
|
31
|
+
"@rushstack/rush-sdk": "5.153.2",
|
|
25
32
|
"@rushstack/ts-command-line": "5.0.1"
|
|
26
33
|
},
|
|
27
34
|
"devDependencies": {
|
|
28
35
|
"typescript": "~5.8.2",
|
|
29
36
|
"@types/node": "20.17.19",
|
|
30
37
|
"local-node-rig": "1.0.0",
|
|
31
|
-
"@rushstack/heft": "0.73.
|
|
38
|
+
"@rushstack/heft": "0.73.6"
|
|
32
39
|
},
|
|
33
40
|
"scripts": {
|
|
34
41
|
"build": "heft build --clean",
|