Skip to main content
Glama
mixelpixx

meMCP - Memory-Enhanced Model Context Protocol

memory_bulk_process

Process multiple memory operations in batch to enable continuous learning and knowledge retention across LLM sessions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Registers the 'memory_bulk_process' tool on the server, defining its schema and linking to the handleBulkProcess handler.
    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);
        }
      );
    }
  • JSON schema defining the input parameters for the 'memory_bulk_process' tool: required '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'],
    },
  • Executes the core logic of the 'memory_bulk_process' tool by delegating to the injected processor's processSequentialThinking method, formatting results or handling errors.
    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,
        };
      }
    }

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/mixelpixx/meMCP'

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