Skip to content

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

feat(settings): add MCP server management page

Steven Enamakel8d0941e462b8
diff --git a/app/src/components/channels/mcp/McpServersPage.tsx b/app/src/components/channels/mcp/McpServersPage.tsx
index 98a30b7e92..7a4b4ee4fd 100644
--- a/app/src/components/channels/mcp/McpServersPage.tsx
+++ b/app/src/components/channels/mcp/McpServersPage.tsx
@@ -12,16 +12,23 @@ import { useState } from 'react';
import { useT } from '../../../lib/i18n/I18nContext';
import SettingsTabbedPage from '../../settings/layout/SettingsTabbedPage';
+import McpServerPanel from '../../settings/panels/McpServerPanel';
import BetaIndicator from '../../ui/BetaIndicator';
import McpServersTab, { type McpPageTab } from './McpServersTab';
+/**
+ * `clients` sets up external MCP clients (Claude Desktop, Cursor, …) to use
+ * OpenHuman as their server. It was the Settings → MCP Server page.
+ */
+type McpTab = McpPageTab | 'clients';
+
interface McpServersPageProps {
- initialTab?: McpPageTab;
+ initialTab?: McpTab;
}
const McpServersPage = ({ initialTab = 'servers' }: McpServersPageProps) => {
const { t } = useT();
- const [tab, setTab] = useState<McpPageTab>(initialTab);
+ const [tab, setTab] = useState<McpTab>(initialTab);
return (
<SettingsTabbedPage
@@ -30,6 +37,7 @@ const McpServersPage = ({ initialTab = 'servers' }: McpServersPageProps) => {
headerAction={<BetaIndicator />}
tabs={[
{ id: 'servers', label: t('mcp.tab.section.servers') },
+ { id: 'clients', label: t('mcp.tab.section.clients') },
{ id: 'json', label: t('mcp.tab.section.json') },
{ id: 'registry', label: t('mcp.tab.section.registry') },
]}
@@ -37,7 +45,11 @@ const McpServersPage = ({ initialTab = 'servers' }: McpServersPageProps) => {
onChange={setTab}
tabsAriaLabel={t('mcp.tab.tablistAria')}
tabsTestIdPrefix="mcp-page-tab">
- <McpServersTab tab={tab} onTabChange={setTab} />
+ {tab === 'clients' ? (
+ <McpServerPanel embedded />
+ ) : (
+ <McpServersTab tab={tab} onTabChange={setTab} />
+ )}
</SettingsTabbedPage>
);
};
diff --git a/app/src/components/settings/hooks/useSettingsNavigation.ts b/app/src/components/settings/hooks/useSettingsNavigation.ts
index 398869f145..2e497e80e5 100644
--- a/app/src/components/settings/hooks/useSettingsNavigation.ts
+++ b/app/src/components/settings/hooks/useSettingsNavigation.ts
@@ -33,7 +33,6 @@ type SettingsRoute =
| 'approval-history'
| 'integrations'
| 'composio-triggers'
- | 'mcp-server'
| 'sandbox-settings'
| 'permissions'
| 'usage'
diff --git a/app/src/components/settings/layout/settingsNavIcons.tsx b/app/src/components/settings/layout/settingsNavIcons.tsx
index d66dacc44d..5fdb8ccac0 100644
--- a/app/src/components/settings/layout/settingsNavIcons.tsx
+++ b/app/src/components/settings/layout/settingsNavIcons.tsx
@@ -132,9 +132,6 @@ export const SETTINGS_NAV_ICONS: Record<string, ReactNode> = {
'M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-6 0h.01M12 16h3m-6 0h.01'
)
),
- 'mcp-server': icon(
- stroke('M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z')
- ),
search: icon(stroke('M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z')),
// Diagnostics & Logs
'event-log': icon(stroke('M4 6h16M4 10h16M4 14h16M4 18h16')),
diff --git a/app/src/components/settings/panels/McpServerPanel.tsx b/app/src/components/settings/panels/McpServerPanel.tsx
index eaf0e5666b..a9f69bc102 100644
--- a/app/src/components/settings/panels/McpServerPanel.tsx
+++ b/app/src/components/settings/panels/McpServerPanel.tsx
@@ -265,8 +265,9 @@ const McpServerPanel = ({ embedded = false }: McpServerPanelProps = {}) => {
</>
);
+ // Embedded in Connections → MCP → Clients, whose page owns the header.
if (embedded) {
- return <PanelPage className="z-10">{body}</PanelPage>;
+ return <div className="space-y-5">{body}</div>;
}
return (
diff --git a/app/src/components/settings/settingsRouteElements.tsx b/app/src/components/settings/settingsRouteElements.tsx
index cb15d43226..eeb995ed12 100644
--- a/app/src/components/settings/settingsRouteElements.tsx
+++ b/app/src/components/settings/settingsRouteElements.tsx
@@ -15,7 +15,6 @@ import DeveloperOptionsPanel from './panels/DeveloperOptionsPanel';
import EventLogPanel from './panels/EventLogPanel';
import FeedbackPanel from './panels/FeedbackPanel';
import MascotPanel from './panels/MascotPanel';
-import McpServerPanel from './panels/McpServerPanel';
import MemoryDataPanel from './panels/MemoryDataPanel';
import MemoryDebugPanel from './panels/MemoryDebugPanel';
import MigrationPanel from './panels/MigrationPanel';
@@ -160,7 +159,7 @@ export function settingsRouteElements(): ReactNode {
path="tool-policy-diagnostics"
element={wrapSettingsPage(<ToolPolicyDiagnosticsPanel />)}
/>
- <Route path="mcp-server" element={wrapSettingsPage(<McpServerPanel />)} />
+ <Route path="mcp-server" element={<SettingsRedirect to="/connections?tab=mcp" />} />
{/* Search engine settings moved to the Connections page. */}
<Route path="search" element={<Navigate to="/connections?tab=search" replace />} />
{/* Agent Chat debug tester retired — the panel is deleted. The slug is
diff --git a/app/src/components/settings/settingsRouteRegistry.ts b/app/src/components/settings/settingsRouteRegistry.ts
index c94173b337..defdf776f8 100644
--- a/app/src/components/settings/settingsRouteRegistry.ts
+++ b/app/src/components/settings/settingsRouteRegistry.ts
@@ -536,15 +536,7 @@ export const SETTINGS_ROUTE_REGISTRY: SettingsRegistryEntry[] = [
navGroup: 'diagnosticsLogs',
},
// Automation & Integrations (debug)
- {
- id: 'mcp-server',
- titleKey: 'settings.developerMenu.mcpServer.title',
- descriptionKey: 'settings.developerMenu.mcpServer.desc',
- section: 'developer',
- devOnly: true,
- navGroup: 'automationIntegrations',
- searchKeywords: ['mcp', 'server'],
- },
+ // mcp-server moved to Connections → MCP → Clients; the slug redirects.
// dev-workflow (the cron-based GitHub dev-automation panel) was retired —
// superseded by first-level Workflows (/flows) and the skills workflow runner.
// Composio trigger-triage config merged into the Connections Composio page.
diff --git a/app/src/lib/i18n/en.ts b/app/src/lib/i18n/en.ts
index 7947085311..1711d1b61d 100644
--- a/app/src/lib/i18n/en.ts
+++ b/app/src/lib/i18n/en.ts
@@ -1995,6 +1995,7 @@ const en: TranslationMap = {
'mcp.json.unsaved': 'Unsaved changes',
'mcp.registry.title': 'MCP directory',
'mcp.tab.section.servers': 'Servers',
+ 'mcp.tab.section.clients': 'Clients',
'mcp.tab.section.json': 'mcp.json',
'mcp.tab.section.registry': 'Registry',
'mcp.tab.back': 'Back to servers',