| name | tapps-apply-files |
| user-invocable | false |
| model | claude-haiku-4-5-20251001 |
| description | Apply file operations from a TappsMCP content-return response. Used when the MCP server runs in Docker and cannot write files directly. |
| allowed-tools | |
When a TappsMCP or DocsMCP tool returns content_return: true with a file_manifest,
the server could not write files (Docker / read-only filesystem). Apply the files:
- Read
file_manifest.agent_instructions.persona — adopt that role
- If
backup_recommended is true, warn the user that existing files may be overwritten
- Sort files by
priority (lowest first) — config files before content files
- For each file in
file_manifest.files[]:
- mode "create": Use the Write tool. Create parent directories as needed.
- mode "overwrite": Use the Write tool to replace the file entirely.
- mode "merge": Read the existing file first, then apply the
content as a
replacement for the managed section. The content is the pre-computed merge result;
write it with the Write tool (the merge was already done server-side).
- Write the
content field verbatim — do not modify, reformat, or add comments
- Follow
agent_instructions.verification_steps after all files are written
- Communicate any
agent_instructions.warnings to the user
Response structure:
{
"content_return": true,
"file_manifest": {
"mode": "content_return",
"reason": "...",
"summary": "...",
"file_count": N,
"files": [
{"path": "relative/path", "content": "...", "mode": "create|overwrite|merge",
"encoding": "utf-8", "description": "...", "priority": 5}
],
"agent_instructions": {
"persona": "...",
"tool_preference": "...",
"verification_steps": ["..."],
"warnings": ["..."]
}
}
}