ordinary-fdev/my-mcp-server
3.1
If you are the rightful owner of my-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The Model Context Protocol (MCP) server provides standardized prompt templates for AI-driven development workflows, ensuring consistency and efficiency.
MCP Prompt Template Server
A Model Context Protocol (MCP) server that provides standardized prompt templates for consistent AI-driven development workflows. This server exposes reusable prompt templates with variable substitution to ensure consistency across AI development tasks.
Features
- Prompt Templates: Reusable templates with variable substitution
- REST API: HTTP endpoints for integration with any application
- MCP Protocol: Native support for MCP clients like Claude Desktop, VS Code, etc.
- Type Safety: Full TypeScript implementation with validation
- Extensible: Easy to add new templates and customize existing ones
Quick Start
Installation
npm install
Build
npm run build
Use in VS Code Chat
- Add to your workspace
.vscode/mcp.json(or user configuration):
{
"servers": {
"promptTemplates": {
"type": "stdio",
"command": "node",
"args": ["C:\\Users\\prat\\Dev\\2025\\mcp\\build\\index.js"]
}
}
}
- Open VS Code Chat (
Ctrl+Alt+I) - Use tools:
#listPrompts,#renderPrompt code-generation entityName="User"
See MCP_SETUP.md for complete setup instructions.
Run as MCP Server (STDIO)
npm start
Run as HTTP Server
npm start -- --http --port=3000
API Endpoints
List Prompt Templates
curl http://localhost:3000/api/prompts
Get Specific Template
curl http://localhost:3000/api/prompts/code-generation
Render Template with Variables
curl -X POST http://localhost:3000/api/render ^
-H "Content-Type: application/json" ^
-d "{\"id\":\"code-generation\",\"variables\":{\"language\":\"TypeScript\",\"functionality\":\"REST API endpoint\",\"requirements\":[\"Express framework\",\"Error handling\",\"Input validation\"]}}"
Available Templates
- code-generation - Generate code based on requirements and language
- code-review - Review code for quality, security, and best practices
- api-documentation - Generate comprehensive API documentation
MCP Integration
With Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"prompt-server": {
"command": "node",
"args": ["C:\\path\\to\\mcp\\build\\index.js"]
}
}
}
With VS Code
Create .vscode/mcp.json:
{
"servers": {
"prompt-server": {
"type": "stdio",
"command": "node",
"args": ["C:\\path\\to\\mcp\\build\\index.js"]
}
}
}
Template Format
Templates use simple variable substitution:
{
"id": "example",
"name": "Example Template",
"description": "An example prompt template",
"template": "Generate {{language}} code for {{functionality}}. Requirements: {{#each requirements}}- {{this}}{{/each}}",
"variables": [
{
"name": "language",
"description": "Programming language",
"required": true,
"type": "string"
}
],
"category": "development",
"tags": ["coding", "example"]
}
Development
Add New Templates
- Edit
data/prompts.json - Add your template following the schema
- Restart the server
Run Tests
npm test
Lint Code
npm run lint
Next Steps
- Add prompt versioning
- Create web UI for template management
- Add more template categories (documentation, testing, deployment)
- Implement template sharing/import functionality