Skip to content

Commit 268f87f

Browse files
committed
[mcp-ui-server]: fix env variable loading in vite-node dev mode
1 parent 9380d6e commit 268f87f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

demo/mcp-ui-server/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
2-
"name": "option-selector-mcp",
2+
"name": "acp-mcp-ui-server",
33
"version": "1.0.0",
44
"type": "module",
5-
"description": "MCP-UI server with interactive option selection",
5+
"description": "MCP-UI server for ACP demo",
66
"main": "dist/index.js",
77
"scripts": {
88
"build": "tsc",
99
"start": "node dist/index.js",
10-
"dev": "vite-node src/index.ts"
10+
"dev": "NODE_OPTIONS='-r dotenv/config' vite-node src/index.ts"
1111
},
1212
"keywords": ["mcp", "mcp-ui", "commerce", "acp"],
1313
"author": "Locus <info@paywithlocus.com>",

demo/mcp-ui-server/src/routes/payment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Express } from 'express';
22
import { MerchantSessionService } from '../services/MerchantSessionService.js';
33
import { Logger } from '../utils/logger.js';
44

5-
const MERCHANT_URL = process.env.MERCHANT_BASE_URL || 'http://localhost:3000';
5+
const MERCHANT_URL = process.env.MERCHANT_BASE_URL || 'http://localhost:4001';
66
const PSP_URL = process.env.PSP_BASE_URL || 'http://localhost:4000';
77
const MERCHANT_API_KEY = process.env.MERCHANT_API_KEY || 'test_api_key_123';
88
const MERCHANT_API_VERSION = process.env.MERCHANT_API_VERSION || '2025-09-29';

0 commit comments

Comments
 (0)