feat: add ENABLE_MCP env var to toggle MCP feature globally and in Docker

This commit is contained in:
Kadxy
2025-01-18 21:19:01 +08:00
parent 0112b54bc7
commit bc71ae247b
10 changed files with 161 additions and 87 deletions

View File

@@ -1,14 +1,10 @@
import { Analytics } from "@vercel/analytics/react";
import { Home } from "./components/home";
import { getServerSideConfig } from "./config/server";
import { initializeMcpSystem } from "./mcp/actions";
const serverConfig = getServerSideConfig();
export default async function App() {
// 初始化 MCP 系统
await initializeMcpSystem();
return (
<>
<Home />