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
- start claude code。can see resource list and
@ autocomplete work,
- 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.
- restart claude code,can see new resource list and
@ is work fine
Expected Behavior
@ can update by resource list changed
- receive
notifications/resources/list_changed with mcp,and send resource/list,that is mcp rfc defined
Actual Behavior
@ can't update with resource list
- not send resource/list after notifications/resources/list_changed
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 sendingnotifications/resources/list_changed, but Claude code did not respond at all.Steps to Reproduce
@autocomplete work,notifications/resources/list_changed, promptlist resourcescan list that new resource, but@no any changed,I can see mcp server not receive anything.@is work fineExpected Behavior
@can update by resource list changednotifications/resources/list_changedwith mcp,and send resource/list,that is mcp rfc definedActual Behavior
@can't update with resource list