wrolpi/wrolpi_mcp
Roland 9ca26af455
ai: list_files tool — browse the media directory tree
New read-only GET /api/ai/files/list lists one directory of the media
directory (directories first, then files with size and guessed
mimetype), paged at 100 entries.  Every entry carries its relative
path for list_files or read_file.  Same guards as read_file via a
shared resolver: no escaping the media directory, and the config
directory is refused and hidden from the root listing.

The agent loop picks the operation up from the spec; library mode
allowlists it.  wrolpi_mcp gains the matching list_files proxy tool.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-12 15:19:49 -06:00
..
__init__.py ai: wrolpi_mcp becomes a thin proxy over /api/ai 2026-09-12 15:19:48 -06:00
__main__.py ai: wrolpi_mcp becomes a thin proxy over /api/ai 2026-09-12 15:19:48 -06:00
client.py ai: wrolpi_mcp becomes a thin proxy over /api/ai 2026-09-12 15:19:48 -06:00
config.py ai: wrolpi_mcp becomes a thin proxy over /api/ai 2026-09-12 15:19:48 -06:00
requirements.txt ai: wrolpi_mcp becomes a thin proxy over /api/ai 2026-09-12 15:19:48 -06:00
server.py ai: list_files tool — browse the media directory tree 2026-09-12 15:19:49 -06:00