Commit Graph

17 Commits

Author SHA1 Message Date
Sashank Meka
8af50b9418 remove type from loading 2026-01-13 22:02:20 -05:00
adam jones
b84637314f fix(memory): convert to modern TypeScript SDK APIs (#3015)
* fix(memory): convert to modern TypeScript SDK APIs

Convert the memory server to use the modern McpServer API instead of
the low-level Server API.

Key changes:
- Replace Server with McpServer from @modelcontextprotocol/sdk/server/mcp.js
- Convert all 9 tools to use registerTool() instead of manual request handlers
- Create reusable Zod schemas for Entity and Relation types
- Use Zod schemas directly in inputSchema/outputSchema
- Add structuredContent to all tool responses
- Fix type literals to use 'as const' assertions

The modern API provides:
- Less boilerplate code (removed ~200 lines of schema definitions)
- Better type safety with Zod
- More declarative tool registration
- Cleaner, more maintainable code

* fix: exclude test files from TypeScript build

Add exclude for test files and vitest.config.ts to tsconfig
2025-11-20 19:09:44 +00:00
olaservo
e68a555943 Add Vitest testing framework and implement tests for memory management features 2025-10-28 20:06:34 -07:00
Ola Hungerford
78af9ddffb Merge branch 'main' into claude/issue-2361-20250817-1626 2025-10-19 07:45:22 -07:00
Aonan Guan
52ab84cd63 Improve memory server schema validation (#2726)
- Add explicit property filtering in saveGraph method
- Add additionalProperties constraints to input schemas
2025-09-18 15:11:12 +01:00
claude[bot]
eb58a522b3 Add clearer console error messages for memory file migration detection
- Added DETECTED message when legacy memory.json file is found
- Added COMPLETED message when migration finishes successfully
- Improves visibility of backward compatibility migration process

Co-authored-by: Ola Hungerford <olaservo@users.noreply.github.com>
2025-08-24 03:01:06 +00:00
claude[bot]
53104a65e9 Add backward compatibility for memory.json -> memory.jsonl migration
When no custom MEMORY_FILE_PATH is set and memory.json exists but
memory.jsonl doesn't exist, automatically migrate the old file to
the new format with proper file extension.

This ensures existing users don't lose their data when upgrading
to the version with the corrected .jsonl extension.

Co-authored-by: Ola Hungerford <olaservo@users.noreply.github.com>
2025-08-24 02:51:58 +00:00
claude[bot]
9d8c2dfcaf fix: Change memory server default filename from memory.json to memory.jsonl
The Memory MCP server uses JSONL format (JSON Lines) where each line
contains a separate JSON object, but was using a .json file extension.
This caused IDE lint errors and confusion since the file is not valid JSON.

Changes:
- Update default filename in index.ts from memory.json to memory.jsonl
- Update documentation references in README.md
- Maintain backward compatibility for existing MEMORY_FILE_PATH configs

Fixes #2361

Co-authored-by: Ola Hungerford <olaservo@users.noreply.github.com>
2025-08-17 16:28:38 +00:00
allen joslin
063a44a1dd Merge branch 'main' into ajoslin/memory 2025-05-01 17:04:28 -04:00
olaservo
c093906095 Update server version to match package semantic version 2025-04-21 06:28:25 -07:00
Al Joslin
6a50ecadc2 read_graph takes no args 2025-04-05 19:34:29 -04:00
s2005
05fb0eab36 Add newline before server instance initialization
As it was before
2024-12-21 18:59:17 +01:00
s2005
5d0bee0295 fix(memory): revert back instantiation of KnowledgeGraphManager 2024-12-21 18:54:35 +01:00
s2005
04209ec248 feat(memory): add MEMORY_FILE_PATH environment variable support
- Add environment variable MEMORY_FILE_PATH to configure custom storage location
- Support both absolute and relative paths
- Update documentation with configuration examples
- Bump version to 0.6.3
2024-12-21 18:38:12 +01:00
David Soria Parra
788098220e servers: make tool call result spec compatible 2024-12-03 13:00:22 +00:00
Barry Zhang
a8af9d2a30 minor naming change 2024-11-19 21:33:25 -05:00
Barry Zhang
9cbea339af claude memory 2024-11-19 16:06:36 -05:00