diff --git a/package.json b/package.json index eebe4ba..5cca34e 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "type": "module", "main": "src/mcp-server.ts", "bin": { - "ask262": "bun run src/mcp-server.ts" + "ask262": "src/mcp-server.ts" }, "scripts": { "type-check": "tsc --noEmit", diff --git a/src/mcp-server.ts b/src/mcp-server.ts index 4e30b2d..19eaa67 100644 --- a/src/mcp-server.ts +++ b/src/mcp-server.ts @@ -1,3 +1,4 @@ +#!/usr/bin/env bun /** * Ask262 MCP Server * Provides MCP-compatible tools for exploring the ECMAScript specification. @@ -81,7 +82,7 @@ const embeddings = new OllamaEmbeddings({ baseUrl: process.env.OLLAMA_HOST, }); -async function main() { +export async function main() { // Connect to LanceDB const db = await lancedbSdk.connect(STORAGE_DIR); const table = await db.openTable("spec_vectors");