Skip to content

Commit 8f8acd5

Browse files
committed
fix: remove instruction on how to handle un-initialized docsets
the init tool should now be resolved automagically
1 parent 72e4b77 commit 8f8acd5

2 files changed

Lines changed: 3 additions & 12 deletions

File tree

packages/mcp-server/src/__tests__/integration.test.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,7 @@ docsets:
196196

197197
// Should return an error
198198
expect(result.isError).toBe(true);
199-
expect(result.content[0].text).toContain("not initialized");
200-
expect(result.content[0].text).toContain(
201-
"npx agentic-knowledge-mcp init",
202-
);
199+
expect(result.content[0].text).toContain("been initialized");
203200
});
204201
});
205202
});

packages/mcp-server/src/server.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -332,10 +332,7 @@ ${config.docsets.map((d) => `• **${d.id}** (${d.name})`).join("\n")}`,
332332

333333
if (!existsSync(metadataPath)) {
334334
throw new Error(
335-
`Docset '${docset_id}' is not initialized.\n\n` +
336-
`The docset is configured but hasn't been initialized yet.\n\n` +
337-
`To initialize this docset:\n` +
338-
`npx agentic-knowledge-mcp init ${docset_id}\n\n`,
335+
`Docset '${docset_id}' hasn't been initialized yet.`,
339336
);
340337
}
341338

@@ -361,10 +358,7 @@ ${config.docsets.map((d) => `• **${d.id}** (${d.name})`).join("\n")}`,
361358

362359
if (!existsSync(metadataPath)) {
363360
throw new Error(
364-
`Docset '${docset_id}' is not initialized.\n\n` +
365-
`The docset is configured but hasn't been initialized yet.\n\n` +
366-
`To initialize this docset:\n` +
367-
`npx agentic-knowledge-mcp init ${docset_id}\n\n`,
361+
`Docset '${docset_id}' hasn't been initialized yet.\n\n`,
368362
);
369363
}
370364
} else {

0 commit comments

Comments
 (0)