Skip to content

Commit 3be0201

Browse files
committed
Review fixes
1 parent 5d77644 commit 3be0201

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

ui/src/components/MCPConfigModal/MCPCatalog.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,9 @@ export function MCPCatalog({ onPick, onAddManual, onCancel, favorites = [] }: MC
242242
return;
243243
setError(err instanceof Error ? err.message : String(err));
244244
} finally {
245-
if (!ctrl?.signal.aborted) setLoadingMore(null);
245+
// Always clear, even on abort — otherwise a new search cancelling an
246+
// in-flight load-more would leave the button stuck in its loading state.
247+
setLoadingMore(null);
246248
}
247249
};
248250

ui/src/services/mcpRegistry/client.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,13 @@ function buildStdioCommand(pkg: MCPRegistryPackage): string | null {
148148
}
149149
}
150150

151-
/** Default URL to connect to a supergateway-wrapped local server. */
151+
/**
152+
* Default URL to connect to a supergateway-wrapped local server.
153+
*
154+
* Note: supergateway binds a fixed port, so only one stdio-wrapped server can
155+
* run at a time with this default. Users who need multiple concurrent local
156+
* servers must edit the generated command to pass a different `--port`.
157+
*/
152158
const SUPERGATEWAY_DEFAULT_URL = "http://localhost:8000/mcp";
153159

154160
export interface InstallCommand {

0 commit comments

Comments
 (0)