feat(files-mcp): business wrappers and Pydantic request models

Adds files_mcp/tools/requests.py with 9 Pydantic body models (one per
tool, since fastapi-mcp passes args as JSON body) and
files_mcp/tools/files.py with 9 thin wrappers that call path_guard
then fs_ops and return model_dump() form. Adds tests/unit/test_files_tool.py
covering happy path, sandbox escape, and KeyError/FileExistsError
propagation for each wrapper.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Claude
2026-06-30 17:57:02 +08:00
co-authored by Claude Fable 5
parent 01f5e54a66
commit 36da3f7024
4 changed files with 255 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
# coding=utf-8
"""
@Time :2026/6/30
@Author :tao.chen
"""