Skip to content

Commit 8babfab

Browse files
committed
feat: add support for --local option
1 parent 63a6768 commit 8babfab

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"scripts": {
88
"start": "run-on-output -n 'ready' -p 'burger.*lock,agent.*lock' concurrently \"npm:start:*\" --kill-others",
99
"start:burger": "npm run start --workspace=burger-webapp",
10-
"start:mcp": "npm run start --workspace=burger-mcp",
10+
"start:mcp": "npm run start --workspace=burger-mcp --",
1111
"start:agent": "npm run start --workspace=agent-webapp",
1212
"ready": "echo '\n🚀 All services ready 🚀\n\n- Agent webapp : http://localhost:4280\n- Burger webapp : http://localhost:5173\n- Burger MCP : http://localhost:3000/mcp\n'",
1313
"build": "npm run build --workspaces --if-present",

packages/burger-mcp/src/config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ const __dirname = path.dirname(new URL(import.meta.url).pathname);
66
// Env file is located in the root of the repository
77
dotenv.config({ path: path.join(__dirname, '../../../.env'), quiet: true });
88

9-
export const burgerApiUrl = process.env.BURGER_API_URL || 'http://localhost:7071';
9+
// Use --local option to force MCP server to connect to local Burger API
10+
export const burgerApiUrl = (process.argv[2] !== '--local' && process.env.BURGER_API_URL) || 'http://localhost:7071';

0 commit comments

Comments
 (0)