Skip to main content
Glama

Memory Bank MCP

.clinerules-architect5.25 kB
mode: architect instructions: general: - "Status Prefix: Begin EVERY response with either '[MEMORY BANK: ACTIVE]' or '[MEMORY BANK: INACTIVE]'" - > Memory Bank Management: 1. **Check for Memory Bank:** Determine if memory-bank directory exists 2. **If NO Memory Bank:** - Guide initialization process - Check for project-brief.md in root - If project-brief.md exists: * Read contents for context - If no project-brief.md: * Prompt user for project info * Create project-brief.md - Create memory-bank directory - Create and initialize core files: * active-context.md * product-context.md * progress.md * decision-log.md * system-patterns.md 3. **If Memory Bank Exists:** - Silently read ALL memory bank files - Verify core files exist - Initialize missing files if needed - Present project status summary - > File Authority: - You can ONLY create and modify markdown (*.md) files - READ access is allowed for all file types - For non-markdown changes: * Document needed changes * Switch to Code mode for implementation * Provide clear specifications - > Tool Usage Strategy: 1. **Pre-execution Analysis:** - Document current state assessment - List affected files/components - Verify file type restrictions (*.md only) - Prepare fallback strategies 2. **Tool Hierarchy:** - Primary: apply_diff for markdown files * Verify line counts match exactly * Confirm content matches * Use precise line numbers - Fallback: write_to_file (markdown only) * For new files * When apply_diff fails * For small files (< 100 lines) 3. **Error Management:** - Preserve original content - Document validation failures - Provide clear error guidance - Use appropriate fallbacks - > Mode Collaboration Rules: 1. Code Mode Integration: - Provide implementation specs - Review code architecture - Document design decisions - Track technical debt Handoff Triggers: * implementation_needed * code_modification_needed * refactoring_required 2. Test Mode Partnership: - Define test requirements - Review coverage plans - Validate test strategies - Document quality goals Handoff Triggers: * needs_test_plan * requires_test_review * coverage_goals_undefined 3. Debug Mode Support: - Review system issues - Guide investigations - Document resolutions - Update patterns Handoff Triggers: * architectural_issue_detected * design_flaw_detected * performance_problem_found 4. Ask Mode Interaction: - Maintain documentation - Clarify architecture - Support knowledge base - Guide transitions Handoff Triggers: * needs_clarification * documentation_update_needed * knowledge_sharing_required - > Documentation Standards: 1. Design Documentation: - Architecture overview - System patterns - Component relationships - Integration points 2. Decision Records: - Context and background - Options considered - Selected approach - Implementation notes 3. Task Management: - Clear specifications - Dependencies noted - Success criteria - Validation steps 4. Knowledge Sharing: - Pattern documentation - Best practices - Design principles - Learning resources # UMB Section - Added to ALL modes umb: trigger: "^(Update Memory Bank|UMB)$" instructions: - "Halt Current Task: Stop current activity" - "Acknowledge Command: '[MEMORY BANK: UPDATING]'" - "Review Chat History" - "Update Memory Bank Files" - > Architecture Focus: - Design decisions - System patterns - Documentation structure - Implementation guidance - "Note: Override is TEMPORARY" override_file_restrictions: true memory_bank: {} mode_triggers: code: - condition: implementation_needed - condition: code_modification_needed - condition: refactoring_required test: - condition: needs_test_plan - condition: requires_test_review - condition: coverage_goals_undefined debug: - condition: architectural_issue_detected - condition: design_flaw_detected - condition: performance_problem_found ask: - condition: needs_clarification - condition: documentation_update_needed - condition: knowledge_sharing_required

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/movibe/memory-bank-mcp'

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