@danielsimonjr/memory-mcp 12.2.3 → 12.7.0
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.
- package/README.md +235 -105
- package/dist/index.js +12 -0
- package/dist/server/MCPServer.d.ts.map +1 -1
- package/dist/server/toolDefinitions.d.ts +1 -1
- package/dist/server/toolDefinitions.d.ts.map +1 -1
- package/dist/server/toolDefinitions.js +999 -5
- package/dist/server/toolHandlers.d.ts +1 -9
- package/dist/server/toolHandlers.d.ts.map +1 -1
- package/dist/server/toolHandlers.js +1099 -35
- package/package.json +12 -9
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
* @module server/toolHandlers
|
|
9
9
|
*/
|
|
10
10
|
import { formatToolResponse, type ManagerContext } from '@danielsimonjr/memoryjs';
|
|
11
|
+
export declare function getActiveProjectScope(ctx: ManagerContext): string | undefined;
|
|
11
12
|
/**
|
|
12
13
|
* Tool response type for MCP SDK compatibility.
|
|
13
14
|
* Extends base response with optional isError flag for error framing.
|
|
@@ -19,15 +20,6 @@ export type ToolResponse = ReturnType<typeof formatToolResponse> & {
|
|
|
19
20
|
* Tool handler function signature.
|
|
20
21
|
*/
|
|
21
22
|
export type ToolHandler = (ctx: ManagerContext, args: Record<string, unknown>) => Promise<ToolResponse>;
|
|
22
|
-
/**
|
|
23
|
-
* Registry of all tool handlers keyed by tool name.
|
|
24
|
-
* Handlers call managers directly for reduced abstraction layers.
|
|
25
|
-
*
|
|
26
|
-
* Note: Tools that can return unbounded result sets (read_graph, search_nodes,
|
|
27
|
-
* get_subtree, open_nodes) are wrapped with withCompression() for payloads >256KB.
|
|
28
|
-
* Filtered/limited search tools (search_nodes_ranked, fuzzy_search, etc.) are not
|
|
29
|
-
* wrapped because their results are bounded by query specificity or limit params.
|
|
30
|
-
*/
|
|
31
23
|
export declare const toolHandlers: Record<string, ToolHandler>;
|
|
32
24
|
/**
|
|
33
25
|
* Handle a tool call by dispatching to the appropriate handler.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolHandlers.d.ts","sourceRoot":"","sources":["../../src/server/toolHandlers.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EACL,kBAAkB,
|
|
1
|
+
{"version":3,"file":"toolHandlers.d.ts","sourceRoot":"","sources":["../../src/server/toolHandlers.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EACL,kBAAkB,EA2ClB,KAAK,cAAc,EAyBpB,MAAM,yBAAyB,CAAC;AAyBjC,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,cAAc,GAAG,MAAM,GAAG,SAAS,CAE7E;AAkED;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAEzF;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,CACxB,GAAG,EAAE,cAAc,EACnB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC1B,OAAO,CAAC,YAAY,CAAC,CAAC;AAiF3B,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAouGpD,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAsB,cAAc,CAClC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,GAAG,EAAE,cAAc,GAClB,OAAO,CAAC,YAAY,CAAC,CAiBvB"}
|