Files
Drew Cain d1ca37fcf4 feat: support ?project= query parameter on memory:// URIs
Allow memory URLs to embed a project hint via standard query parameters,
e.g. memory://specs/search?project=research. This lets AI assistants
resolve the correct project from the URI alone, avoiding multi-project
discovery round-trips that waste tokens and pollute context.

- Remove ? from invalid_chars in validate_memory_url_path()
- Add parse_memory_url() to extract query params from memory URLs
- Update normalize_memory_url() to preserve query params through validation
- Update memory_url_path() to strip query params when extracting paths
- Extract ?project= in build_context, read_note, and read_content tools
- Add comprehensive tests for parsing, normalization, and path extraction

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Drew Cain <groksrc@gmail.com>
2026-02-13 22:16:12 -06:00
..