Skip to content

resources do not work #21

@Shiney

Description

@Shiney

If you try to use a resource by e.g. defining a method like

    [McpResource("settings", "resource://settings", "application/json", "Application settings")]
    public string Settings { get; set; } = "{ \"theme\": \"dark\" }";

Then try to use Claude to attach

Image

then you get this error.

It looks like the problem is there's no implementation of the resources/read method and it's not obvious how it ought to be filled in as the examples seem to suggest that there should be some templating feature here but not clear exactly how it should match everything up, should it work like routing in ASP.NET or somehow different?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions