This ticket covers the refactoring of the configuration for the MCP servers. Currently, services within the knowledge-base server are reaching back into the buildScripts directory to import aiConfig.mjs.
To improve modularity and prepare for eventual packaging, we will create a centralized configuration file within the ai/mcp/server/ directory.
Acceptance Criteria
- The file
buildScripts/ai/aiConfig.mjs is copied to ai/mcp/server/config.mjs.
- The new
ai/mcp/server/config.mjs is modified to remove the ports export, which is only relevant to the old Express servers.
- All service files within
ai/mcp/server/knowledge-base/services/ are updated to import the new config file (../config.mjs).
- The old
buildScripts/ai/aiConfig.mjs file is left untouched for now, as it is still in use by other scripts.
This ticket covers the refactoring of the configuration for the MCP servers. Currently, services within the
knowledge-baseserver are reaching back into thebuildScriptsdirectory to importaiConfig.mjs.To improve modularity and prepare for eventual packaging, we will create a centralized configuration file within the
ai/mcp/server/directory.Acceptance Criteria
buildScripts/ai/aiConfig.mjsis copied toai/mcp/server/config.mjs.ai/mcp/server/config.mjsis modified to remove theportsexport, which is only relevant to the old Express servers.ai/mcp/server/knowledge-base/services/are updated to import the new config file (../config.mjs).buildScripts/ai/aiConfig.mjsfile is left untouched for now, as it is still in use by other scripts.