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 buildThis compiles the TypeScript files from src/ to JavaScript in dist/.
To run TypeScript compilation in watch mode (rebuilds on file changes):
npm run watchThis project uses ESLint for code linting with TypeScript support.
To run the linter:
npm run lintTo automatically fix linting issues where possible:
npm run lint:fixThe project includes GitHub Actions that automatically run linting checks on all pushes and pull requests to ensure code quality standards are maintained.