Repository navigation
fix(mcp): add full_ids option so UUIDv7 id prefixes can be disambiguated - #1358
Merged
Merged
Conversation
…ted (#1357) list, recall and room_memories print only the first 8 hex chars of the id. Since ids are UUIDv7 those chars are a timestamp, so memories written within ~65s share a prefix and the printed id cannot be fed back to get/forget/pin/move. Add an opt-in `full_ids` boolean to uteke_list, uteke_recall and uteke_room_memories that prints the full UUID. Default output is unchanged. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Add an opt-in
full_idsboolean to the MCP toolsuteke_list,uteke_recallanduteke_room_memories. When set, the full UUID is printed instead of the 8-char prefix. Default output is unchanged. A smalldisplay_idhelper replaces three hand-rolled prefix slices.Why
Memory ids are UUIDv7, so the first 8 hex chars are a timestamp and memories written within ~65s share them. The printed id then cannot be fed to
uteke_get/forget/pin/room_memory_move(Ambiguous ID prefix ... matches 3 memories), and MCP gave no way to get a longer id. This is the smallest fix from the options in #1357; shortest-unique-prefix or tail-based short ids can follow.Closes #1357
Testing
cargo test -p uteke-mcp --lib: 9 passed, including newdisplay_id_prefix_or_fullandlist_and_room_memories_full_ids_round_trip.cargo fmt --all -- --checkandcargo clippy -p uteke-mcp --all-targets -- -D warningsclean.cargo run -p docgen: no diff in generated docs.🤖 Generated with Claude Code