Skip to content

Dynamically listed Resources created by ResourceTemplates display the ResourceTemplates rather than their own #573

Open
@carlpeaslee

Description

@carlpeaslee

Describe the bug
Dynamically listed Resources created by ResourceTemplates display the ResourceTemplates rather than their own

To Reproduce
Steps to reproduce the behavior:

  1. Configure a server to make a resource available that uses a resource template, the list method, and metadata for both the dynamically generated resources and the resource templates.

https://github.com/loopwork-ai/test-mcp/blob/e8219285e8758cf42ffda2a3950bc879d75c8e92/src/index.ts#L247-L289

  1. Inspect the returned information
Image

Expected behavior
A clear and concise description of what you expected to happen.

I would expect a dynamically generated resource from the list to prefer its own metadata (title, description) etc over that of the resource template.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions