@grec0/memory-bank-mcp 0.1.24 → 0.1.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -157,17 +157,25 @@ async function initTreeSitter() {
157
157
  }
158
158
  try {
159
159
  // Dynamic import of web-tree-sitter
160
- // The module exports the Parser class as default
160
+ // web-tree-sitter exports Parser as a named export, not default
161
161
  const TreeSitterModule = await import("web-tree-sitter");
162
- ParserClass = TreeSitterModule.default;
162
+ // Get Parser from named export
163
+ ParserClass = TreeSitterModule.Parser;
164
+ if (!ParserClass) {
165
+ throw new Error('Parser class not found in web-tree-sitter module');
166
+ }
163
167
  // Initialize the WASM module
164
- await ParserClass.init();
168
+ if (typeof ParserClass.init === 'function') {
169
+ await ParserClass.init();
170
+ }
165
171
  treeSitterInitialized = true;
166
172
  console.error("[AST Chunker] Tree-sitter initialized successfully");
167
173
  return true;
168
174
  }
169
175
  catch (error) {
170
176
  console.error(`[AST Chunker] Failed to initialize Tree-sitter: ${error}`);
177
+ treeSitterInitialized = false;
178
+ ParserClass = null;
171
179
  return false;
172
180
  }
173
181
  }
@@ -1,2 +1,2 @@
1
1
  // Version of the MCP Kanban server
2
- export const VERSION = "0.1.24";
2
+ export const VERSION = "0.1.26";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grec0/memory-bank-mcp",
3
- "version": "0.1.24",
3
+ "version": "0.1.26",
4
4
  "description": "MCP server for semantic code indexing with Memory Bank - AI-powered codebase understanding",
5
5
  "license": "MIT",
6
6
  "author": "@grec0",