This provides some common code for creating a Model Context Protocol (MCP) server in Node.js.
-
Clone the repository:
git clone <repository-url> cd mcp-boilerplate-node
-
Install dependencies:
npm install
To build the TypeScript project:
npm run build
This compiles the TypeScript files from src/
to JavaScript in dist/
.
To run TypeScript compilation in watch mode (rebuilds on file changes):
npm run watch
This project uses ESLint for code linting with TypeScript support.
To run the linter:
npm run lint
To automatically fix linting issues where possible:
npm run lint:fix
The project includes GitHub Actions that automatically run linting checks on all pushes and pull requests to ensure code quality standards are maintained.