Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

feat(catalog): register mcp custom server capability

Steven Enamakel992cbbcf6555
diff --git a/app/src/components/channels/mcp/CustomServerFormModal.tsx b/app/src/components/channels/mcp/CustomServerFormModal.tsx
index 99fbc2af21..95c46b607c 100644
--- a/app/src/components/channels/mcp/CustomServerFormModal.tsx
+++ b/app/src/components/channels/mcp/CustomServerFormModal.tsx
@@ -110,7 +110,7 @@ const CustomServerFormModal = ({ mode, server, onClose, onSubmit }: CustomServer
const initialHttpOrigin = useRef(
mode === 'edit' && seedTransport(server) === 'http_remote' ? originOf(seedUrl(server)) : null
);
- const httpOriginChanged = useRef(false);
+ const displayedHttpOrigin = useRef(initialHttpOrigin.current);
const isEdit = mode === 'edit';
@@ -171,20 +171,19 @@ const CustomServerFormModal = ({ mode, server, onClose, onSubmit }: CustomServer
setUrl(next);
const initialOrigin = initialHttpOrigin.current;
const nextOrigin = originOf(next);
- if (nextOrigin === initialOrigin) {
- httpOriginChanged.current = false;
- } else if (
+ if (
isEdit &&
transport === 'http_remote' &&
initialOrigin &&
- !httpOriginChanged.current
+ nextOrigin &&
+ nextOrigin !== displayedHttpOrigin.current
) {
// The core drops credentials when the HTTP origin changes. Clear the
// write-only rows too, so the form cannot imply that blank means keep.
setEnvRows([newRow()]);
setError(null);
- httpOriginChanged.current = true;
}
+ if (nextOrigin) displayedHttpOrigin.current = nextOrigin;
};
/**
diff --git a/src/openhuman/platform/about_app/catalog_part_02.rs b/src/openhuman/platform/about_app/catalog_part_02.rs
index 225c6bebfa..726fb3a179 100644
--- a/src/openhuman/platform/about_app/catalog_part_02.rs
+++ b/src/openhuman/platform/about_app/catalog_part_02.rs
@@ -506,6 +506,15 @@ Capability {
destinations: &["Configured MCP endpoint(s)"],
}),
},
+ Capability {
+ id: "channels.mcp_custom_server",
+ name: "Add Custom MCP Servers",
+ domain: "channels",
+ category: CapabilityCategory::Channels,
+ description: "Add and manage user-entered MCP servers using local commands or remote HTTP endpoints. Credentials are stored locally and excluded from responses.",
+ status: CapabilityStatus::Beta,
+ privacy: LOCAL_CREDENTIALS,
+ },
Capability {
id: "channels.mcp_connection_alerts",
name: "MCP Connection Health Alerts",
diff --git a/src/openhuman/platform/about_app/catalog_tests.rs b/src/openhuman/platform/about_app/catalog_tests.rs
index 4839fe6538..8917634c37 100644
--- a/src/openhuman/platform/about_app/catalog_tests.rs
+++ b/src/openhuman/platform/about_app/catalog_tests.rs
@@ -149,6 +149,7 @@ fn catalog_includes_additional_user_facing_surfaces() {
"settings.clear_app_data",
"local_ai.configure_provider",
"intelligence.mcp_server",
+ "channels.mcp_custom_server",
"intelligence.searxng_search",
"intelligence.tool_registry",
"intelligence.agent_library",