Publish the files. Requires project.files.write.
Arguments
project_referencestringProject ID or slug. Requires project.files.write.
file_referencesarray of stringFile paths or UUIDs. Omit to commit all pending changes; [] commits none.
branch_referencestringBranch name or UUID. Omit for main.
expected_version_idstring · uuidExpected persisted version UUID; requires exactly one selected file.
expected_versionsobjectMap from file paths or UUIDs to their expected persisted version UUIDs. Conflicting guards are rejected.
Responses
curl -X POST -N "https://api.veryfront.com/mcp" \ -H "Authorization: Bearer $VERYFRONT_API_KEY" \ -H "Accept: application/json, text/event-stream" \ -H "Content-Type: application/json" \ -d '{ "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "veryfront__publish_project_files", "arguments": {} }}'{ "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "{\"success\":false,\"versions\":[{\"file_id\":\"00000000-0000-0000-0000-000000000000\",\"version_id\":\"00000000-0000-0000-0000-000000000000\",\"path\":\"string\"}],\"conflicts\":[{\"file_id\":\"00000000-0000-0000-0000-000000000000\",\"path\":\"string\",\"error\":\"string\"}],\"problem\":{\"status\":409,\"slug\":\"concurrency-error\",\"detail\":\"string\"}}" } ], "structuredContent": { "success": false, "versions": [ { "file_id": "00000000-0000-0000-0000-000000000000", "version_id": "00000000-0000-0000-0000-000000000000", "path": "string" } ], "conflicts": [ { "file_id": "00000000-0000-0000-0000-000000000000", "path": "string", "error": "string" } ], "problem": { "status": 409, "slug": "concurrency-error", "detail": "string" } } }}The tool ran; its output is result.structuredContent.