Set up and build your new MCP server
mainOnce the scaffolding is complete, follow these steps to prepare your server for development or use:
- Navigate to the directory:
cd <your-server-directory> - Install dependencies:
npm install - Build the project: Use
npm run buildfor a one-time compilation, ornpm run watchto run the TypeScript compiler in watch mode for continuous development. - (Optional) Global link: Use
npm linkto make your server binary available globally on your system.
cd my-server
npm install
npm run build