-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Add getResourceLinks tool to return multiple resource references #2276
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
Conversation
- Implement new tool that returns configurable number of resource links (1-10) - Each link includes URI, name, description, and MIME type from available resources - Minor formatting fixes for trailing commas and whitespace 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
src/everything/everything.ts
Outdated
@@ -117,7 +127,7 @@ export const createServer = () => { | |||
logging: {}, | |||
completions: {}, | |||
}, | |||
instructions | |||
instructions, |
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.
is it necessary this comma at the end ?
Hi @ashwin-ant. This doesn't seem to work as intended. ![]() I do see full content in the response. Maybe the text content entries should be clearer, like "See full tool response for details." And maybe just one of them not bookends? |
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.
Maybe improve the text content entries (Perhaps just a clearer intro and no outro) for viewing in the Inspector (which is mostly where this server is used).
@cliffhall I think the issue is that the inspector doesn't currently support the We're working on adding resource links to Claude Code, and that's where I've been testing this primarily. I've updated the string to be a bit clearer for the inspector. |
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.
formatting
src/everything/everything.ts
Outdated
// Add summary text | ||
content.push({ | ||
type: "text", | ||
text: `\nThese resource links reference actual resources available through the resources/read endpoint.`, |
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.
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.
And is this final text content even necessary?
09b34c1
to
8dde417
Compare
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.
LGTM! 👍
🤖 Generated with Claude Code
Description
Server Details
Motivation and Context
Adds an example of resource links
How Has This Been Tested?
Yes, Claude Code
Breaking Changes
No
Types of changes
Checklist
Additional context