-
Notifications
You must be signed in to change notification settings - Fork 7.6k
UUID based resources #2596
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
UUID based resources #2596
Conversation
Fixes issue where array indices (0-based) didn't match URI numbers (1-based), causing confusion where: - Resource at index 0 was accessed via 'test://static/resource/1' - Even indices (text resources) mapped to odd URI numbers Changes: - Resource URIs now use 0-based numbering to match array indices - Resource 0 is now accessed via 'test://static/resource/0' - Even indices now map to even URI numbers (more intuitive) Resolves #475 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Ola Hungerford <olaservo@users.noreply.github.com>
…c paths Implements @domdomegg's proposal to use UUIDs for resource identification instead of array indices: - Generate UUIDs for all 100 resources (50 text, 50 blob) - Use semantic paths: test://static/resource/text/{uuid} and test://static/resource/blob/{uuid} - Remove dependency on array indices for URI construction - Update resource templates to reflect new URI patterns - Modify getResourceReference tool to accept resourceUri instead of resourceId - Update resource_prompt argument from resourceId to resourceUri - Improve resource link descriptions to mention UUID-based identification - Update README documentation to reflect UUID-based system This eliminates the confusion between array indices (0-based) and URI numbers (1-based) while providing more intuitive resource categorization through semantic paths. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: adam jones <domdomegg@users.noreply.github.com>
Claude finished @domdomegg's task —— View job SummaryThis PR replaces the problematic array index-based resource system with UUID-based semantic paths, resolving issue #475 and implementing the solution proposed in issue #2570. Changes MadeCore Implementation Changes (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes #475
Also see #2570