diff --git a/src/mcbebop/tools/files.py b/src/mcbebop/tools/files.py index 81c35b1..219d789 100644 --- a/src/mcbebop/tools/files.py +++ b/src/mcbebop/tools/files.py @@ -47,7 +47,7 @@ def register(mcp: FastMCP, settings: Settings) -> None: through this tool. """ host = _host(settings) - entries = await asyncio.to_thread(ftp.list_dir, ftp.resolve_area(area), path, host=host) + entries = await asyncio.to_thread(ftp.list_dir, area, path, host=host) return [FileEntry(name=e.name, size=e.size, is_dir=e.is_dir) for e in entries] @mcp.tool(annotations={"readOnlyHint": True, "openWorldHint": True}) @@ -61,7 +61,7 @@ def register(mcp: FastMCP, settings: Settings) -> None: host = _host(settings) dest = await asyncio.to_thread( ftp.fetch, - ftp.resolve_area(area), + area, path, host=host, capture_dir=settings.capture_dir,