Skip to content

Commit 77baa9b

Browse files
Merge pull request #1 from docknetwork/fix-env
Using dotenv to load the environment
2 parents 44d9bc1 + 345562f commit 77baa9b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import dotenv from "dotenv";
12
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
23
import {
34
ListToolsRequestSchema,
@@ -10,6 +11,7 @@ import { buildToolList, buildHandlerMapFromTruvera } from "./tools/composeTools.
1011
import { BUILD_INFO } from "./build-info.js";
1112

1213
// Configuration from environment variables
14+
dotenv.config();
1315
const API_KEY = process.env.TRUVERA_API_KEY;
1416
const API_ENDPOINT = process.env.TRUVERA_API_ENDPOINT || "https://api.truvera.com";
1517
const MCP_PORT = parseInt(process.env.MCP_PORT || "3000", 10);

0 commit comments

Comments
 (0)