Skip to main content
Glama

Memory Bank MCP

ContextTools.ts1.55 kB
import { ProgressTracker } from '../../core/ProgressTracker.js'; /** * Definition of Memory Bank context tools */ export const contextTools = [ { name: 'update_active_context', description: 'Update the active context file', inputSchema: { type: 'object', properties: { tasks: { type: 'array', items: { type: 'string', }, description: 'List of ongoing tasks', }, issues: { type: 'array', items: { type: 'string', }, description: 'List of known issues', }, nextSteps: { type: 'array', items: { type: 'string', }, description: 'List of next steps', }, }, }, }, ]; /** * Processes the update_active_context tool * @param progressTracker ProgressTracker * @param context Context to be updated * @returns Operation result */ export async function handleUpdateActiveContext( progressTracker: ProgressTracker, context: { tasks?: string[]; issues?: string[]; nextSteps?: string[]; } ) { try { await progressTracker.updateActiveContext(context); return { content: [ { type: 'text', text: 'Active context updated successfully', }, ], }; } catch (error) { return { content: [ { type: 'text', text: `Error updating active context: ${error}`, }, ], isError: true, }; } }

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

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