mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-27 07:16:19 +09:00
feat: mcp-connection
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
export interface BaseMCPConnection {
|
||||
type: string
|
||||
name: string
|
||||
active: boolean
|
||||
}
|
||||
|
||||
export interface StdioMCPConnection extends BaseMCPConnection {
|
||||
type: 'stdio'
|
||||
command: string
|
||||
args: string[]
|
||||
env: Record<string, string>
|
||||
cwd: string
|
||||
}
|
||||
|
||||
export interface BaseHTTPMCPConnection extends BaseMCPConnection {
|
||||
url: string
|
||||
headers: Record<string, string>
|
||||
}
|
||||
|
||||
export interface HTTPMCPConnection extends BaseHTTPMCPConnection {
|
||||
type: 'http'
|
||||
}
|
||||
|
||||
export interface SSEMCPConnection extends BaseHTTPMCPConnection {
|
||||
type: 'sse'
|
||||
}
|
||||
|
||||
export type MCPConnection =
|
||||
| StdioMCPConnection
|
||||
| HTTPMCPConnection
|
||||
| SSEMCPConnection
|
||||
Reference in New Issue
Block a user