musistudio/claude-code-router · error

Plugin id is required.

Error message

Plugin id is required.

What it means

Error "Plugin id is required." thrown in musistudio/claude-code-router.

Source

Thrown at packages/electron/src/main/ipc.ts:162

  if (!server) {
    throw new Error("MCP server must be saved before tool discovery.");
  }
  return listMcpServerTools(server);
});
ipcMain.handle(IPC_CHANNELS.appStartChromeLoginImport, async (_event, request: ChromeLoginImportRequest) => {
  return await chromeLoginImportService.createJob(request);
});
ipcMain.handle(IPC_CHANNELS.appGetChromeLoginImport, (_event, id: string) => {
  return chromeLoginImportService.getJob(typeof id === "string" ? id : "");
});
ipcMain.handle(IPC_CHANNELS.appOpenBuiltInBrowser, async (_event, url?: string) => {
  const config = await loadAppConfig();
  await builtInBrowserService.open(config, url);
});
ipcMain.handle(IPC_CHANNELS.appOpenPluginApp, async (_event, pluginId: string, appId?: string) => {
  const normalizedPluginId = readString(pluginId);
  if (!normalizedPluginId) {
    throw new Error("Plugin id is required.");
  }
  await deepLinkService.openPluginApp(normalizedPluginId, readString(appId));
});
ipcMain.handle(IPC_CHANNELS.appCloseTray, () => {
  trayController.hidePopover();
});
ipcMain.handle(IPC_CHANNELS.appDetectProviderIcon, (_event, request: ProviderIconDetectionRequest) => {
  return detectProviderIcon(request);
});
ipcMain.handle(IPC_CHANNELS.appClearProxyNetworkCaptures, () => proxyService.clearNetworkCaptures());
ipcMain.handle(IPC_CHANNELS.appSetProxyNetworkCaptureEnabled, (_event, enabled: boolean) => {
  return proxyService.setNetworkCaptureEnabled(Boolean(enabled));
});
ipcMain.handle(IPC_CHANNELS.appSelectPluginDirectory, async (event) => {
  const window = BrowserWindow.fromWebContents(event.sender);
  const options: OpenDialogOptions = {
    buttonLabel: "Select plugin",
    properties: ["openDirectory"],

View on GitHub (pinned to 99f24806c6)

When it happens

Trigger: Thrown at packages/electron/src/main/ipc.ts:162 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of musistudio/claude-code-router@99f24806c6 (2026-08-27). Data as JSON: /api/errors/0b6dd7060f3f4b76. Report an issue: GitHub.