Add getResourceLinks tool to return multiple resource references#2276
Add getResourceLinks tool to return multiple resource references#2276
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 <noreply@anthropic.com>
src/everything/everything.ts
Outdated
| completions: {}, | ||
| }, | ||
| instructions | ||
| instructions, |
There was a problem hiding this comment.
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? |
cliffhall
left a comment
There was a problem hiding this comment.
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. |
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.
And is this final text content even necessary?
09b34c1 to
8dde417
Compare
@ashwin-ant @cliffhall for extra 👀 wanted to link to an open PR that @nandsha has opened for handling Resource Links in Inspector: modelcontextprotocol/inspector#564 |
Add getResourceLinks tool to return multiple resource references



🤖 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