Rush Architecture is a monorepo template for building and managing Model Context Protocol (MCP) servers and related packages. This project uses Microsoft Rush for monorepo management, providing a structured approach to developing, testing, and deploying MCP servers.
- Rush - Monorepo management
- Node.js - JavaScript runtime
- TypeScript - Programming language
- Rollup - Module bundler
- Vitest - Testing framework
- Node.js (>=18.20.3 <19.0.0 || >=20.14.0 <21.0.0)
You can directly use the NPM MCP Server without cloning this repository:
npx @coze-arch/npm-mcp-server@latest serve
This will start the MCP server on port 3000 by default. You can access it at http://localhost:3000/sse
.
To configure this MCP server in Cursor:
- Open Cursor IDE
- Go to Settings (
Ctrl+,
orCmd+,
) - Search for "MCP" in the settings search bar
- Under "Model Context Protocol", add a new MCP server with the following URL:
http://localhost:3000/sse
- Save your settings and restart Cursor
If you want to contribute or develop with this monorepo:
- Install Rush globally (if not already installed)
npm install -g @microsoft/rush
- Clone the repository
git clone https://github.com/coze-dev/rush-arch.git
- Update and install dependencies
rush update
- Build all projects
rush build
The repository includes an MCP server for npm. You can run it in two modes:
Using npx:
npx @coze-arch/npm-mcp-server@latest serve
# Access the server at http://localhost:3000/sse
Or if developing locally:
cd mcp/npm
npm run serve
Using npx:
npx @coze-arch/npm-mcp-server@latest start
Or if developing locally:
cd mcp/npm
npm run start
Run tests for all projects:
rush test
For test coverage:
rush test:cov
- Basic monorepo setup with Rush
- NPM MCP server implementation
- Additional MCP server implementations
- Comprehensive documentation
- CI/CD integration
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/amazing-feature
) - Commit your Changes (
git commit -m 'Add some amazing feature'
) - Push to the Branch (
git push origin feature/amazing-feature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
file for more information.