feat(network): centralize proxy settings and add MCP routing (NAN-315) (#6372)
* feat(network): share proxy settings across features and MCP (NAN-315) * fix(network): address shared proxy review regressions * test(network): align rebased OAuth fixtures with runtime admission * fix(webui): configure shared proxy without leaving connection drafts * feat(webui): add optional shared proxy authentication editor * fix(webui): align proxy save tests and loading skeleton
This commit is contained in:
1 parent
872a83340d
commit
084b6bb394
181 files changed
+3740
-807
No files matched your search
@@ -97,6 +97,7 @@ _MCP_PRESET_ACTIONS_BY_PATH = {
|
||||
"/api/settings/mcp-presets/remove": "remove",
|
||||
"/api/settings/mcp-presets/test": "test",
|
||||
"/api/settings/mcp-presets/reconnect": "reconnect",
|
||||
"/api/settings/mcp-presets/proxy": "proxy",
|
||||
"/api/settings/mcp-presets/custom": "custom",
|
||||
"/api/settings/mcp-presets/import": "import",
|
||||
"/api/settings/mcp-presets/import-cursor": "import-cursor",
|
||||
@@ -653,7 +654,7 @@ class WebUISettingsRouter:
|
||||
return self._error_response(500, "MCP OAuth callback is not configured")
|
||||
query = self._parse_mcp_settings_query(request)
|
||||
try:
|
||||
name, cfg = await asyncio.to_thread(
|
||||
name, cfg, network = await asyncio.to_thread(
|
||||
self.settings.mutate,
|
||||
ensure_mcp_oauth_server,
|
||||
query,
|
||||
@@ -665,6 +666,7 @@ class WebUISettingsRouter:
|
||||
cfg,
|
||||
redirect_uri,
|
||||
reload_mcp=self._reload_mcp_runtime,
|
||||
network=network,
|
||||
reset_credentials=reset,
|
||||
)
|
||||
except Exception as exc:
|
||||
|
||||
Reference in new issue
Block a user