page.tsx 484 B

12345678910111213141516171819202122
  1. import { Analytics } from "@vercel/analytics/react";
  2. import { Home } from "./components/home";
  3. import { getServerSideConfig } from "./config/server";
  4. import { initializeMcpSystem } from "./mcp/actions";
  5. const serverConfig = getServerSideConfig();
  6. export default async function App() {
  7. // 初始化 MCP 系统
  8. await initializeMcpSystem();
  9. return (
  10. <>
  11. <Home />
  12. {serverConfig?.isVercel && (
  13. <>
  14. <Analytics />
  15. </>
  16. )}
  17. </>
  18. );
  19. }