Skip to content

Error with LM Studio: Plugin process exited unexpectedly with code 1. (Logs attached) #16

@takasurazeem

Description

@takasurazeem
Developer Logs
2025-10-25 11:23:57  [INFO]
 [LM STUDIO SERVER] Success! HTTP server listening on port 1234
2025-10-25 11:23:57  [INFO]
2025-10-25 11:23:57  [INFO]
 [LM STUDIO SERVER] Supported endpoints:
2025-10-25 11:23:57  [INFO]
 [LM STUDIO SERVER] ->	GET  http://localhost:1234/v1/models
2025-10-25 11:23:57  [INFO]
 [LM STUDIO SERVER] ->	POST http://localhost:1234/v1/responses
2025-10-25 11:23:57  [INFO]
 [LM STUDIO SERVER] ->	POST http://localhost:1234/v1/chat/completions
2025-10-25 11:23:57  [INFO]
 [LM STUDIO SERVER] ->	POST http://localhost:1234/v1/completions
2025-10-25 11:23:57  [INFO]
 [LM STUDIO SERVER] ->	POST http://localhost:1234/v1/embeddings
2025-10-25 11:23:57  [INFO]
2025-10-25 11:23:57  [INFO]
 [LM STUDIO SERVER] Logs are saved into /Users/takasurazeem/.lmstudio/server-logs
2025-10-25 11:23:57  [INFO]
 Server started.
2025-10-25 11:23:57  [INFO]
 Just-in-time model loading active.
2025-10-25 11:24:00  [INFO]
 [Plugin(lmstudio/js-code-sandbox)] stdout: [Tools Prvdr.] Register with LM Studio
2025-10-25 11:24:00  [INFO]
 [Plugin(lmstudio/rag-v1)] stdout: [PromptPreprocessor] Register with LM Studio
2025-10-25 11:31:21 [ERROR]
 [Plugin(mcp/web-search)] stderr: node:internal/modules/cjs/loader:1228
  throw err;
  ^

Error: Cannot find module '/Users/takasurazeem/.lmstudio/extensions/plugins/mcp/web-search/~/mcp-servers/web-search-mcp/dist/index.js'
    at Function._resolveFilename (node:internal/modules/cjs/loader:1225:15)
    at Function._load (node:internal/modules/cjs/loader:1055:27)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:220:24)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:170:5)
    at node:internal/main/run_main_module:36:49 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v22.14.0
2025-10-25 11:31:21 [ERROR]
 [Plugin(mcp/web-search)] stderr: Error in LM Studio MCP bridge process: _0xe877d2 [McpError]: MCP error -32000: Connection closed
    at _0x5831c1._onclose (/Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/mcpbridgeworker.js:29:229949)
    at <computed>.<computed> [as onclose] (/Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/mcpbridgeworker.js:29:228676)
    at ChildProcess.<anonymous> (/Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/mcpbridgeworker.js:29:203852)
    at ChildProcess.emit (node:events:519:28)
    at maybeClose (node:internal/child_process:1105:16)
    at ChildProcess._handle.onexit (node:internal/child_process:305:5) {
  code: -32000,
  data: undefined
}
2025-10-25 11:31:21 [ERROR]
 [Plugin(mcp/web-search)] stderr: _0xe877d2 [McpError]: MCP error -32000: Connection closed
    at _0x5831c1._onclose (/Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/mcpbridgeworker.js:29:229949)
    at <computed>.<computed> [as onclose] (/Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/mcpbridgeworker.js:29:228676)
    at ChildProcess.<anonymous> (/Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/mcpbridgeworker.js:29:203852)
    at ChildProcess.emit (node:events:519:28)
    at maybeClose (node:internal/child_process:1105:16)
    at ChildProcess._handle.onexit (node:internal/child_process:305:5) {
  code: -32000,
  data: undefined
}
2025-10-25 11:33:18 [ERROR]
 [Plugin(mcp/web-search)] stderr: node:internal/modules/cjs/loader:1228
  throw err;
  ^

Error: Cannot find module '/Users/takasurazeem/.lmstudio/extensions/plugins/mcp/web-search/~/mcp-servers/web-search-mcp/dist/index.js'
    at Function._resolveFilename (node:internal/modules/cjs/loader:1225:15)
    at Function._load (node:internal/modules/cjs/loader:1055:27)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:220:24)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:170:5)
    at node:internal/main/run_main_module:36:49 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v22.14.0
2025-10-25 11:33:18 [ERROR]
 [Plugin(mcp/web-search)] stderr: Error in LM Studio MCP bridge process: _0xe877d2 [McpError]: MCP error -32000: Connection closed
    at _0x5831c1._onclose (/Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/mcpbridgeworker.js:29:229949)
    at <computed>.<computed> [as onclose] (/Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/mcpbridgeworker.js:29:228676)
    at ChildProcess.<anonymous> (/Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/mcpbridgeworker.js:29:203852)
    at ChildProcess.emit (node:events:519:28)
    at maybeClose (node:internal/child_process:1105:16)
    at ChildProcess._handle.onexit (node:internal/child_process:305:5) {
  code: -32000,
  data: undefined
}
_0xe877d2 [McpError]: MCP error -32000: Connection closed
    at _0x5831c1._onclose (/Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/mcpbridgeworker.js:29:229949)
    at <computed>.<computed> [as onclose] (/Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/mcpbridgeworker.js:29:228676)
    at ChildProcess.<anonymous> (/Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/mcpbridgeworker.js:29:203852)
    at ChildProcess.emit (node:events:519:28)
    at maybeClose (node:internal/child_process:1105:16)
    at ChildProcess._handle.onexit (node:internal/child_process:305:5) {
  code: -32000,
  data: undefined
}
2025-10-25 11:37:11 [ERROR]
 [Plugin(mcp/web-search)] stderr: node:internal/modules/cjs/loader:1228
  throw err;
  ^

Error: Cannot find module '/Users/takasurazeem/.lmstudio/extensions/plugins/mcp/web-search/~/mcp-servers/web-search-mcp/dist/index.js'
    at Function._resolveFilename (node:internal/modules/cjs/loader:1225:15)
    at Function._load (node:internal/modules/cjs/loader:1055:27)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:220:24)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:170:5)
    at node:internal/main/run_main_module:36:49 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v22.14.0
2025-10-25 11:37:11 [ERROR]
 [Plugin(mcp/web-search)] stderr: Error in LM Studio MCP bridge process: _0xe877d2 [McpError]: MCP error -32000: Connection closed
    at _0x5831c1._onclose (/Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/mcpbridgeworker.js:29:229949)
    at <computed>.<computed> [as onclose] (/Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/mcpbridgeworker.js:29:228676)
    at ChildProcess.<anonymous> (/Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/mcpbridgeworker.js:29:203852)
    at ChildProcess.emit (node:events:519:28)
    at maybeClose (node:internal/child_process:1105:16)
    at ChildProcess._handle.onexit (node:internal/child_process:305:5) {
  code: -32000,
  data: undefined
}
_0xe877d2 [McpError]: MCP error -32000: Connection closed
    at _0x5831c1._onclose (/Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/mcpbridgeworker.js:29:229949)
    at <computed>.<computed> [as onclose] (/Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/mcpbridgeworker.js:29:228676)
    at ChildProcess.<anonymous> (/Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/mcpbridgeworker.js:29:203852)
    at ChildProcess.emit (node:events:519:28)
    at maybeClose (node:internal/child_process:1105:16)
    at ChildProcess._handle.onexit (node:internal/child_process:305:5) {
  code: -32000,
  data: undefined
}
2025-10-25 11:37:28 [ERROR]
 [Plugin(mcp/web-search)] stderr: node:internal/modules/cjs/loader:1228
  throw err;
  ^

Error: Cannot find module '/Users/takasurazeem/.lmstudio/extensions/plugins/mcp/web-search/~/mcp-servers/web-search-mcp/dist/index.js'
    at Function._resolveFilename (node:internal/modules/cjs/loader:1225:15)
    at Function._load (node:internal/modules/cjs/loader:1055:27)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:220:24)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:170:5)
    at node:internal/main/run_main_module:36:49 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v22.14.0
2025-10-25 11:37:28 [ERROR]
 [Plugin(mcp/web-search)] stderr: Error in LM Studio MCP bridge process: _0xe877d2 [McpError]: MCP error -32000: Connection closed
    at _0x5831c1._onclose (/Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/mcpbridgeworker.js:29:229949)
    at <computed>.<computed> [as onclose] (/Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/mcpbridgeworker.js:29:228676)
    at ChildProcess.<anonymous> (/Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/mcpbridgeworker.js:29:203852)
    at ChildProcess.emit (node:events:519:28)
    at maybeClose (node:internal/child_process:1105:16)
    at ChildProcess._handle.onexit (node:internal/child_process:305:5) {
  code: -32000,
  data: undefined
}
_0xe877d2 [McpError]: MCP error -32000: Connection closed
    at _0x5831c1._onclose (/Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/mcpbridgeworker.js:29:229949)
    at <computed>.<computed> [as onclose] (/Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/mcpbridgeworker.js:29:228676)
    at ChildProcess.<anonymous> (/Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/mcpbridgeworker.js:29:203852)
    at ChildProcess.emit (node:events:519:28)
    at maybeClose (node:internal/child_process:1105:16)
    at ChildProcess._handle.onexit (node:internal/child_process:305:5) {
  code: -32000,
  data: undefined
}
2025-10-25 11:38:41 [ERROR]
 [Plugin(mcp/web-search)] stderr: node:internal/modules/cjs/loader:1228
  throw err;
  ^

