fix(mcp): default port 40615, invalid port input shows an error; build with mold
- Default MCP port 47615 -> 40615. WSL mirrored networking reserves 44620-48715 on Windows, so the Windows app could never bind 47615 (AddrInUse with nothing listening). - Port field: invalid input (e.g. 4761540000) keeps the text and shows a red error instead of silently reverting to the old port. - Linux builds link with clang + mold; README lists clang, mold, sccache. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@@ -1,3 +1,7 @@
1
1
# libwebrtc's prebuilt Windows lib is built with /MT; a /MD Rust build fails to link (RuntimeLibrary mismatch).
2
2
[target.x86_64-pc-windows-msvc]
3
3
rustflags = ["-C", "target-feature=+crt-static"]
4
5
[target.x86_64-unknown-linux-gnu]
6
linker = "clang"
7
rustflags = ["-C", "link-arg=-fuse-ld=mold"]
@@ -1,3 +1,7 @@1
# libwebrtc's prebuilt Windows lib is built with /MT; a /MD Rust build fails to link (RuntimeLibrary mismatch).1
# libwebrtc's prebuilt Windows lib is built with /MT; a /MD Rust build fails to link (RuntimeLibrary mismatch).2
[target.x86_64-pc-windows-msvc]2
[target.x86_64-pc-windows-msvc]3
rustflags = ["-C", "target-feature=+crt-static"]3
rustflags = ["-C", "target-feature=+crt-static"]4
5
[target.x86_64-unknown-linux-gnu]6
linker = "clang"7
rustflags = ["-C", "link-arg=-fuse-ld=mold"]@@ -67,7 +67,7 @@
67
67
- Organizer controls: lobby banner with Admit and Deny, tile menu (pin, spotlight, mute, remove), Mute all, live captions overlay, camera background blur
68
68
69
69
**Agents (MCP)**
70
- Local MCP server at `http://127.0.0.1:47615/mcp`, off by default: Settings > MCP
70
- Local MCP server at `http://127.0.0.1:40615/mcp`, off by default: Settings > MCP
71
71
- Agents read allowed chats, channels, meetings and transcripts, and propose replies
72
72
- A proposal shows as a card above the composer: Send, Edit or Discard. Agents never send
73
73
- One-click install for Claude Code, Codex CLI, Copilot CLI, VS Code and Cursor, Windows and WSL. WSL needs `networkingMode=mirrored`
@@ -97,6 +97,7 @@ cargo run -p app -- --demo
97
97
98
98
| Task | Command |
99
99
|---|---|
100
| Linux build needs clang + mold (set in `.cargo/config.toml`); sccache shares compiled deps across worktrees | `sudo apt install clang mold sccache` |
100
101
| Against Chrome on a debug port | `cargo run -p app -- --endpoint http://127.0.0.1:9222` |
101
102
| Windows exe from WSL/Linux | `scripts/build-windows.sh crates/app teams` |
102
103
| Tests | `cargo test` |
@@ -67,7 +67,7 @@67
- Organizer controls: lobby banner with Admit and Deny, tile menu (pin, spotlight, mute, remove), Mute all, live captions overlay, camera background blur67
- Organizer controls: lobby banner with Admit and Deny, tile menu (pin, spotlight, mute, remove), Mute all, live captions overlay, camera background blur68
68
69
**Agents (MCP)**69
**Agents (MCP)**70
- Local MCP server at `http://127.0.0.1:47615/mcp`, off by default: Settings > MCP70
- Local MCP server at `http://127.0.0.1:40615/mcp`, off by default: Settings > MCP71
- Agents read allowed chats, channels, meetings and transcripts, and propose replies71
- Agents read allowed chats, channels, meetings and transcripts, and propose replies72
- A proposal shows as a card above the composer: Send, Edit or Discard. Agents never send72
- A proposal shows as a card above the composer: Send, Edit or Discard. Agents never send73
- One-click install for Claude Code, Codex CLI, Copilot CLI, VS Code and Cursor, Windows and WSL. WSL needs `networkingMode=mirrored`73
- One-click install for Claude Code, Codex CLI, Copilot CLI, VS Code and Cursor, Windows and WSL. WSL needs `networkingMode=mirrored`@@ -97,6 +97,7 @@ cargo run -p app -- --demo97
97
98
| Task | Command |98
| Task | Command |99
|---|---|99
|---|---|100
| Linux build needs clang + mold (set in `.cargo/config.toml`); sccache shares compiled deps across worktrees | `sudo apt install clang mold sccache` |100
| Against Chrome on a debug port | `cargo run -p app -- --endpoint http://127.0.0.1:9222` |101
| Against Chrome on a debug port | `cargo run -p app -- --endpoint http://127.0.0.1:9222` |101
| Windows exe from WSL/Linux | `scripts/build-windows.sh crates/app teams` |102
| Windows exe from WSL/Linux | `scripts/build-windows.sh crates/app teams` |102
| Tests | `cargo test` |103
| Tests | `cargo test` |@@ -218,6 +218,7 @@ pub struct McpView {
218
218
tab: McpTab,
219
219
picker: Option<Scope>,
220
220
port_input: Entity<InputState>,
221
port_invalid: bool,
221
222
search_input: Entity<InputState>,
222
223
copied: Option<Copied>,
223
224
install_states: Option<Vec<InstallState>>,
@@ -251,6 +252,7 @@ impl McpView {
251
252
tab: McpTab::Server,
252
253
picker: None,
253
254
port_input,
255
port_invalid: false,
254
256
search_input,
255
257
copied: None,
256
258
install_states: None,
@@ -267,24 +269,28 @@ impl McpView {
267
269
&mut self,
268
270
input: &Entity<InputState>,
269
271
event: &InputEvent,
270
window: &mut Window,
272
_window: &mut Window,
271
273
cx: &mut Context<Self>,
272
274
) {
273
275
if !matches!(event, InputEvent::Blur | InputEvent::PressEnter { .. }) {
274
276
return;
275
277
}
276
278
let current = agent_api::policy(cx).port;
277
let typed = input.read(cx).value().trim().parse::<u16>().ok();
278
match typed.filter(|port| *port != 0) {
279
Some(port) if port != current => {
280
agent_api::update_policy(cx, |policy| policy.port = port)
281
}
282
Some(_) => {}
283
None => input.update(cx, |input, cx| {
284
input.set_value(current.to_string(), window, cx)
285
}),
279
let typed = input
280
.read(cx)
281
.value()
282
.trim()
283
.parse::<u16>()
284
.ok()
285
.filter(|port| *port != 0);
286
self.port_invalid = typed.is_none();
287
if let Some(port) = typed
288
&& port != current
289
{
290
agent_api::update_policy(cx, |policy| policy.port = port);
286
291
}
287
292
self.refresh_wsl(cx);
293
cx.notify();
288
294
}
289
295
290
296
fn refresh_wsl(&mut self, cx: &mut Context<Self>) {
@@ -683,6 +689,16 @@ impl McpView {
683
689
.flex_none()
684
690
.child(Input::new(&self.port_input)),
685
691
))
692
.when(self.port_invalid, |tab| {
693
tab.child(
694
div()
695
.px(px(20.))
696
.pb(px(4.))
697
.text_size(px(12.))
698
.text_color(theme::red_soft())
699
.child("Enter a port from 1 to 65535. Nothing was saved."),
700
)
701
})
686
702
.when(running && self.wsl_unreachable, |tab| {
687
703
tab.child(wsl_warning())
688
704
})
@@ -218,6 +218,7 @@ pub struct McpView {218
tab: McpTab,218
tab: McpTab,219
picker: Option<Scope>,219
picker: Option<Scope>,220
port_input: Entity<InputState>,220
port_input: Entity<InputState>,221
port_invalid: bool,221
search_input: Entity<InputState>,222
search_input: Entity<InputState>,222
copied: Option<Copied>,223
copied: Option<Copied>,223
install_states: Option<Vec<InstallState>>,224
install_states: Option<Vec<InstallState>>,@@ -251,6 +252,7 @@ impl McpView {251
tab: McpTab::Server,252
tab: McpTab::Server,252
picker: None,253
picker: None,253
port_input,254
port_input,255
port_invalid: false,254
search_input,256
search_input,255
copied: None,257
copied: None,256
install_states: None,258
install_states: None,@@ -267,24 +269,28 @@ impl McpView {267
&mut self,269
&mut self,268
input: &Entity<InputState>,270
input: &Entity<InputState>,269
event: &InputEvent,271
event: &InputEvent,270
window: &mut Window,272
_window: &mut Window,271
cx: &mut Context<Self>,273
cx: &mut Context<Self>,272
) {274
) {273
if !matches!(event, InputEvent::Blur | InputEvent::PressEnter { .. }) {275
if !matches!(event, InputEvent::Blur | InputEvent::PressEnter { .. }) {274
return;276
return;275
}277
}276
let current = agent_api::policy(cx).port;278
let current = agent_api::policy(cx).port;277
let typed = input.read(cx).value().trim().parse::<u16>().ok();279
let typed = input278
match typed.filter(|port| *port != 0) {280
.read(cx)279
Some(port) if port != current => {281
.value()280
agent_api::update_policy(cx, |policy| policy.port = port)282
.trim()281
}283
.parse::<u16>()282
Some(_) => {}284
.ok()283
None => input.update(cx, |input, cx| {285
.filter(|port| *port != 0);284
input.set_value(current.to_string(), window, cx)286
self.port_invalid = typed.is_none();285
}),287
if let Some(port) = typed288
&& port != current289
{290
agent_api::update_policy(cx, |policy| policy.port = port);286
}291
}287
self.refresh_wsl(cx);292
self.refresh_wsl(cx);293
cx.notify();288
}294
}289
295
290
fn refresh_wsl(&mut self, cx: &mut Context<Self>) {296
fn refresh_wsl(&mut self, cx: &mut Context<Self>) {@@ -683,6 +689,16 @@ impl McpView {683
.flex_none()689
.flex_none()684
.child(Input::new(&self.port_input)),690
.child(Input::new(&self.port_input)),685
))691
))692
.when(self.port_invalid, |tab| {693
tab.child(694
div()695
.px(px(20.))696
.pb(px(4.))697
.text_size(px(12.))698
.text_color(theme::red_soft())699
.child("Enter a port from 1 to 65535. Nothing was saved."),700
)701
})686
.when(running && self.wsl_unreachable, |tab| {702
.when(running && self.wsl_unreachable, |tab| {687
tab.child(wsl_warning())703
tab.child(wsl_warning())688
})704
})@@ -1,6 +1,6 @@
1
1
use std::collections::BTreeSet;
2
2
3
pub const DEFAULT_PORT: u16 = 47615;
3
pub const DEFAULT_PORT: u16 = 40615;
4
4
5
5
#[derive(Debug, Clone, PartialEq, Eq, Default)]
6
6
pub enum Access {
@@ -1,6 +1,6 @@1
use std::collections::BTreeSet;1
use std::collections::BTreeSet;2
2
3
pub const DEFAULT_PORT: u16 = 47615;3
pub const DEFAULT_PORT: u16 = 40615;4
4
5
#[derive(Debug, Clone, PartialEq, Eq, Default)]5
#[derive(Debug, Clone, PartialEq, Eq, Default)]6
pub enum Access {6
pub enum Access {