This ticket covers wiring up the new mcp-stdio.mjs entry point to the existing memory services. This will be done by creating a local toolService.mjs that uses the shared toolService and provides the specific serviceMapping for the Memory Core.
Acceptance Criteria
- A new
services/toolService.mjs is created inside the memory-core directory.
- It imports the shared
toolService from ai/mcp/server/.
- A
serviceMapping constant is created, mapping the operationIds from the refactored openapi.yaml to the corresponding functions in the existing service files (memoryService.mjs, summaryService.mjs, etc.).
- The
initialize() function of the shared toolService is called with the serviceMapping and the path to the openapi.yaml.
- The
listTools and callTool functions are exported.
This ticket covers wiring up the new
mcp-stdio.mjsentry point to the existing memory services. This will be done by creating a localtoolService.mjsthat uses the sharedtoolServiceand provides the specificserviceMappingfor the Memory Core.Acceptance Criteria
services/toolService.mjsis created inside thememory-coredirectory.toolServicefromai/mcp/server/.serviceMappingconstant is created, mapping theoperationIds from the refactoredopenapi.yamlto the corresponding functions in the existing service files (memoryService.mjs,summaryService.mjs, etc.).initialize()function of the sharedtoolServiceis called with theserviceMappingand the path to theopenapi.yaml.listToolsandcallToolfunctions are exported.