Skip to content

bug: The ListResources function should follow the order in which resources are written #397

Open
@douglarek

Description

@douglarek

Description

Imagine a scenario where my resources are a set of notes returned by an API. When I use server.AddResource, the order (reverse or chronological) in which ListResources retrieves them should reflect my notes' updates. I see that mcp-go uses an internal map during server.AddResource, which clearly loses the sorting logic.

Metadata

Metadata

Assignees

Labels

area: sdkSDK improvements unrelated to MCP specificationhelp wantedExtra attention is neededtype: bugSomething isn't working as expected

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions