Skip to content

MCP Resources are incompatible with Claude Code CLI #1415

@CharlieDigital

Description

@CharlieDigital

Describe the bug

Resources are not discoverable by Claude Code; possibly some format mismatch?

To Reproduce
Steps to reproduce the behavior:

  1. Implement a simple resource
  2. Check with MCP Inspector; observe that the resource shows up correctly
  3. Check in CC CLI; observe that the resource fails to show

Expected behavior

Resource is shown in CC CLI

Logs

Resource is present when working with MCP Inspector:

Image

However, hitting the same endpoint, it is missing in CC:

Kapture.2026-03-06.at.18.47.05.mp4

In VSCP, this is present:

Kapture.2026-03-06.at.18.48.14.mp4

This works correctly with the reference implementation here in Everything Server: https://modelcontextprotocol.io/examples

Image

It appears that there may be some incompatibility with the format CC is expecting?

Additional context

Basic implementation

[McpServerResourceType]
public static class DocumentByKeywordResource
{
    [McpServerResource(
        UriTemplate = "docs://document/{keyword}",
        Name = "Document",
        MimeType = "text/plain"
    )]
    [Description("Get a document by keyword.")]
    public static async Task<ResourceContents> GetDocumentByKeyword(
        string keyword
    )
    {        
        return new TextResourceContents
        {
            Uri = $"docs://document/{keyword}",
            MimeType = "text/plain",
            Text = "Document content goes here",
        };
    }
}

Extracted message from MCP Inspector:

{
  "result": {
    "resourceTemplates": [
      {
        "name": "Document",
        "uriTemplate": "docs://document/{keyword}",
        "description": "Get a document by keyword.",
        "mimeType": "text/plain"
      }
    ]
  },
  "id": 3,
  "jsonrpc": "2.0"
}

Note: server is in sessionless mode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions