Quick note: To configure/change the bridge port number from default 3100 to e.g. 3101, or run the bridge from a different host other than the IRIS server:
-
1. Update bridge port File: workpath/AIAgent/bridge/.env Set: PORT=3101 If .env is missing, create it from .env.example. 2. Restart bridge From workpath/AIAgent/bridge, run: npm installnpm run buildnpm start Verify bridge health Run: curl http://localhost:3101/api/health Expected: healthy response (status ok). 3. Update IRIS setting used by CSP In IRIS terminal, run: do ##class(Ens.Config.DefaultSettings).SetValue("AIAgent","BridgeURL","http://localhost:3101") 4. Keep global config in sync (recommended) In IRIS terminal, run: set ^AIAgent.Config("BridgeURL")="http://localhost:3101" 5. Verify IRIS is using new URL In IRIS terminal, run: write ##class(AIAgent.Engine.BridgeClient).GetBridgeURL(),!zw ##class(AIAgent.Engine.BridgeClient).HealthCheck() Expected: URL is http://localhost:3101 and health is reachable. 6. Run E2E Test in IRIS do ##class(AIAgent.Test.E2E).Run("http://localhost:3101") 7 Run Node E2E Test(from workpath/AIAgent/bridge): $env:BRIDGE_URL="http://localhost:3101"npm run e2e:samplenpm run e2e:realworld 8. If bridge is on another machine Use http://<bridge-host>:3101 instead of localhost in previous steps, and ensure firewall/network allows TCP 3101.
- Log in to post comments

