feat: completely remove the fucking mcp market components and refs

This commit is contained in:
Junyan Qin
2025-11-03 20:23:53 +08:00
parent f3199dda20
commit bc1fbfa190
10 changed files with 26 additions and 930 deletions
@@ -2,13 +2,13 @@
import { useEffect, useState } from 'react';
import styles from '@/app/home/plugins/plugins.module.css';
import MCPCardComponent from '@/app/home/plugins/mcp/mcp-card/MCPCardComponent';
import { MCPCardVO } from '@/app/home/plugins/mcp/MCPCardVO';
import MCPCardComponent from '@/app/home/plugins/mcp-server/mcp-card/MCPCardComponent';
import { MCPCardVO } from '@/app/home/plugins/mcp-server/MCPCardVO';
import { useTranslation } from 'react-i18next';
import { httpClient } from '@/app/infra/http/HttpClient';
export default function MCPMarketComponent({
export default function MCPComponent({
onEditServer,
toolsCountCache = {},
}: {
@@ -20,7 +20,6 @@ export default function MCPMarketComponent({
const [installedServers, setInstalledServers] = useState<MCPCardVO[]>([]);
const [loading, setLoading] = useState(false);
useEffect(() => {
initData();
}, []);
@@ -40,7 +39,7 @@ export default function MCPMarketComponent({
.then((resp) => {
const servers = resp.servers.map((server) => {
const vo = new MCPCardVO(server);
if (toolsCountCache[server.name] !== undefined) {
vo.tools = toolsCountCache[server.name];
}
@@ -55,8 +54,6 @@ export default function MCPMarketComponent({
});
}
return (
<div className={`${styles.marketComponentBody}`}>
{/* 已安装的服务器列表 */}