Skip to content

Commit ec92d1b

Browse files
Update src/services/mcp/McpHub.ts
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
1 parent 7688aae commit ec92d1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/mcp/McpHub.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const createServerTypeSchema = () => {
6363
type: z.enum(["stdio"]).optional(),
6464
command: z.string().min(1, "Command cannot be empty"),
6565
args: z.array(z.string()).optional(),
66-
cwd: z.string().default(vscode.workspace.workspaceFolders?.at(0)?.uri.fsPath ?? process.cwd()),
66+
cwd: z.string().default(() => vscode.workspace.workspaceFolders?.at(0)?.uri.fsPath ?? process.cwd()),
6767
env: z.record(z.string()).optional(),
6868
// Ensure no SSE fields are present
6969
url: z.undefined().optional(),

0 commit comments

Comments
 (0)