Repository navigation
Commit 27acb53
refactor(migration): move migration tools to standalone script
Remove MCP migration tools due to MCP SDK 60-second timeout limitation
(DEFAULT_REQUEST_TIMEOUT_MSEC = 60000 in protocol.ts). The timeout cannot
be overridden via MCP_TOOL_TIMEOUT or --timeout flags due to SDK bugs.
Changes:
- Remove register_migration_tools() from MCP server
- Enhance scripts/index_graphiti.py with:
- Unified database name derivation (--code-path flag)
- Deduplication via find_episode_by_chunk_id_async()
- Checkpoint/resume support (--resume, --force flags)
- Atomic checkpoint saves with fsync
- Update docs/MEMORY.md with migration script usage
The standalone script completes without timeout since it runs outside
the MCP transport layer.
See: modelcontextprotocol/typescript-sdk#245
Co-Authored-By: Claude Opus 4.5 <[email protected]>1 parent fe13190 commit 27acb53
3 files changed
Lines changed: 311 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
892 | 892 | | |
893 | 893 | | |
894 | 894 | | |
895 | | - | |
| 895 | + | |
896 | 896 | | |
897 | | - | |
898 | | - | |
899 | | - | |
900 | | - | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
901 | 915 | | |
902 | 916 | | |
903 | 917 | | |
| |||
0 commit comments