Add MCP support (#1028)
This commit is contained in:
@@ -109,6 +109,16 @@ const validInvokeChannels = [
|
||||
"restart-dyad",
|
||||
"get-templates",
|
||||
"portal:migrate-create",
|
||||
// MCP
|
||||
"mcp:list-servers",
|
||||
"mcp:create-server",
|
||||
"mcp:update-server",
|
||||
"mcp:delete-server",
|
||||
"mcp:list-tools",
|
||||
"mcp:get-tool-consents",
|
||||
"mcp:set-tool-consent",
|
||||
// MCP consent response from renderer to main
|
||||
"mcp:tool-consent-response",
|
||||
// Help bot
|
||||
"help:chat:start",
|
||||
"help:chat:cancel",
|
||||
@@ -138,6 +148,8 @@ const validReceiveChannels = [
|
||||
"help:chat:response:chunk",
|
||||
"help:chat:response:end",
|
||||
"help:chat:response:error",
|
||||
// MCP consent request from main to renderer
|
||||
"mcp:tool-consent-request",
|
||||
] as const;
|
||||
|
||||
type ValidInvokeChannel = (typeof validInvokeChannels)[number];
|
||||
|
||||
Reference in New Issue
Block a user