Error: Cannot find module '/Users/takasurazeem/.lmstudio/extensions/plugins/mcp/web-search/~/mcp-servers/web-search-mcp/dist/index.js'
    at Function._resolveFilename (node:internal/modules/cjs/loader:1225:15)
    at Function._load (node:internal/modules/cjs/loader:1055:27)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:220:24)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:170:5)
    at node:internal/main/run_main_module:36:49 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v22.14.0
2025-10-25 11:38:41 [ERROR]
 [Plugin(mcp/web-search)] stderr: Error in LM Studio MCP bridge process: _0xe877d2 [McpError]: MCP error -32000: Connection closed
    at _0x5831c1._onclose (/Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/mcpbridgeworker.js:29:229949)
    at <computed>.<computed> [as onclose] (/Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/mcpbridgeworker.js:29:228676)
    at ChildProcess.<anonymous> (/Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/mcpbridgeworker.js:29:203852)
    at ChildProcess.emit (node:events:519:28)
    at maybeClose (node:internal/child_process:1105:16)
    at ChildProcess._handle.onexit (node:internal/child_process:305:5) {
  code: -32000,
  data: undefined
}
2025-10-25 11:38:41 [ERROR]
 [Plugin(mcp/web-search)] stderr: _0xe877d2 [McpError]: MCP error -32000: Connection closed
    at _0x5831c1._onclose (/Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/mcpbridgeworker.js:29:229949)
    at <computed>.<computed> [as onclose] (/Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/mcpbridgeworker.js:29:228676)
    at ChildProcess.<anonymous> (/Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/mcpbridgeworker.js:29:203852)
    at ChildProcess.emit (node:events:519:28)
    at maybeClose (node:internal/child_process:1105:16)
    at ChildProcess._handle.onexit (node:internal/child_process:305:5) {
  code: -32000,
  data: undefined
}
2025-10-25 11:41:11 [ERROR]
 [Plugin(mcp/web-search)] stderr: node:internal/modules/cjs/loader:1228
  throw err;
  ^

Error: Cannot find module '/Users/takasurazeem/.lmstudio/extensions/plugins/mcp/web-search/~/mcp-servers/web-search-mcp/dist/index.js'
    at Function._resolveFilename (node:internal/modules/cjs/loader:1225:15)
    at Function._load (node:internal/modules/cjs/loader:1055:27)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:220:24)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:170:5)
    at node:internal/main/run_main_module:36:49 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v22.14.0
2025-10-25 11:41:11 [ERROR]
 [Plugin(mcp/web-search)] stderr: Error in LM Studio MCP bridge process: _0xe877d2 [McpError]: MCP error -32000: Connection closed
    at _0x5831c1._onclose (/Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/mcpbridgeworker.js:29:229949)
    at <computed>.<computed> [as onclose] (/Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/mcpbridgeworker.js:29:228676)
    at ChildProcess.<anonymous> (/Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/mcpbridgeworker.js:29:203852)
    at ChildProcess.emit (node:events:519:28)
    at maybeClose (node:internal/child_process:1105:16)
    at ChildProcess._handle.onexit (node:internal/child_process:305:5) {
  code: -32000,
  data: undefined
}
2025-10-25 11:41:11 [ERROR]
 [Plugin(mcp/web-search)] stderr: _0xe877d2 [McpError]: MCP error -32000: Connection closed
    at _0x5831c1._onclose (/Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/mcpbridgeworker.js:29:229949)
    at <computed>.<computed> [as onclose] (/Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/mcpbridgeworker.js:29:228676)
    at ChildProcess.<anonymous> (/Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/mcpbridgeworker.js:29:203852)
    at ChildProcess.emit (node:events:519:28)
    at maybeClose (node:internal/child_process:1105:16)
    at ChildProcess._handle.onexit (node:internal/child_process:305:5) {
  code: -32000,
  data: undefined
}```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions