We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7688aae commit ec92d1bCopy full SHA for ec92d1b
src/services/mcp/McpHub.ts
@@ -63,7 +63,7 @@ const createServerTypeSchema = () => {
63
type: z.enum(["stdio"]).optional(),
64
command: z.string().min(1, "Command cannot be empty"),
65
args: z.array(z.string()).optional(),
66
- cwd: z.string().default(vscode.workspace.workspaceFolders?.at(0)?.uri.fsPath ?? process.cwd()),
+ cwd: z.string().default(() => vscode.workspace.workspaceFolders?.at(0)?.uri.fsPath ?? process.cwd()),
67
env: z.record(z.string()).optional(),
68
// Ensure no SSE fields are present
69
url: z.undefined().optional(),
0 commit comments