auto-prompt-mcp-server
v1.0.5
Published
MCP server that automatically adds prompts to file submissions when no user prompt is provided
Maintainers
Readme
Project Structure
auto-prompt-mcp-server/
├── src/
│ └── server.ts # Main TypeScript server file
├── dist/ # Compiled JavaScript output (generated)
│ ├── server.js
│ ├── server.d.ts
│ └── server.js.map
├── package.json # Project dependencies and scripts
├── tsconfig.json # TypeScript configuration
└── README.md # DocumentationSetup Instructions
Clone/Create the project directory:
mkdir auto-prompt-mcp-server cd auto-prompt-mcp-serverCreate the src directory and add the server file:
mkdir src # Copy the TypeScript server code to src/server.tsInstall dependencies:
npm installBuild the project:
npm run buildRun the server:
npm start
TypeScript Benefits
The TypeScript version provides:
- Type Safety: Full type checking for all MCP protocol interactions
- Better IDE Support: IntelliSense, auto-completion, and refactoring
- Compile-time Error Detection: Catch errors before runtime
- Self-documenting Code: Clear interfaces and type definitions
- Modern ES Features: Uses latest JavaScript features with transpilation support
Development Workflow
- Use
npm run devfor development with auto-reload usingtsx - Use
npm run buildto compile TypeScript to JavaScript - Use
npm startto build and run the production version - The compiled output goes to the
dist/directory
