mirror of
https://github.com/samanhappy/mcphub.git
synced 2025-12-24 02:39:19 -05:00
feat: add env property to McpSettings interface and initializeClientsFromSettings function
This commit is contained in:
@@ -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`);
|
||||
|
||||
Reference in New Issue
Block a user