kb_update_projects
Update project context including current projects, technologies used, goals, challenges, team size, and methodology for AI memory storage.
Instructions
Update project context (current projects, technologies, goals)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| currentProjects | No | ||
| technologies | No | ||
| goals | No | ||
| challenges | No | ||
| teamSize | No | ||
| methodology | No |
Implementation Reference
- src/index.ts:593-603 (handler)MCP tool handler case that calls KnowledgeManager.updateProjects with input arguments and returns success response.
case 'kb_update_projects': { await km.updateProjects(args as any); return { content: [ { type: 'text', text: '✅ Project context updated successfully' } ] }; } - src/KnowledgeManager.ts:191-204 (helper)Core implementation that merges partial ProjectContext updates into the knowledge base projects section, logs history, and persists to file.
async updateProjects(updates: Partial<ProjectContext>): Promise<void> { Object.entries(updates).forEach(([field, value]) => { const oldValue = (this.kb.projects as any)[field]; (this.kb.projects as any)[field] = value; this.addHistory({ action: oldValue === undefined ? 'add' : 'update', category: 'projects', field, oldValue, newValue: value }); }); await this.save(); } - src/index.ts:136-150 (schema)Input schema definition and tool registration in the tools list returned by ListToolsRequestHandler.
{ name: 'kb_update_projects', description: 'Update project context (current projects, technologies, goals)', inputSchema: { type: 'object', properties: { currentProjects: { type: 'array', items: { type: 'string' } }, technologies: { type: 'array', items: { type: 'string' } }, goals: { type: 'array', items: { type: 'string' } }, challenges: { type: 'array', items: { type: 'string' } }, teamSize: { type: 'number' }, methodology: { type: 'string' } } } },