Context
Neo.ai.mcp.client.Client currently has an inconsistent split between static config and class fields. command and args are configs, while openApiFilePath and requiredEnv are fields, despite all four serving the same purpose (configuration derived from serverName or passed manually).
Goal
Normalize the configuration properties in Client.mjs to be consistent.
Requirements
- Move
openApiFilePath from class field to static config (non-reactive).
- Move
requiredEnv from class field to static config (non-reactive).
- Ensure
loadServerConfig updates these properties using this.openApiFilePath = ... (which works for both configs and fields, but for configs it's the proper setter).
Deliverables
- Cleaned up
ai/mcp/client/Client.mjs.
Context
Neo.ai.mcp.client.Clientcurrently has an inconsistent split betweenstatic configand class fields.commandandargsare configs, whileopenApiFilePathandrequiredEnvare fields, despite all four serving the same purpose (configuration derived fromserverNameor passed manually).Goal
Normalize the configuration properties in
Client.mjsto be consistent.Requirements
openApiFilePathfrom class field tostatic config(non-reactive).requiredEnvfrom class field tostatic config(non-reactive).loadServerConfigupdates these properties usingthis.openApiFilePath = ...(which works for both configs and fields, but for configs it's the proper setter).Deliverables
ai/mcp/client/Client.mjs.