list_reference_directory
Lists files in a reference project
How to use it
list_reference_directory is exposed by the MCP Workspace MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the list_reference_directory tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install MCP Workspace
pip install -e .Other tools in MCP Workspace (22)
Adds content to existing files
(string): Content to write to the file
Deletes a directory (empty, or a whole tree with recursive)
Removes files from the filesystem
(string): Path to the directory to delete (relative to project)
(boolean, optional): Preview changes without applying (default: False)
Makes selective edits using exact string matching
(array): List of edit operations, each containing:
(integer, optional): Last line to return (1-based, inclusive). Must be provided together with startline.
(string): Path to the file to read (relative to project directory)
Lists available reference projects
Lists files and directories in the project directory
Moves or renames files/directories (git-aware: uses git mv for tracked files, else filesystem move)
(string): Replacement text
(string): Exact text to find and replace (must match exactly)
(boolean, default: False): Apply indentation from oldtext to newtext
Reads the contents of a file
Reads files from reference projects
(boolean, optional): Delete the whole tree when True (default: False)
Creates or overwrites files atomically
(integer, optional): First line to return (1-based, inclusive). Must be provided together with endline.
(boolean, optional): Prefix each line with its line number. Defaults to True when a line range is specified, False for full reads.