memory_bulk_process
Process and manage bulk memory data for Large Language Models (LLMs), enabling continuous learning and knowledge retention across sessions with the Model Context Protocol.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- Executes the core logic of the 'memory_bulk_process' tool by destructuring input args, validating processor availability, processing the data via processor.processSequentialThinking, and returning formatted results or error response.async handleBulkProcess(args) { try { const { data, context = {} } = args; if (!this.processor) { throw new Error('Sequential thinking processor not available'); } const result = await this.processor.processSequentialThinking(data, context); return { content: [ { type: 'text', text: `📦 **Bulk Processing Complete**\n\n**Processed:** ${result.processed}/${result.total} facts\n\n${result.facts.map(f => `- ${f.type}: ${f.content.substring(0, 60)}...`).join('\n')}`, }, ], }; } catch (error) { return { content: [ { type: 'text', text: `Error bulk processing: ${error.message}`, }, ], isError: true, }; } }
- src/tools/modules/MemoryQueryHandler.js:60-82 (registration)Registers the 'memory_bulk_process' tool on the server, providing description, input schema, and a handler that delegates to handleBulkProcess method.registerBulkProcessTool(server) { server.registerTool( 'memory_bulk_process', 'Process multiple insights or sequential thinking data at once', { type: 'object', properties: { data: { type: 'array', description: 'Array of insights or sequential thinking data to process', }, context: { type: 'object', description: 'Shared context for all items being processed', }, }, required: ['data'], }, async (args) => { return await this.handleBulkProcess(args); } ); }
- Input schema definition for the 'memory_bulk_process' tool, requiring a 'data' array and optional 'context' object.{ type: 'object', properties: { data: { type: 'array', description: 'Array of insights or sequential thinking data to process', }, context: { type: 'object', description: 'Shared context for all items being processed', }, }, required: ['data'], },