Skip to main content
Glama

MCP Prompts Server

# MCP Prompts Server v3.0.8 - Complete Changes Summary ## 🎉 Major Release Overview This release transforms the MCP Prompts Server from a basic HTTP server into a complete MCP (Model Context Protocol) server with full AI assistant integration capabilities. ## 🏗️ Architecture Transformation ### Before vs After ```mermaid graph LR subgraph "Before v3.0.7" HTTP_ONLY[HTTP Server Only] BASIC[Basic REST API] NO_MCP[No MCP Support] end subgraph "After v3.0.8" DUAL[Dual Mode Server] MCP_FULL[Full MCP Support] CURSOR[Cursor Integration] TEMPLATES[5 Pre-loaded Templates] end HTTP_ONLY --> DUAL BASIC --> MCP_FULL NO_MCP --> CURSOR NO_MCP --> TEMPLATES ``` ## 📊 Key Changes Summary ### 1. New Files Added ```mermaid graph TB subgraph "New Core Files" MCP_SERVER[src/mcp-server.ts<br/>MCP Server Implementation] CLI[src/cli.ts<br/>CLI Interface] UTILS[src/utils.ts<br/>Shared Utilities] TEST[src/index.test.ts<br/>Basic Tests] end subgraph "New Configuration" CURSOR_CONFIG[.cursor/mcp.json<br/>Cursor MCP Config] DOCKER_MCP[Dockerfile.mcp<br/>MCP Docker Image] COMPOSE_MCP[docker-compose.mcp.yml<br/>Docker Compose] end subgraph "New Data & Docs" SAMPLE_DATA[data/sample-prompts.json<br/>5 Templates] MCP_README[MCP_README.md<br/>MCP Usage Guide] RELEASE_NOTES[RELEASE_NOTES_v3.0.8.md<br/>Release Notes] DIAGRAMS[DIAGRAMS.md<br/>Architecture Diagrams] end MCP_SERVER --> CURSOR_CONFIG CLI --> DOCKER_MCP UTILS --> COMPOSE_MCP TEST --> SAMPLE_DATA SAMPLE_DATA --> MCP_README MCP_README --> RELEASE_NOTES RELEASE_NOTES --> DIAGRAMS ``` ### 2. Modified Files ```mermaid graph LR subgraph "Modified Core Files" INDEX[src/index.ts<br/>Dual Mode Support] HTTP_SERVER[src/http-server.ts<br/>Enhanced HTTP Server] PKG[package.json<br/>MCP Dependencies] TS_CONFIG[tsconfig.server.json<br/>TypeScript Config] end subgraph "Updated Documentation" README[README.md<br/>Complete Overhaul] VITEST[vitest.config.ts<br/>Test Configuration] end INDEX --> HTTP_SERVER HTTP_SERVER --> PKG PKG --> TS_CONFIG TS_CONFIG --> README README --> VITEST ``` ## 🔧 Technical Implementation ### MCP Server Architecture ```mermaid graph TB subgraph "MCP Server Core" MCP_PROTOCOL[MCP Protocol 2024-11-05] STDIO[StdioServerTransport] TOOLS[7 MCP Tools] end subgraph "Tool Implementation" ADD[add_prompt] GET[get_prompt] LIST[list_prompts] UPDATE[update_prompt] DELETE[delete_prompt] APPLY[apply_template] STATS[get_stats] end subgraph "Data Processing" VALIDATION[Zod Validation] TEMPLATE[Template Processing] STORAGE[In-Memory Storage] end MCP_PROTOCOL --> STDIO STDIO --> TOOLS TOOLS --> ADD TOOLS --> GET TOOLS --> LIST TOOLS --> UPDATE TOOLS --> DELETE TOOLS --> APPLY TOOLS --> STATS ADD --> VALIDATION GET --> VALIDATION LIST --> VALIDATION UPDATE --> VALIDATION DELETE --> VALIDATION APPLY --> TEMPLATE STATS --> STORAGE VALIDATION --> STORAGE TEMPLATE --> STORAGE ``` ### Template Processing Flow ```mermaid flowchart LR subgraph "Input" TEMPLATE[Template with {{variables}}] VARIABLES[JSON Variables Object] end subgraph "Processing" PARSE[Parse Template] EXTRACT[Extract Variables] VALIDATE[Validate Variables] SUBSTITUTE[Substitute Variables] end subgraph "Output" RESULT[Processed Template] end TEMPLATE --> PARSE VARIABLES --> EXTRACT PARSE --> EXTRACT EXTRACT --> VALIDATE VALIDATE --> SUBSTITUTE SUBSTITUTE --> RESULT ``` ## 📦 Package Changes ### Dependencies Added ```mermaid graph LR subgraph "New Dependencies" MCP_SDK[@modelcontextprotocol/sdk] ZOD[zod] PINO[pino] CORS[cors] HELMET[helmet] end subgraph "Dev Dependencies" TYPES_CORS[@types/cors] TYPES_PG[@types/pg] TYPES_UUID[@types/uuid] TYPES_SWAGGER[@types/swagger-*] end MCP_SDK --> ZOD ZOD --> PINO PINO --> CORS CORS --> HELMET HELMET --> TYPES_CORS TYPES_CORS --> TYPES_PG TYPES_PG --> TYPES_UUID TYPES_UUID --> TYPES_SWAGGER ``` ### Scripts Added ```mermaid graph TB subgraph "New Scripts" START_HTTP[start:http] START_MCP[start:mcp] DOCKER_BUILD_MCP[docker:build:mcp] DOCKER_UP_MCP[docker:up:mcp] DOCKER_DOWN_MCP[docker:down:mcp] DOCKER_LOGS_MCP[docker:logs:mcp] end START_HTTP --> START_MCP START_MCP --> DOCKER_BUILD_MCP DOCKER_BUILD_MCP --> DOCKER_UP_MCP DOCKER_UP_MCP --> DOCKER_DOWN_MCP DOCKER_DOWN_MCP --> DOCKER_LOGS_MCP ``` ## 🎯 Use Cases & Templates ### 5 Pre-loaded Templates ```mermaid graph LR subgraph "Development Templates" CODE_REVIEW[Code Review Assistant<br/>Code quality & security] DOCS[Documentation Writer<br/>Technical documentation] end subgraph "Analysis Templates" BUG_ANALYSIS[Bug Analyzer<br/>Bug investigation] ARCH_REVIEW[Architecture Reviewer<br/>System architecture] end subgraph "Testing Template" TEST_GEN[Test Case Generator<br/>Comprehensive testing] end CODE_REVIEW --> DOCS DOCS --> BUG_ANALYSIS BUG_ANALYSIS --> ARCH_REVIEW ARCH_REVIEW --> TEST_GEN ``` ### Template Variables ```mermaid graph TB subgraph "Variable Types" STRING[string] NUMBER[number] BOOLEAN[boolean] end subgraph "Variable Properties" NAME[name] DESCRIPTION[description] REQUIRED[required] TYPE[type] end STRING --> NAME NUMBER --> DESCRIPTION BOOLEAN --> REQUIRED NAME --> TYPE DESCRIPTION --> TYPE REQUIRED --> TYPE ``` ## 🔄 Data Flow Changes ### Request Processing ```mermaid flowchart TD subgraph "Client Layer" CURSOR[Cursor IDE] HTTP_CLIENT[HTTP Client] MCP_CLIENT[MCP Client] end subgraph "Server Layer" INDEX[src/index.ts<br/>Mode Router] HTTP_SERVER[HTTP Server] MCP_SERVER[MCP Server] end subgraph "Processing Layer" VALIDATION[Input Validation] PROCESSING[Request Processing] TEMPLATE[Template Processing] end subgraph "Storage Layer" MEMORY[In-Memory Storage] SAMPLE[Sample Templates] end CURSOR --> INDEX HTTP_CLIENT --> INDEX MCP_CLIENT --> INDEX INDEX --> HTTP_SERVER INDEX --> MCP_SERVER HTTP_SERVER --> VALIDATION MCP_SERVER --> VALIDATION VALIDATION --> PROCESSING PROCESSING --> TEMPLATE TEMPLATE --> MEMORY TEMPLATE --> SAMPLE ``` ## 🐳 Docker Integration ### Docker Architecture ```mermaid graph TB subgraph "Docker Environment" subgraph "Container" DOCKER_IMAGE[node:20-alpine] APP[MCP Prompts Server] ENV[MODE=mcp] end subgraph "Docker Compose" COMPOSE[docker-compose.mcp.yml] VOLUMES[./data:/app/data] PORTS[3003:3003] end subgraph "Host" HOST[Host Machine] NETWORK[Docker Network] end end DOCKER_IMAGE --> APP APP --> ENV COMPOSE --> VOLUMES COMPOSE --> PORTS VOLUMES --> HOST PORTS --> NETWORK ``` ## 📈 Version Evolution ### Development Timeline ```mermaid timeline title MCP Prompts Server Development section Initial Development v1.0.0 : Basic HTTP Server v1.2.x : Feature Development v1.8.x : Stability Improvements section TypeScript Migration v3.0.0 : TypeScript Migration v3.0.1 : Core Improvements v3.0.7 : MCP Foundation section MCP Integration v3.0.8 : Complete MCP Server : 7 MCP Tools : 5 Pre-loaded Templates : Cursor Integration : Docker Support ``` ## 🔧 Configuration Changes ### Cursor Integration ```mermaid graph LR subgraph "Cursor Configuration" CURSOR_CONFIG[.cursor/mcp.json] MCP_SERVER[mcp-prompts] COMMAND[node dist/index.js] ENV[MODE=mcp] end CURSOR_CONFIG --> MCP_SERVER MCP_SERVER --> COMMAND COMMAND --> ENV ``` ### Environment Variables ```mermaid graph TB subgraph "Environment Variables" MODE[MODE<br/>http|mcp] PORT[PORT<br/>3003] HOST[HOST<br/>0.0.0.0] LOG_LEVEL[LOG_LEVEL<br/>info] NODE_ENV[NODE_ENV<br/>production] end MODE --> PORT PORT --> HOST HOST --> LOG_LEVEL LOG_LEVEL --> NODE_ENV ``` ## 📊 Impact Summary ### Metrics ```mermaid graph LR subgraph "Code Changes" FILES_ADDED[171 files changed] LINES_ADDED[2508 insertions] LINES_DELETED[1934 deletions] end subgraph "Features Added" MCP_TOOLS[7 MCP Tools] TEMPLATES[5 Templates] DOCKER[Docker Support] CURSOR[Cursor Integration] end subgraph "Package Info" VERSION[3.0.8] SIZE[49.8 kB] FILES[66 files] NPM[Published to NPM] end FILES_ADDED --> MCP_TOOLS LINES_ADDED --> TEMPLATES LINES_DELETED --> DOCKER MCP_TOOLS --> VERSION TEMPLATES --> SIZE DOCKER --> FILES CURSOR --> NPM ``` ## 🎯 Key Achievements ### 1. Complete MCP Integration - ✅ Full MCP Protocol 2024-11-05 support - ✅ 7 MCP tools for prompt management - ✅ Seamless Cursor IDE integration - ✅ Template variable substitution ### 2. Production Ready - ✅ Docker containerization - ✅ TypeScript with full type safety - ✅ Comprehensive error handling - ✅ Structured logging ### 3. Developer Experience - ✅ 5 pre-loaded templates - ✅ Comprehensive documentation - ✅ Usage examples - ✅ Visual architecture diagrams ### 4. Package Management - ✅ Published to NPM - ✅ Git tagged and versioned - ✅ Release notes - ✅ Installation ready --- ## 🎊 Conclusion The MCP Prompts Server v3.0.8 represents a complete transformation from a basic HTTP server to a full-featured MCP server with: - **7 MCP Tools** for complete prompt management - **5 Pre-loaded Templates** for immediate use - **Cursor Integration** for seamless IDE experience - **Docker Support** for production deployment - **Comprehensive Documentation** with visual diagrams The visual diagrams demonstrate the "show over tell" approach, making complex architectural decisions and relationships immediately clear through visual representation rather than lengthy textual descriptions.

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sparesparrow/mcp-prompts'

If you have feedback or need assistance with the MCP directory API, please join our Discord server