Add McpHub and sync with McpView

This commit is contained in:
Saoud Rizwan
2024-12-05 19:00:55 -08:00
parent fa62548b01
commit 17d481d4d1
10 changed files with 577 additions and 215 deletions

21
src/shared/mcp.ts Normal file
View File

@@ -0,0 +1,21 @@
export type McpServer = {
name: string
config: string
status: "connected" | "connecting" | "disconnected"
error?: string
tools?: McpTool[]
resources?: McpResource[]
}
export type McpTool = {
name: string
description?: string
inputSchema?: object
}
export type McpResource = {
uri: string
name: string
mimeType?: string
description?: string
}