diff options
Diffstat (limited to 'src/main/ipc/handlers.ts')
| -rw-r--r-- | src/main/ipc/handlers.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main/ipc/handlers.ts b/src/main/ipc/handlers.ts index e0863f3..4894e1d 100644 --- a/src/main/ipc/handlers.ts +++ b/src/main/ipc/handlers.ts | |||
| @@ -4,6 +4,7 @@ import * as sessions from "../db/sessions"; | |||
| 4 | import * as claude from "../claude"; | 4 | import * as claude from "../claude"; |
| 5 | import * as settingsDb from "../db/settings"; | 5 | import * as settingsDb from "../db/settings"; |
| 6 | import { createSessionBranch, ensureGitIgnore, ensureGitRepo, getCurrentBranch } from "../git"; | 6 | import { createSessionBranch, ensureGitIgnore, ensureGitRepo, getCurrentBranch } from "../git"; |
| 7 | import { discoverMcpTools } from "../mcp"; | ||
| 7 | import type { UserPermissionMode } from "../claude/phases"; | 8 | import type { UserPermissionMode } from "../claude/phases"; |
| 8 | import { getDefaultSystemPromptTemplate } from "../claude/phases"; | 9 | import { getDefaultSystemPromptTemplate } from "../claude/phases"; |
| 9 | 10 | ||
| @@ -199,4 +200,15 @@ export function registerIpcHandlers(mainWindow: BrowserWindow): void { | |||
| 199 | }); | 200 | }); |
| 200 | return result.canceled ? null : result.filePaths[0]; | 201 | return result.canceled ? null : result.filePaths[0]; |
| 201 | }); | 202 | }); |
| 203 | |||
| 204 | // MCP | ||
| 205 | ipcMain.handle("mcp:discoverTools", async (_, config: { | ||
| 206 | type: "stdio" | "sse" | "http"; | ||
| 207 | command?: string; | ||
| 208 | args?: string[]; | ||
| 209 | env?: Record<string, string>; | ||
| 210 | url?: string; | ||
| 211 | }) => { | ||
| 212 | return discoverMcpTools(config); | ||
| 213 | }); | ||
| 202 | } | 214 | } |
