Skip to content

[BUG] Resource autocomplete cannot dynamically change or update. #3326

Description

@SamPeng87

Bug Description

I developed an MCP server that exposes a list of resources. I also experimentally added a tool to dynamically add to this resource list. When starting Claude code, after the first @ or actively listing resources, the @ shows the resources exposed by MCP. However, after dynamically adding resources, listing resources correctly returns the new resource list. The @ autocomplete, however, does not update and cannot get the new resources. I tried sending notifications/resources/list_changed, but Claude code did not respond at all.

Steps to Reproduce

  1. start claude code。can see resource list and @ autocomplete work,
  2. do something add resource and send notifications/resources/list_changed, prompt list resources can list that new resource, but @ no any changed,I can see mcp server not receive anything.
  3. restart claude code,can see new resource list and @ is work fine

Expected Behavior

  1. @ can update by resource list changed
  2. receive notifications/resources/list_changed with mcp,and send resource/list,that is mcp rfc defined

Actual Behavior

  1. @ can't update with resource list
  2. not send resource/list after notifications/resources/list_changed

Metadata

Metadata

Assignees

Labels

duplicateThis issue or pull request already exists

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions