Skip to content

fix(mcp): add full_ids option so UUIDv7 id prefixes can be disambiguated - #1358

Merged
ajianaz merged 1 commit into
developfrom
fix/mcp-full-ids
Oct 7, 2026
Merged

ajianaz merged 1 commit into
developfrom
fix/mcp-full-ids

Conversation

@ajianaz

@ajianaz ajianaz commented Oct 7, 2026

Copy link
Copy Markdown
Collaborator

What

Add an opt-in full_ids boolean to the MCP tools uteke_list, uteke_recall and uteke_room_memories. When set, the full UUID is printed instead of the 8-char prefix. Default output is unchanged. A small display_id helper 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 new display_id_prefix_or_full and list_and_room_memories_full_ids_round_trip.
  • cargo fmt --all -- --check and cargo clippy -p uteke-mcp --all-targets -- -D warnings clean.
  • cargo run -p docgen: no diff in generated docs.

🤖 Generated with Claude Code

…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]>
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

@ajianaz
ajianaz merged commit c06e549 into develop Oct 7, 2026
15 checks passed
@ajianaz
ajianaz deleted the fix/mcp-full-ids branch October 7, 2026 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(mcp): 8-char short id is ambiguous since UUIDv7 — prefix collides for memories written in the same ~65s

1 participant