MCP LLM Generator v2
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP LLM Generator v2generate a haiku about artificial intelligence"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP LLM Generator v2 ๐ค
๐ Production-ready Model Context Protocol (MCP) server with advanced LLM text generation, context memory management, intelligent template systems, and Sprint3 Process Quality Foundation.
Sprint3 Achievements: โ Definition of Done v2.0 compliance, โ Comprehensive automated testing, โ CI/CD pipeline with quality gates, โ Full documentation suite, โ Operations manual with 24/7 procedures.
๐ฏ Sprint3 Process Quality Foundation
Complete automation and quality assurance for enterprise-grade MCP operations:
๐ Quality Gates & Automation
๐ฏ Definition of Done v2.0: Automated compliance checking with 8-category validation
๐ MCP Integration Testing: 15-test comprehensive protocol validation
๐ CI/CD Pipeline: Multi-platform testing, security scanning, automated deployment
๐ Operations Manual: 24/7 procedures for maintenance, troubleshooting, and emergency response
๐๏ธ System Architecture: Complete technical documentation with deployment patterns
๐ Continuous Quality Assurance
# Automatic quality validation (included in CI/CD)
./scripts/dod-check.sh # Definition of Done v2.0 compliance
./scripts/mcp-integration-test.sh # MCP protocol validation
# Manual quality verification
npm run build # TypeScript compilation
npm run lint # Code quality
npm audit # Security scanโจ Key Features
๐ง Core Tools
llm-generate- Direct LLM text generation via MCP sampling protocoltemplate-execute- Execute sophisticated templates with smart parameter substitutiontemplate-manage- Full CRUD operations for reusable prompt templatescontext-chat- Personality-driven conversations with persistent memorycontext-manage- Create, update, and manage AI consultant contextsmemory-store- Store and organize knowledge with associative linking
๐งช Experimental Features (v1.3.0+)
capability-get-self-awareness- AI personas recognize their own capabilities (Step3)capability-get-other-awareness- AI personas observe and evaluate other personascapability-process-inheritance- Manage capability inheritance between personascapability-get-matrix- Generate capability matrix for multiple personascapability-analyze-hierarchy- Analyze capability distribution across persona hierarchies
โ ๏ธ Experimental Notice: The Step3 capability awareness system is an experimental feature under active development. The interface and functionality may change in future versions.
๐ Smart Resources
template-list- Dynamic discovery of available templatestemplate-detail- Comprehensive template information with validationcontext-history- Access conversation histories and consultant insights
๐ฏ Advanced Prompts
explain-template- Multi-style explanations (beginner, technical, expert)review-template- Intelligent code review and analysisconsultant-prompt- Access to 12+ specialized AI consultants
๐ Quick Start
โก Global Installation (Recommended for Production)
# Install globally for enterprise deployment
npm install -g @mako10k/mcp-llm-generator
# Verify installation with health check
mcp-llm-generator --version
mcp-llm-generator --health-check # Sprint3 health validation๐ ๏ธ Local Development Setup (Sprint3 Enhanced)
# Clone with full Sprint3 development environment
git clone https://github.com/mako10k/mcp-sampler.git
cd mcp-sampler
# Install dependencies with integrity check
npm ci
# Run Sprint3 development setup
npm run dev # Development server with watch mode
./scripts/dod-check.sh # Quality gate validation
./scripts/mcp-integration-test.sh # MCP protocol testingBuild TypeScript with quality validation
npm run build
Start the server with health monitoring
npm start
Sprint3 Quality Validation
./scripts/dod-check.sh # Definition of Done v2.0 check ./scripts/mcp-integration-test.sh # MCP protocol validation
### ๐ MCP Client Integration (Sprint3 Enhanced)
**Production Configuration** (Global installation):
```json
{
"servers": {
"mcp-llm-generator": {
"command": "mcp-llm-generator",
"type": "stdio",
"env": {
"LOG_LEVEL": "warn",
"NODE_ENV": "production"
}
}
}
}Development Configuration (Local setup):
{
"servers": {
"mcp-llm-generator": {
"command": "node",
"args": ["/path/to/mcp-sampler/build/index.js"],
"type": "stdio",
"env": {
"LOG_LEVEL": "debug",
"NODE_ENV": "development"
}
}
}
}VS Code MCP Integration (Recommended):
{
"servers": {
"llm-generator": {
"command": "node",
"args": ["build/index.js"],
"type": "stdio"
},
"assoc-memory": { ... },
"mcp-shell-server": { ... },
"google": { ... }
}
}๐ฏ Sprint3 Configuration Validation
# Validate MCP client configuration
npx @modelcontextprotocol/inspector node build/index.js
# Test VS Code integration
# 1. Open VS Code with MCP configuration
# 2. Restart VS Code
# 3. Test: "Use @llm-generator to explain quantum computing"
# 4. Check: View โ Output โ Model Context Protocol๐ Usage Examples
๐ค Basic LLM Text Generation
// Generate text with Sprint3 quality monitoring
await client.callTool("llm-generate", {
messages: [
{
role: "user",
content: {
type: "text",
text: "Explain quantum computing in simple terms"
}
}
],
maxTokens: 500,
temperature: 0.7,
provider: "mcp-internal" // Sprint3: Ensures MCP Sampler usage
});๐ Template System (Sprint3 Enhanced)
// Execute predefined templates with validation
await client.callTool("template-execute", {
templateName: "explain-template",
args: {
topic: "machine learning",
style: "beginner",
audience: "developers"
},
includeContext: "thisServer" // Sprint3: Enhanced context inclusion
});
// Manage templates with CRUD operations
await client.callTool("template-manage", {
action: "add",
template: {
name: "code-review",
systemPrompt: "You are an expert code reviewer...",
userMessage: "Review this code: {code}",
parameters: { code: "Code to review" }
}
});๐ง Context Memory & Consultants
// Create a specialized consultant
await client.callTool("context-manage", {
action: "create",
name: "Security Expert",
personality: "Expert cybersecurity consultant with 15+ years experience",
maxTokens: 1000,
temperature: 0.3
});
// Chat with consultant
await client.callTool("context-chat", {
contextId: "security-expert-id",
message: "Review this authentication system for vulnerabilities",
maintainPersonality: true
});
// Store important insights
await client.callTool("memory-store", {
content: "JWT tokens should expire within 15 minutes for high-security applications",
scope: "security/authentication",
tags: ["jwt", "security", "best-practices"]
});๐ Resource Discovery
// List available templates
const templates = await client.readResource({
uri: "mcp-llm-generator://template-list"
});
// Get detailed template information
const template = await client.readResource({
uri: "mcp-llm-generator://template-detail/explain-template"
});
// Access consultant history
const history = await client.readResource({
uri: "mcp-llm-generator://context-history/security-expert-id"
});๐ก๏ธ Security & Safety
๐ Database File Protection
This project uses SQLite databases containing sensitive data including consultant personalities, conversation histories, and associative memory networks. These files must never be committed to version control.
Multi-Layer Protection System
.gitignore- Prevents database files from being trackedPre-commit hooks - Automatically blocks commits containing sensitive files
Clear error handling - Provides immediate feedback on security violations
โ ๏ธ Critical Security Notes
Never commit:
context-memory.db,*.db,*.db-wal,*.db-shmfilesContains: 12+ consultant personalities, conversation data, memory associations
Risk: Loss of these files means losing valuable AI consultant expertise
๐ค Shared Memory Security Considerations
Personal Environment: Shared memory tools are designed for individual development environments
PC Access Control: Anyone with access to your PC can read/modify shared memories
Context Sharing: If you share your PC, remember that Copilot conversation histories are also accessible
Data Sensitivity: Avoid storing confidential information in shared memories - use for development notes and ideas only
persona_id Validation: Basic existence checks prevent empty IDs but do not provide authentication
Recommendation: For team collaboration with sensitive data, use dedicated collaboration tools with proper access controls
๐ง Secure Development Setup
# Install with automatic security hooks
npm install
# If you encounter database commit errors:
git reset HEAD context-memory.db
git reset HEAD *.db *.db-wal *.db-shm
# Verify protection is active
npm run lint๐ Production Security Best Practices
Regular security audits with
npm auditDependency vulnerability scanning via GitHub Dependabot
MIT license ensures open-source transparency
No network access required for core functionality
Input validation using Zod schemas throughout
๐๏ธ Architecture & Design
Core Components
LLM Integration - Direct text generation using MCP sampling protocol
Template Engine - Reusable prompt templates with intelligent parameter substitution
Context Memory - Persistent conversation and consultant management
Associative Memory - Smart knowledge linking and discovery
Resource Management - Dynamic access to templates, contexts, and metadata
Type Safety - Full TypeScript implementation with comprehensive Zod validation
๐ Performance Optimizations (v2)
67% Token Reduction - Optimized prompt engineering and response formatting
Smart Caching - Template and context caching for improved response times
Memory Efficiency - Associative linking reduces redundant data storage
Lazy Loading - Dynamic resource loading for faster startup times
๐ API Reference
Core Tools
llm-generate
Generate text using LLM via MCP sampling protocol.
Parameters:
messages(required) - Array of conversation messagesmaxTokens(optional, default: 500) - Maximum tokens to generatetemperature(optional, default: 0.7) - Sampling temperature (0.0-1.0)systemPrompt(optional) - Custom system prompt
template-execute
Execute predefined templates with parameter substitution.
Parameters:
templateName(required) - Name of template to executeargs(required) - Object with template parameter valuesmaxTokens(optional, default: 500) - Token limittemperature(optional, default: 0.7) - Sampling temperature
context-chat
Chat with personality-driven consultants with persistent memory.
Parameters:
contextId(required) - Unique consultant context identifiermessage(required) - User message to sendmaintainPersonality(optional, default: true) - Keep consultant personality
memory-store
Store knowledge with automatic associative linking.
Parameters:
content(required) - Content to storescope(optional, default: "user/default") - Hierarchical organization scopetags(optional) - Array of descriptive tagscategory(optional) - Content category
Resources
template-list
URI: mcp-llm-generator://template-list
Returns dynamic list of all available templates with metadata.
template-detail/{name}
URI: mcp-llm-generator://template-detail/{templateName}
Returns comprehensive template information including parameters and validation rules.
context-history/{id}
URI: mcp-llm-generator://context-history/{contextId}
Returns conversation history and consultant insights.
๐ง Troubleshooting
Sprint3 Automated Diagnostics
# Sprint3 comprehensive health check
./scripts/dod-check.sh # Definition of Done v2.0 validation
./scripts/mcp-integration-test.sh # MCP protocol testing
# Quality validation
npm run lint # Code quality check
npm audit # Security vulnerability scan
npm run build # TypeScript compilation checkCommon Issues
โ "Command not found: mcp-llm-generator"
Solution:
# Reinstall globally with Sprint3 verification
npm install -g @mako10k/mcp-llm-generator
mcp-llm-generator --version
# Verify PATH configuration
npm config get prefix
which mcp-llm-generatorโ "Cannot connect to MCP server"
Sprint3 Enhanced Solutions:
Verify MCP client configuration (Production-ready):
{ "command": "mcp-llm-generator", "type": "stdio", "env": { "LOG_LEVEL": "warn", "NODE_ENV": "production" } }Test server with MCP Inspector:
npx @modelcontextprotocol/inspector node build/index.js # Access http://localhost:5173 for interactive testingSprint3 manual validation:
# Basic startup test echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"test","version":"1.0"}}}' | node build/index.jsCheck Node.js compatibility:
node --version # Sprint3 requires โฅ18.0.0 npm --version # Should be โฅ8.0.0
โ "Template not found" errors
Solutions:
List available templates:
await client.readResource({ uri: "mcp-llm-generator://template-list" })Add missing template:
await client.callTool("template-manage", { action: "add", template: { /* template definition */ } })Sprint3 template validation:
# Check template integrity sqlite3 context-memory.db "SELECT name, system_prompt FROM templates;"
๐ Sprint3 Documentation Suite
๐๏ธ System Architecture & Design
System Architecture - Complete technical architecture documentation
Context Memory Design - Memory management system details
API Reference - Comprehensive API documentation
๐ Operations & Quality Assurance
Operations Manual - 24/7 operational procedures
Definition of Done v2.0 - Quality standards and compliance
Troubleshooting Guide - Comprehensive problem resolution
๐ง Development & Deployment
Development Guide - Setup and development workflows
Deployment Guide - Production deployment procedures
Security Manual - Security operations and best practices
๐ CI/CD & Automation
CI/CD Pipeline:
.github/workflows/ci.yml- Automated quality gatesRelease Pipeline:
.github/workflows/publish.yml- Automated publishingSemantic Release:
.github/workflows/semantic-release.yml- Version management
๐ฏ Sprint3 Achievements Summary
โ Process Quality Foundation Complete
Definition of Done v2.0 - 8-category automated compliance validation
MCP Integration Testing - 15-test comprehensive protocol validation
CI/CD Pipeline - Multi-platform automated testing and deployment
Operations Manual - Complete 24/7 operational procedures
System Architecture - Full technical documentation
Security Framework - Comprehensive security operations guide
๐ Quality Metrics
Test Coverage: Comprehensive automated validation
Security Score: Zero vulnerabilities (npm audit)
TypeScript: 100% type safety with strict mode
Cross-Platform: Ubuntu, Windows, macOS compatibility
Node.js Support: 18.x, 20.x, 22.x validated
๐ Enterprise Readiness
24/7 Operations: Complete operational procedures
Disaster Recovery: Emergency response procedures
Monitoring: Health checks and performance tracking
Maintenance: Automated and manual procedures
Documentation: Complete technical and operational docs
โ "Database file locked" errors
Solutions:
Ensure no other MCP server instances are running
Check file permissions:
ls -la context-memory.db* chmod 644 context-memory.db
โ "Memory allocation errors"
Solutions:
Reduce
maxTokensparameterClear old conversation history:
await client.callTool("conversation-manage", { action: "clear", contextId: "your-context-id" })
๐ Debug Mode
Enable detailed logging:
DEBUG=mcp-llm-generator:* mcp-llm-generator๐ Support
Issues: GitHub Issues
Security: See SECURITY.md
Discussions: GitHub Discussions
๐ Migration from v1
Breaking Changes in v2
Scoped package name:
mcp-llm-generatorโ@mako10k/mcp-llm-generatorNew tools:
context-chat,context-manage,memory-storerequire client updatesEnhanced templates: Additional optional parameters for better control
Migration Steps
Update global installation:
npm uninstall -g mcp-llm-generator npm install -g @mako10k/mcp-llm-generatorUpdate MCP client configuration:
{ "command": "mcp-llm-generator" // Updated command }
๐ค Contributing
We welcome contributions! Sprint3 has established comprehensive development standards:
Development Setup (Sprint3 Enhanced)
git clone https://github.com/mako10k/mcp-sampler.git
cd mcp-sampler
npm ci # Secure dependency installation
# Sprint3 development validation
npm run build # TypeScript compilation
./scripts/dod-check.sh # Definition of Done v2.0 check
./scripts/mcp-integration-test.sh # MCP protocol validation
npm run lint # Code quality validationCode Standards (Sprint3 Compliance)
TypeScript: Full type safety with strict mode + Sprint3 quality gates
ESLint: Code quality with automated Sprint3 validation
Security: Zero vulnerabilities (npm audit required)
Testing: Comprehensive automated testing framework
Documentation: All code must be documented (DoD v2.0 requirement)
Quality Assurance (Sprint3 Process Quality Foundation)
# Sprint3 automated quality pipeline
npm run test # Automated test suite
./scripts/dod-check.sh # Definition of Done v2.0 validation
npm audit # Security vulnerability check
npm run lint # Code quality validationRelease Process (Sprint3 Automated)
Semantic Commits: Automated version management via commit messages
CI/CD Pipeline: Automated testing across multiple platforms
Quality Gates: DoD v2.0 compliance before release
Automated Publishing: GitHub Actions handles npm publish
Documentation: Auto-generated release notes and documentation
๐ Changelog
See CHANGELOG.md for detailed version history and Sprint3 achievements.
๐ License
MIT License - see LICENSE file for details.
๐ Acknowledgments
Model Context Protocol Team - For the innovative MCP framework
TypeScript Community - For excellent tooling and type safety
Open Source Contributors - For making this project possible
Sprint3 Quality Assurance - For establishing enterprise-grade standards
๐ Sprint3 Final Notes
MCP LLM Generator v2 now includes enterprise-grade Process Quality Foundation:
๐ฏ Production Ready Features
โ Zero-downtime operations with comprehensive monitoring
โ 24/7 support procedures with emergency response plans
โ Automated quality assurance with Definition of Done v2.0
โ Complete documentation suite for all operational scenarios
โ CI/CD automation with multi-platform validation
๐ Next Steps
Deploy to production with confidence using our operations manual
Monitor system health using provided health check scripts
Scale operations following our comprehensive procedures
Contribute using our established quality standards
Made with โค๏ธ and Sprint3 Process Quality Foundation for the AI development community
โญ Star this repo if you find Sprint3's Process Quality Foundation valuable! Your support helps us maintain enterprise-grade MCP standards.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
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/mako10k/mcp-llm-generator'
If you have feedback or need assistance with the MCP directory API, please join our Discord server