diff --git a/src/index.ts b/src/index.ts index 4d96d71..769049f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -12,6 +12,7 @@ import { ListToolsRequestSchema, } from "@modelcontextprotocol/sdk/types.js"; import { LlamaCloudIndex, MetadataMode } from "llamaindex"; +import packageJson from "../package.json" with { type: "json" }; // Define the tool definition interface interface ToolDefinition { @@ -82,7 +83,7 @@ function parseToolDefinitions(): ToolDefinition[] { const server = new Server( { name: "llamacloud-mcp-server", - version: "0.1.0", + version: packageJson.version, }, { capabilities: { diff --git a/tsconfig.json b/tsconfig.json index a14bee0..d3b7aa3 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,14 +1,15 @@ { "compilerOptions": { "target": "ES2022", - "module": "Node16", - "moduleResolution": "Node16", + "module": "NodeNext", + "moduleResolution": "NodeNext", "outDir": "./build", "rootDir": "./src", "strict": true, "esModuleInterop": true, "skipLibCheck": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "resolveJsonModule": true }, "include": ["src/**/*"], "exclude": ["node_modules"]