Fix: bin file in package.json

This commit is contained in:
2026-04-14 18:21:14 +05:30
parent 8e81078661
commit 5946daa29e
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -9,7 +9,7 @@
"type": "module", "type": "module",
"main": "src/mcp-server.ts", "main": "src/mcp-server.ts",
"bin": { "bin": {
"ask262": "bun run src/mcp-server.ts" "ask262": "src/mcp-server.ts"
}, },
"scripts": { "scripts": {
"type-check": "tsc --noEmit", "type-check": "tsc --noEmit",
+2 -1
View File
@@ -1,3 +1,4 @@
#!/usr/bin/env bun
/** /**
* Ask262 MCP Server * Ask262 MCP Server
* Provides MCP-compatible tools for exploring the ECMAScript specification. * Provides MCP-compatible tools for exploring the ECMAScript specification.
@@ -81,7 +82,7 @@ const embeddings = new OllamaEmbeddings({
baseUrl: process.env.OLLAMA_HOST, baseUrl: process.env.OLLAMA_HOST,
}); });
async function main() { export async function main() {
// Connect to LanceDB // Connect to LanceDB
const db = await lancedbSdk.connect(STORAGE_DIR); const db = await lancedbSdk.connect(STORAGE_DIR);
const table = await db.openTable("spec_vectors"); const table = await db.openTable("spec_vectors");