Skip to main content
Glama

Memory Bank MCP Server

by nicavcrm

implement_mode

Execute project plans and creative decisions using structured workflows for software development. Supports tailored implementation based on project phase and complexity levels.

Instructions

Execute the implementation based on plan and creative decisions

Input Schema

NameRequiredDescriptionDefault
complexityNo
phaseNo

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "complexity": { "type": "string" }, "phase": { "type": "string" } }, "type": "object" }

Implementation Reference

  • The async handler for 'implement_mode' tool: checks complexity, generates implementation guide, updates progress.md and tasks.md files, returns success message with next steps.
    handler: async (input: ImplementModeInput): Promise<ToolResponse> => { const currentTasks = this.storage.getTasks(); const complexity = input.complexity || this.extractComplexityFromTasks(currentTasks); if (!complexity) { return { content: [{ type: 'text', text: '❌ Error: Complexity level not found. Please run VAN mode first.' }] }; } const implementationGuide = this.generateImplementationGuide(complexity, input.phase); // Update progress const progress = `# Implementation Progress ## Phase: ${input.phase || 'Main Implementation'} **Complexity Level**: ${complexity} **Started**: ${new Date().toISOString()} ## Build Steps ${implementationGuide} ## Status - [ ] Core implementation - [ ] Testing - [ ] Integration - [ ] Documentation ## Notes *Implementation notes and decisions* `; this.storage.setProgress(progress); // Update tasks const updatedTasks = currentTasks.replace( '- [ ] IMPLEMENT Mode: Code implementation', '- [x] IMPLEMENT Mode: Code implementation ✅' ); this.storage.setTasks(updatedTasks); return { content: [{ type: 'text', text: `✅ IMPLEMENT Mode started!\n\n**Complexity**: Level ${complexity}\n**Phase**: ${input.phase || 'Main Implementation'}\n**Status**: Implementation guide created\n**Next**: Complete implementation then proceed to REFLECT+ARCHIVE mode.` }] }; }
  • src/server.ts:74-89 (registration)
    Registers the 'implement_mode' tool with the MCP server, defining title, description, Zod input schema, and handler delegating to MemoryBankTools.implementTool.handler.
    this.server.registerTool( 'implement_mode', { title: 'IMPLEMENT Mode', description: 'Execute the implementation based on plan and creative decisions', inputSchema: { phase: z.string().optional(), complexity: z.string().refine(val => ['1', '2', '3', '4'].includes(val), { message: 'Complexity must be 1, 2, 3, or 4' }).optional() } }, async (args) => { return await (this.tools.implementTool.handler as any)(args); } );
  • TypeScript interface defining the input shape for the implement_mode tool handler.
    interface ImplementModeInput { phase?: string; complexity?: '1' | '2' | '3' | '4'; }
  • JSON Schema definition for input validation within the tool object.
    inputSchema: { type: 'object', properties: { phase: { type: 'string', description: 'Implementation phase (for complex projects)' }, complexity: { type: 'string', enum: ['1', '2', '3', '4'], description: 'Complexity level (optional, will read from tasks.md if not provided)' } } },
  • Helper method called by the handler to generate complexity-specific implementation guide strings.
    private generateImplementationGuide(complexity: string, phase?: string): string { if (complexity === '1') { return `### Level 1 Build Process: 1. 🔍 Review bug report 2. 👁️ Examine relevant code 3. ⚒️ Implement targeted fix 4. ✅ Test fix 5. 📝 Update documentation`; } else if (complexity === '2') { return `### Level 2 Build Process: 1. 📋 Follow build plan 2. 🔨 Build each component 3. ✅ Test each component 4. 🔄 Verify integration 5. 📝 Document build details`; } else { return `### Level ${complexity} Build Process: **Phase**: ${phase || 'Core Implementation'} 1. 🎨 Review creative phase decisions 2. 🏗️ Build in planned phases 3. ✅ Test each phase thoroughly 4. 🔄 Integration testing 5. 📝 Detailed documentation 6. 🔍 Comprehensive review`; } }

Other Tools

Related Tools

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

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