Skip to main content
Glama
IncomeStreamSurfer

Roo Code Memory Bank MCP Server

check_memory_bank_status

Verify if the memory-bank directory exists and retrieve a list of .md files to maintain persistent project context in AI assistants.

Instructions

Checks if the memory-bank directory exists and lists the .md files within it.

Input Schema

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

{ "properties": {}, "type": "object" }

Implementation Reference

  • The handler function that checks the memory-bank directory existence and lists .md files within it, returning JSON status.
    async checkMemoryBankStatus(): Promise<{ content: Array<{ type: string; text: string }>; isError?: boolean }> { try { await fs.access(MEMORY_BANK_PATH); const files = await fs.readdir(MEMORY_BANK_PATH); const mdFiles = files.filter(f => f.endsWith('.md')); return { content: [{ type: "text", text: JSON.stringify({ exists: true, files: mdFiles }, null, 2) }] }; } catch (error) { // If access fails, directory likely doesn't exist return { content: [{ type: "text", text: JSON.stringify({ exists: false, files: [] }, null, 2) }] }; } }
  • src/index.ts:268-269 (registration)
    Switch case in CallToolRequestHandler that registers and dispatches the tool call to the handler.
    case "check_memory_bank_status": return memoryBankServer.checkMemoryBankStatus();
  • Tool definition including name, description, and input schema (empty object since no input params required).
    const CHECK_MEMORY_BANK_STATUS_TOOL: Tool = { name: "check_memory_bank_status", description: "Checks if the memory-bank directory exists and lists the .md files within it.", inputSchema: { type: "object", properties: {} } // No input needed // Output: { exists: boolean, files: string[] } (handled in implementation) };
  • src/index.ts:110-115 (registration)
    Array of all tools including CHECK_MEMORY_BANK_STATUS_TOOL, used for listing tools.
    const ALL_TOOLS = [ INITIALIZE_MEMORY_BANK_TOOL, CHECK_MEMORY_BANK_STATUS_TOOL, READ_MEMORY_BANK_FILE_TOOL, APPEND_MEMORY_BANK_ENTRY_TOOL ];

Other Tools

Related Tools

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/IncomeStreamSurfer/roo-code-memory-bank-mcp-server'

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