mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-07-22 12:26:08 +00:00
23fa47b07e
- Refactor MCP servers to be managed as collapsible sidebar sub-items with ?id= detail routing and inline form (matching bots/pipelines pattern) - Add MCPDetailContent with create/edit modes, enable toggle, and danger zone - Extract MCPForm as standalone inline form from MCPFormDialog - Move API Integration to standalone sidebar footer button - Add GitHub star CTA with live star count badge in user dropdown menu - Add MCP server status dot indicators in sidebar (green/gray for enabled/disabled) - Add i18n keys for MCP detail page and GitHub star CTA in all 4 locales
22 lines
547 B
TypeScript
22 lines
547 B
TypeScript
'use client';
|
|
|
|
import { useSearchParams } from 'next/navigation';
|
|
import { useTranslation } from 'react-i18next';
|
|
import MCPDetailContent from './MCPDetailContent';
|
|
|
|
export default function MCPPage() {
|
|
const { t } = useTranslation();
|
|
const searchParams = useSearchParams();
|
|
const detailId = searchParams.get('id');
|
|
|
|
if (detailId) {
|
|
return <MCPDetailContent id={detailId} />;
|
|
}
|
|
|
|
return (
|
|
<div className="flex h-full items-center justify-center text-muted-foreground">
|
|
<p>{t('mcp.selectFromSidebar')}</p>
|
|
</div>
|
|
);
|
|
}
|