Skip to content

fix(tray): use configured port for Open Web UI#362

Merged
Dumbris merged 1 commit intomainfrom
fix/361-tray-webui-port
Apr 2, 2026
Merged

fix(tray): use configured port for Open Web UI#362
Dumbris merged 1 commit intomainfrom
fix/361-tray-webui-port

Conversation

@Dumbris
Copy link
Copy Markdown
Member

@Dumbris Dumbris commented Apr 2, 2026

Summary

  • Reads the actual listen address from /api/v1/info instead of hardcoding port 8080 in the macOS tray app's "Open Web UI" action
  • Adds webUIBaseURL property to AppState, populated from the info endpoint during core connection
  • Fixes both TrayMenu.openWebUI() (SwiftUI menu) and AppController.openWebUI() (NSMenu) to use the dynamic URL
  • Also fixes SSEClient initialization to use the correct base URL

Test plan

  • Configure mcpproxy with a non-default port (e.g., "listen": "127.0.0.1:18080")
  • Launch tray app, verify "Open Web UI" opens http://127.0.0.1:18080/ui/
  • Verify server action buttons (approve, view details) also open correct port
  • Verify SSE event stream connects on the correct port
  • Verify default port 8080 still works when no custom port is configured
  • Verify the API key is correctly appended to the URL

Fixes #361

🤖 Generated with Claude Code

… 8080

Reads the actual listen address from the /api/v1/info endpoint
instead of hardcoding port 8080. This fixes the issue where users
with non-default ports would be directed to the wrong URL.

The webUiUrl from the info response is parsed to extract the base URL
(scheme + host + port), stored in AppState.webUIBaseURL, and used by
both TrayMenu.openWebUI() and AppController.openWebUI(). The SSEClient
also uses the correct base URL now instead of hardcoded 8080.

Fixes #361

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying mcpproxy-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: e98ae5b
Status: ✅  Deploy successful!
Preview URL: https://724e767b.mcpproxy-docs.pages.dev
Branch Preview URL: https://fix-361-tray-webui-port.mcpproxy-docs.pages.dev

View logs

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 2, 2026

📦 Build Artifacts

Workflow Run: View Run
Branch: fix/361-tray-webui-port

Available Artifacts

  • archive-darwin-amd64 (25 MB)
  • archive-darwin-arm64 (23 MB)
  • archive-linux-amd64 (14 MB)
  • archive-linux-arm64 (13 MB)
  • archive-windows-amd64 (25 MB)
  • archive-windows-arm64 (22 MB)
  • frontend-dist-pr (0 MB)
  • installer-dmg-darwin-amd64 (19 MB)
  • installer-dmg-darwin-arm64 (17 MB)

How to Download

Option 1: GitHub Web UI (easiest)

  1. Go to the workflow run page linked above
  2. Scroll to the bottom "Artifacts" section
  3. Click on the artifact you want to download

Option 2: GitHub CLI

gh run download 23882338875 --repo smart-mcp-proxy/mcpproxy-go

Note: Artifacts expire in 14 days.

@Dumbris Dumbris merged commit 3770ece into main Apr 2, 2026
23 checks passed
@Dumbris Dumbris deleted the fix/361-tray-webui-port branch April 2, 2026 04:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New MacOS Menu tray application always assumes default port is used for Web UI.

2 participants