Frontmatter
| id | 7942 |
| title | Feat: Enable External Configuration and Generic Runner for MCP Client CLI |
| state | Closed |
| labels | enhancementairefactoring |
| assignees | tobiu |
| createdAt | Nov 30, 2025, 12:56 AM |
| updatedAt | Nov 30, 2025, 1:18 AM |
| githubUrl | https://github.com/neomjs/neo/issues/7942 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | 7931 |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Nov 30, 2025, 1:18 AM |
Feat: Enable External Configuration and Generic Runner for MCP Client CLI
tobiu assigned to @tobiu on Nov 30, 2025, 12:56 AM
tobiu added parent issue #7931 on Nov 30, 2025, 12:57 AM

tobiu
Nov 30, 2025, 1:17 AM
Input from Gemini 2.5:
✦ I have enabled external configuration and refactored the MCP Client CLI.
Deliverables Completed
- Refactor
ai/mcp/client/mcp-stdio.mjs:
- Removed
#!/usr/bin/env nodeanddotenvusage.- Added
-c, --configoption for external configuration files.- Updated initialization logic to pass the config file path to the
Clientinstance.- Imported
ClientConfig(asaiConfig) to handle debug flag consistently.- Refactor
ai/mcp/client/Client.mjs:
- Added
configFileconfig option.- Updated
initAsyncto load the external configuration if provided, usingClientConfig.load()and handling errors viaconsole.error.- Removed complex path resolution logic.
The CLI now matches the server-side runner pattern, offering better DX and consistency.
tobiu closed this issue on Nov 30, 2025, 1:18 AM
To align the MCP Client CLI with the server-side runner architecture, this task will enhance
ai/mcp/client/mcp-stdio.mjsto support loading external configuration files via a-coption and remove unnecessary environment setup specific to direct Node.js execution.Deliverables
ai/mcp/client/mcp-stdio.mjs:#!/usr/bin/env nodeshebang.dotenvimport and usage.-c, --config <path>for specifying an external client configuration file.ClientConfig.load(options.config)to load and merge external configurations.--server <name>option optional (default action TBD, perhaps list available servers or require it for specific commands).