mirror of
https://github.com/aljazceru/mcp-code.git
synced 2025-12-17 12:45:28 +01:00
refactor and add list_snippets
This commit is contained in:
7
lib/cache/snippets.ts
vendored
Normal file
7
lib/cache/snippets.ts
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import type { CodeSnippet } from "../types/index.js";
|
||||
|
||||
/**
|
||||
* In-memory cache to store snippets by ID for efficient retrieval
|
||||
* Used by list_snippets and fetch_snippet_by_id commands
|
||||
*/
|
||||
export const snippetsCache: Record<string, CodeSnippet> = {};
|
||||
Reference in New Issue
Block a user