Add MCP Servers view

This commit is contained in:
Saoud Rizwan
2024-12-01 12:13:16 -08:00
parent b5d03dd523
commit 5052944efe
6 changed files with 11441 additions and 11371 deletions

View File

@@ -0,0 +1,37 @@
import { VSCodeButton } from "@vscode/webview-ui-toolkit/react"
type McpViewProps = {
onDone: () => void
}
const McpView = ({ onDone }: McpViewProps) => {
return (
<div
style={{
position: "fixed",
top: 0,
left: 0,
right: 0,
bottom: 0,
display: "flex",
flexDirection: "column",
overflow: "hidden",
}}>
<div
style={{
display: "flex",
justifyContent: "space-between",
alignItems: "center",
padding: "10px 17px 10px 20px",
}}>
<h3 style={{ color: "var(--vscode-foreground)", margin: 0 }}>MCP</h3>
<VSCodeButton onClick={onDone}>Done</VSCodeButton>
</div>
<div style={{ padding: "20px", display: "flex", justifyContent: "center" }}>
<VSCodeButton>Add Server</VSCodeButton>
</div>
</div>
)
}
export default McpView