Skip to content

Commit 90216ff

Browse files
authored
fix query_doc tool-name (#19)
Signed-off-by: Eitan Yarmush <[email protected]>
1 parent d6426de commit 90216ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mcp/src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ const server = new McpServer({
142142

143143
// --- Define the MCP Tool ---
144144
server.tool(
145-
"query-documentation",
145+
"query_documentation",
146146
"Query documentation stored in a sqlite-vec database using vector search.",
147147
{
148148
queryText: z.string().min(1).describe("The natural language query to search for."),
@@ -179,7 +179,7 @@ server.tool(
179179
content: [{ type: "text", text: responseText }],
180180
};
181181
} catch (error: any) {
182-
console.error("Error processing 'query-documentation' tool:", error);
182+
console.error("Error processing 'query_documentation' tool:", error);
183183
return {
184184
content: [{ type: "text", text: `Error querying documentation: ${error.message}` }],
185185
};
@@ -444,4 +444,4 @@ async function main() {
444444
main().catch((error) => {
445445
console.error("Failed to start MCP server:", error);
446446
process.exit(1);
447-
});
447+
});

0 commit comments

Comments
 (0)