A Model Context Protocol (MCP) server that enables interaction with NestJS REPL from AI assistants.
- Run commands in NestJS REPL interactively
- Persistent REPL sessions per project
- Clean output formatting
- Node.js 16+
- NestJS project with REPL configured
import { repl } from '@nestjs/core';
import { AppModule } from './src/app.module';
async function bootstrap() {
await repl(AppModule);
}
bootstrap();{
"scripts": {
"start:repl": "nest start --entryFile repl"
}
}npx github:kostnerek/nestjs-repl-mcpnpm install
npm run build
npm startAdd to your mcp config file
{
"servers": {
"nestjs-repl": {
"command": "npx",
"args": [
"-y",
"github:kostnerek/nestjs-repl-mcp"
]
}
}
}Or for local development:
{
"servers": {
"nestjs-repl": {
"command": "node",
"args": [
"/absolute/path/to/mcp/build/client.js"
]
}
}
}Execute a command in a NestJS REPL.
Parameters:
projectPath: Absolute path to the NestJS projectcommand: Command to execute in the REPL
Example commands:
get(AppService)await get(AppService).getHello()debug()methods
- Node.js 16+
- NestJS projects with
start:replscript configured
ISC