Add MCP support (#1028)

This commit is contained in:
Will Chen
2025-09-19 15:43:39 -07:00
committed by GitHub
parent 7b160b7d0b
commit 6d3c397d40
39 changed files with 3865 additions and 650 deletions

View File

@@ -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];