kb_update_projects
Update project context including current projects, technologies, goals, challenges, team size, and methodology to maintain accurate organizational knowledge.
Instructions
Update project context (current projects, technologies, goals)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| challenges | No | ||
| currentProjects | No | ||
| goals | No | ||
| methodology | No | ||
| teamSize | No | ||
| technologies | No |
Implementation Reference
- src/index.ts:593-603 (handler)Tool handler that receives the tool call, invokes KnowledgeManager.updateProjects with the input arguments, and returns a success confirmation message.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 the provided project updates into the knowledge base's projects section, records the changes in history, and persists the updated knowledge base to disk.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)Tool schema definition including name, description, and input schema for validating the parameters used to update project context.{ 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' } } } },
- src/types.ts:34-41 (schema)TypeScript interface defining the ProjectContext type that matches the tool's input schema for type safety and validation.export interface ProjectContext { currentProjects?: string[]; technologies?: string[]; goals?: string[]; challenges?: string[]; teamSize?: number; methodology?: string; }