A new built-in tool, ReadMcpResourceDirTool (also reachable as ReadMcpResourceDir), lists the direct children of a directory resource on an MCP server. This implements the SEP-2640 resources/directory/read protocol method.
Details
- Parameters:
server(MCP server name) anduri(directory resource URI). - Only usable against servers that have declared support for directory listing; other servers return a clear error message.
- Subdirectories appear with
mimeTypeset to the directory sentinel type; use the returnedurito descend into them. - If the URI is not a directory resource, the tool returns a descriptive error and suggests using
ReadMcpResourceToolfor file resources instead. - The result is always non-recursive (one level at a time). Use multiple calls to descend.
- Empty directories return
"Directory is empty.".
Evidence
Full tool definition added in new version (search for "list the children of an MCP directory resource" and "resources/directory/read returned")
Strings lifted out of the shipped bundle, so the claim above can be checked against them.