A production-grade Claude Code configuration specialized for building MCP servers with memory persistence, vector search, and AI companion systems.
This configuration provides comprehensive support for:
- Memory Systems - Vector-indexed persistence with pgvector
- MCP Protocol - Complete server implementation toolkit
- Database Architecture - PostgreSQL 17 with Neon serverless
- AI Companions - Multi-tenant architecture patterns
- Production Deployment - Docker, Kubernetes, monitoring
- Copy the
.claudedirectory to your MCP server project:
cp -r memory-mcp-server/.claude your-mcp-project/
cp memory-mcp-server/CLAUDE.md your-mcp-project/- The configuration will be automatically loaded when you start Claude Code.
| Agent | Description | Use Cases |
|---|---|---|
mcp-protocol-expert |
Protocol debugging and compliance | Connection issues, protocol validation |
mcp-sdk-builder |
SDK implementation patterns | Building new MCP servers |
mcp-transport-expert |
Transport layers (stdio, HTTP, SSE) | Session management, optimization |
mcp-types-expert |
TypeScript and Zod schemas | Type safety, JSON-RPC formats |
| Agent | Description | Use Cases |
|---|---|---|
neon-drizzle-expert |
Neon PostgreSQL with Drizzle ORM | Database setup, migrations |
pgvector-advanced |
Advanced pgvector v0.8.0 features | Binary vectors, HNSW indexes |
vector-search-expert |
Semantic search and embeddings | OpenAI embeddings, similarity search |
| Agent | Description | Use Cases |
|---|---|---|
memory-architecture |
Database design and indexing | Schema design, retrieval optimization |
memory-lifecycle |
Consolidation and expiration | Memory decay models, deduplication |
memory-validator |
Data integrity and validation | CRUD operations, testing |
companion-architecture |
Multi-tenant AI systems | Isolation strategies, scaling |
| Agent | Description | Use Cases |
|---|---|---|
code-reviewer |
Comprehensive code review | Security focus, best practices |
debugger |
Systematic debugging | Root cause analysis |
test-runner |
Automated testing | MCP protocol validation |
production-deployment |
HTTPS deployment | Containerization, monitoring |
/setup quick # Quick project setup with essentials
/setup full # Complete environment with all dependencies
/setup database # Database-focused initialization/test # Generate comprehensive test suites
/review # Security-focused code review
/explain # Context-aware code explanation/mcp-debug # Debug MCP protocol issues
/memory-ops # Test memory CRUD operations
/perf-monitor # Performance profilingAutomatically triggered on file modifications:
- ✅ Type checking with
tsc --noEmit - ✨ Prettier formatting
- 🔧 ESLint fixing
- 🧪 Test execution for test files
- 📁 Smart filtering (skips node_modules, build dirs)
- 📝 Logs all executed Bash commands
- ⏱️ Timestamps for debugging
- 📊 Audit trail maintenance
{
"permissions": {
"allow": [
"Read", "Grep", "Glob", "LS",
"Bash(npm test:*)",
"Write(**/*.ts)",
"Bash(npx drizzle-kit:*)",
"Bash(psql:*)"
],
"deny": [
"Read(./.env)",
"Bash(rm -rf:*)",
"Bash(git push:*)"
]
}
}Pre-configured for MCP development:
DATABASE_URL- PostgreSQL connectionOPENAI_API_KEY- For embeddingsMCP_SERVER_PORT- Server configurationNEON_DATABASE_URL- Serverless PostgreSQL
# 1. Set up the project
> /setup full
# 2. Design memory schema
> Use memory-architecture agent to design the database schema
# 3. Implement MCP server
> Use mcp-sdk-builder agent to create the server
# 4. Add vector search
> Use vector-search-expert to implement semantic search
# 5. Deploy to production
> Use production-deployment agent for containerization# Debug protocol issues
> /mcp-debug
# The debugger will:
# - Validate protocol compliance
# - Check message formats
# - Test transport layer
# - Identify connection issuesOptimized for:
- TypeScript & Node.js
- PostgreSQL 17 with Neon serverless
- Drizzle ORM v0.44.4 for type-safe database
- pgvector v0.8.0 for vector similarity
- @modelcontextprotocol/sdk for MCP
- OpenAI embeddings for semantic search
- Docker & Kubernetes for deployment
- Vector-indexed storage with pgvector
- Semantic search capabilities
- Memory consolidation and lifecycle
- Multi-tenant isolation
- Complete SDK implementation patterns
- Transport layer optimization
- Protocol compliance validation
- Session management
- Docker containerization
- Kubernetes orchestration
- Prometheus/Grafana monitoring
- Structured logging
Edit .claude/settings.json to customize:
- Permissions for your security needs
- Environment variables for your services
- Hook configurations for your workflow
- Agent selections for your domain
This configuration enforces:
- Type Safety - Full TypeScript with Zod validation
- Security First - Input validation, authentication
- Performance - Optimized vector search, caching
- Testing - Comprehensive test coverage
- Monitoring - Structured logging, metrics
- Documentation - Clear code comments, API docs
Hooks not executing:
chmod +x .claude/hooks/*.shDatabase connection issues:
# Check environment variables
echo $DATABASE_URL
# Test connection
psql $DATABASE_URLMCP protocol errors:
/mcp-debugBuilt for production MCP server development 🚀
Transform your MCP server development with specialized AI assistance and automation.