What is Nestjs Api To Postman Collection?
Nestjs Api To Postman Collection is a Model Context Protocol (MCP) server that automatically converts NestJS controllers into importable Postman API collections. It eliminates manual collection creation or Swagger clutter by analyzing controller decorators and generating complete Postman JSON.
How to use Nestjs Api To Postman Collection?
Install dependencies, build the project, then configure your MCP‑compatible AI assistant (e.g., Claude Desktop, VS Code tools) with the command and path to dist/main.js. Alternatively, run the CLI directly: node dist/main.js generate <project-path> -o output.json. Example prompt: "Generate a Postman collection for my user.controller.ts file."
Key features of Nestjs Api To Postman Collection
- Automatically generates Postman collections from NestJS controllers
- Detects request/response types and creates meaningful examples
- Identifies authentication guards and adds auth configurations
- Captures routes, methods, request bodies, and query parameters
- Works without modifying your NestJS codebase
- Integrates with any MCP‑compatible AI assistant
Use cases of Nestjs Api To Postman Collection
- Quickly generate Postman collections for existing NestJS APIs
- Keep collections in sync as endpoints change
- Avoid cluttering code with Swagger/OpenAPI decorators
- Automate API documentation for testing and team sharing
- Streamline onboarding by providing ready‑to‑use collections
评论