feat(codex-lsp): lazy-start mcp backend

This commit is contained in:
YeonGyu-Kim
2026-05-29 12:18:24 +09:00
parent 5030a116f3
commit 4bf9095456
14 changed files with 1013 additions and 10 deletions
+2 -2
View File
@@ -39,7 +39,7 @@ describe("codex-cache", () => {
mcpServers: {
ast_grep: { cwd: ".", args: ["../../ast-grep-mcp/dist/cli.js", "mcp"] },
custom: { args: ["/usr/local/bin/custom-mcp", "--stdio"] },
lsp: { cwd: ".", args: ["../../lsp-tools-mcp/dist/cli.js", "mcp"] },
lsp: { cwd: ".", args: ["./components/lsp/dist/cli.js", "mcp"] },
},
}),
)
@@ -60,7 +60,7 @@ describe("codex-cache", () => {
expect(rewritten.mcpServers.ast_grep.args[0]).toBe(join(root, "packages", "ast-grep-mcp", "dist", "cli.js"))
expect(rewritten.mcpServers.custom.args).toEqual(["/usr/local/bin/custom-mcp", "--stdio"])
expect(rewritten.mcpServers.lsp.cwd).toBeUndefined()
expect(rewritten.mcpServers.lsp.args[0]).toBe(join(root, "packages", "lsp-tools-mcp", "dist", "cli.js"))
expect(rewritten.mcpServers.lsp.args[0]).toBe(join(cacheRoot, "./components/lsp/dist/cli.js"))
})
test("rewrites cached package file dependencies that point outside the plugin cache back to the source package", async () => {