get_memory_bank_status
Retrieve the current status of the memory bank on the MCP server with SSH support. Use this tool to monitor and verify the central knowledge base's operational state.
Instructions
Check Memory Bank status
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| random_string | Yes | Dummy parameter for no-parameter tools |
Implementation Reference
- src/server/tools/CoreTools.ts:389-414 (handler)Implements the core logic for the get_memory_bank_status tool by retrieving the Memory Bank status via memoryBankManager.getStatus() and returning it as formatted JSON, with error handling.export async function handleGetMemoryBankStatus( memoryBankManager: MemoryBankManager ) { try { const status = await memoryBankManager.getStatus(); return { content: [ { type: 'text', text: JSON.stringify(status, null, 2), }, ], }; } catch (error) { return { content: [ { type: 'text', text: `Error checking Memory Bank status: ${error}`, }, ], isError: true, }; } }
- Tool definition including name, description, and input schema (using a dummy required parameter). This is part of the coreTools array exported for registration.{ name: 'get_memory_bank_status', description: 'Check Memory Bank status', inputSchema: { type: 'object', properties: { random_string: { type: 'string', description: 'Dummy parameter for no-parameter tools', }, }, required: ['random_string'], }, },
- src/server/tools/index.ts:145-158 (registration)Dispatches the tool call to the handler function after checking if Memory Bank directory exists, part of the MCP server tool request handler.case 'get_memory_bank_status': { if (!memoryBankManager.getMemoryBankDir()) { return { content: [ { type: 'text', text: 'Memory Bank not found. Use initialize_memory_bank to create one.', }, ], isError: true, }; } return handleGetMemoryBankStatus(memoryBankManager); }