feat: add env property to McpSettings interface and initializeClientsFromSettings function

This commit is contained in:
samanhappy
2025-04-01 11:42:20 +08:00
parent ea3bcb4d79
commit 332a9cc5b8

View File

@@ -15,6 +15,7 @@ interface McpSettings {
url?: string;
command?: string;
args?: string[];
env?: Record<string, string>;
};
};
}
@@ -49,6 +50,7 @@ function initializeClientsFromSettings(): {
transport = new StdioClientTransport({
command: config.command,
args: config.args,
env: config.env,
});
} else {
console.warn(`Skipping server '${name}': missing required configuration`);