import React from "react"; import { Title, Card, Button, Text, Grid, TabGroup, TabList, TabPanel, TabPanels, Tab, } from "@tremor/react"; import { MCPServer, handleTransport, handleAuth } from "./types"; // TODO: Move Tools viewer from index file import { MCPToolsViewer } from "."; interface MCPServerViewProps { mcpServer: MCPServer; onBack: () => void; isProxyAdmin: boolean; isEditing: boolean; accessToken: string | null; userRole: string | null; userID: string | null; } export const MCPServerView: React.FC = ({ mcpServer, onBack, isEditing, isProxyAdmin, accessToken, userRole, userID, }) => { return (
{mcpServer.alias} {mcpServer.server_id}
{/* TODO: magic number for index */} {[ Overview, MCP Tools, ...(isProxyAdmin ? [Settings] : []), ]} {/* Overview Panel */} Transport
{handleTransport(mcpServer.transport ?? undefined)}
Auth Type
{handleAuth(mcpServer.auth_type ?? undefined)}
Host Url
{mcpServer.url}
{/* Tool Panel */} {/* Settings Panel */}
Editing MCP Servers coming soon!
); };