Call load-config in serve mode before MCP/LSP init
ober
188c53d3958c67fe6dabbad0d7a0192568e9dcef
--- a/lib/jcode/ui/serve.sls +++ b/lib/jcode/ui/serve.sls @@ -391,6 +391,7 @@ "[INFO] no token found (run with --port to generate)~n")) (flush-output-port (current-error-port)) (exit 0))) + (load-config) (let ([t-mcp (spawn init-mcp-tools)] [t-lsp (spawn init-lsp-tools)]) (thread-join! t-mcp) --- a/src/jcode/ui/serve.ss +++ b/src/jcode/ui/serve.ss @@ -440,6 +440,8 @@ (fprintf (current-error-port) "[INFO] no token found (run with --port to generate)~n")) (flush-output-port (current-error-port)) (exit 0))) + ;; Load config first (CLI/TUI do this too — without it, MCP/LSP have no config) + (load-config) ;; Initialize MCP and LSP connections (same as CLI/TUI) (let ((t-mcp (spawn init-mcp-tools)) (t-lsp (spawn init-lsp-tools)))