refactor(server): strictly enforce CLI port argument for bind, dropping MCP_PORT env var fallback

This commit is contained in:
Riz Ashraf committed 2026-10-12 06:24:12 +01:00
1 parent 81853dfed7
commit 3b3bb36b32
5 files changed
+57 -17

No files matched your search

+2
View File
@@ -59,6 +59,8 @@ async fn test_full_system_e2e_performance() {
// 1. Start Server
let _server = ChildGuard(
Command::new(&server_exe)
.arg("--port")
.arg(test_port)
.env("MCP_PORT", test_port)
.env("RUST_LOG", "debug")
.env("MCP_MEMORY_STORE_DIR", temp_dir.to_str().unwrap())