neuro-vault-mcp 1.2.1 → 1.3.1
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/dist/cli.js +33 -6
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -13929,6 +13929,10 @@ function parseAjsonContent(content) {
|
|
|
13929
13929
|
}
|
|
13930
13930
|
pos++;
|
|
13931
13931
|
while (pos < len && (content[pos] === " " || content[pos] === " ")) pos++;
|
|
13932
|
+
if (pos + 4 <= len && content.slice(pos, pos + 4) === "null") {
|
|
13933
|
+
pos += 4;
|
|
13934
|
+
continue;
|
|
13935
|
+
}
|
|
13932
13936
|
if (pos >= len || content[pos] !== "{") {
|
|
13933
13937
|
throw new Error(`Expected opening brace for key "${key}" in AJSON content`);
|
|
13934
13938
|
}
|
|
@@ -14441,11 +14445,34 @@ var getSimilarNotesSchema = external_exports.object({
|
|
|
14441
14445
|
var findDuplicatesSchema = external_exports.object({
|
|
14442
14446
|
threshold: external_exports.number().min(0).max(1).optional()
|
|
14443
14447
|
});
|
|
14448
|
+
var SERVER_INSTRUCTIONS = `This server provides semantic search over an Obsidian vault using Smart Connections embeddings.
|
|
14449
|
+
|
|
14450
|
+
## Search strategy
|
|
14451
|
+
|
|
14452
|
+
Semantic search works best with short, focused queries (1-4 words). Long sentences or full questions dilute the signal and often return no results.
|
|
14453
|
+
|
|
14454
|
+
When looking for information:
|
|
14455
|
+
1. Extract the core nouns and concepts from the user's message \u2014 strip away filler words, verbs, and context. For example, from "remind me what I wanted to build with LLM agents" the key concepts are "LLM", "agents", "build" \u2014 not the full sentence.
|
|
14456
|
+
2. Start with several SHORT keyword queries rather than one long phrase. Search each key concept separately and in small combinations. For example, try: "LLM", "agents", "LLM agents", "AI projects".
|
|
14457
|
+
3. Try synonyms and reformulations \u2014 the note may use different wording than the query.
|
|
14458
|
+
4. The vault may contain notes in multiple languages. Try queries in each language the user speaks (e.g. both Ukrainian and English).
|
|
14459
|
+
5. If a search returns no results, lower the threshold to 0.3 before giving up.
|
|
14460
|
+
6. Once you find a relevant note, use get_similar_notes to discover related content.
|
|
14461
|
+
|
|
14462
|
+
## Reading results
|
|
14463
|
+
|
|
14464
|
+
Search results include block headings and line ranges \u2014 use these as pointers to read specific sections of the matched notes rather than reading entire files.
|
|
14465
|
+
`;
|
|
14444
14466
|
function defaultServerFactory() {
|
|
14445
|
-
return new McpServer(
|
|
14446
|
-
|
|
14447
|
-
|
|
14448
|
-
|
|
14467
|
+
return new McpServer(
|
|
14468
|
+
{
|
|
14469
|
+
name: SERVER_NAME,
|
|
14470
|
+
version: SERVER_VERSION
|
|
14471
|
+
},
|
|
14472
|
+
{
|
|
14473
|
+
instructions: SERVER_INSTRUCTIONS
|
|
14474
|
+
}
|
|
14475
|
+
);
|
|
14449
14476
|
}
|
|
14450
14477
|
function defaultTransportFactory() {
|
|
14451
14478
|
return new StdioServerTransport();
|
|
@@ -14518,7 +14545,7 @@ function createNeuroVaultServer({
|
|
|
14518
14545
|
"search_notes",
|
|
14519
14546
|
{
|
|
14520
14547
|
title: "Search Notes",
|
|
14521
|
-
description: "Search
|
|
14548
|
+
description: "Search notes by semantic similarity. Use short keyword queries (1-4 words), not full sentences. Make multiple calls with different keywords, synonyms, and languages to get comprehensive results. Lower the threshold (e.g. 0.3) if no results are found.",
|
|
14522
14549
|
inputSchema: searchNotesSchema
|
|
14523
14550
|
},
|
|
14524
14551
|
async (args) => invokeTool(() => handlers.searchNotes(args))
|
|
@@ -14527,7 +14554,7 @@ function createNeuroVaultServer({
|
|
|
14527
14554
|
"get_similar_notes",
|
|
14528
14555
|
{
|
|
14529
14556
|
title: "Get Similar Notes",
|
|
14530
|
-
description:
|
|
14557
|
+
description: 'Find notes similar to a given note. Use this after search_notes finds a relevant note \u2014 it discovers related content without needing a text query. Pass a vault-relative POSIX path (e.g. "Folder/note.md").',
|
|
14531
14558
|
inputSchema: getSimilarNotesSchema
|
|
14532
14559
|
},
|
|
14533
14560
|
async (args) => invokeTool(() => handlers.getSimilarNotes(args))
|