@xmemo/client
Advanced tools
+1
-1
| { | ||
| "name": "@xmemo/client", | ||
| "version": "0.4.174", | ||
| "version": "0.4.175", | ||
| "description": "Privacy-first CLI and MCP setup helper for XMemo.", | ||
@@ -5,0 +5,0 @@ "mcpName": "io.github.yonro/xmemo", |
@@ -216,4 +216,57 @@ /** | ||
| const STATIC_PROMPTS = [ | ||
| { | ||
| name: 'remember', | ||
| description: 'Save a memory to XMemo for future recall across sessions.', | ||
| arguments: [ | ||
| { name: 'content', description: 'The text to remember.', required: true }, | ||
| { name: 'path', description: 'Category path, e.g. preferences, projects/myapp.', required: false } | ||
| ] | ||
| }, | ||
| { | ||
| name: 'recall', | ||
| description: 'Recall relevant memories from XMemo before answering a question.', | ||
| arguments: [ | ||
| { name: 'query', description: 'What to search for in memory.', required: true } | ||
| ] | ||
| }, | ||
| { | ||
| name: 'project-context', | ||
| description: 'Build a context pack from XMemo for the current project or task.', | ||
| arguments: [ | ||
| { name: 'query', description: 'Describe the project or task context needed.', required: true } | ||
| ] | ||
| } | ||
| ]; | ||
| function handlePromptsGet(id, params, ctx) { | ||
| const name = params?.name; | ||
| const prompt = STATIC_PROMPTS.find(p => p.name === name); | ||
| if (!prompt) { | ||
| return makeError(id, -32602, `Prompt not found: ${name}`); | ||
| } | ||
| const args = params?.arguments || {}; | ||
| const messages = []; | ||
| if (name === 'remember') { | ||
| messages.push({ | ||
| role: 'user', | ||
| content: { type: 'text', text: `Remember this: ${args.content || '(no content provided)'}${args.path ? ` [path: ${args.path}]` : ''}` } | ||
| }); | ||
| } else if (name === 'recall') { | ||
| messages.push({ | ||
| role: 'user', | ||
| content: { type: 'text', text: `Recall memories related to: ${args.query || '(no query provided)'}` } | ||
| }); | ||
| } else if (name === 'project-context') { | ||
| messages.push({ | ||
| role: 'user', | ||
| content: { type: 'text', text: `Build XMemo context for: ${args.query || '(no query provided)'}` } | ||
| }); | ||
| } | ||
| return makeResult(id, { description: prompt.description, messages }); | ||
| } | ||
| const SERVER_CAPABILITIES = { | ||
| tools: {} | ||
| tools: {}, | ||
| prompts: {} | ||
| }; | ||
@@ -301,3 +354,5 @@ | ||
| case 'prompts/list': | ||
| return makeResult(id, { prompts: [] }); | ||
| return makeResult(id, { prompts: STATIC_PROMPTS }); | ||
| case 'prompts/get': | ||
| return handlePromptsGet(id, params, ctx); | ||
| case 'resources/list': | ||
@@ -304,0 +359,0 @@ return makeResult(id, { resources: [] }); |
Unidentified License
LicenseSomething that seems like a license was found, but its contents could not be matched with a known license.
Found 2 instances
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Unidentified License
LicenseSomething that seems like a license was found, but its contents could not be matched with a known license.
Found 2 instances
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
273450
0.69%5435
0.98%