veryfront__publish_project_files
Requires project.files.write.
Access
No external-service connection is required. Use a Veryfront credential with access to the requested resources.
Call type: Can change resources.
Arguments
| Field | Type | Required | Description and constraints |
|---|---|---|---|
project_reference | string | No | Project ID or slug. Requires project.files.write. |
file_references | string[] | No | File paths or UUIDs. Omit to commit all pending changes; [] commits none. |
branch_reference | string | No | Branch name or UUID. Omit for main. |
expected_version_id | string | No | Expected persisted version UUID; requires exactly one selected file. Format: uuid. |
expected_versions | object | No | Map from file paths or UUIDs to their expected persisted version UUIDs. Conflicting guards are rejected. |
Example request
Send this JSON-RPC request through an initialized MCP client. Replace sample identifiers and values before calling the tool. See MCP client setup.
request.json
1{2 "jsonrpc": "2.0",3 "id": 1,4 "method": "tools/call",5 "params": {6 "name": "veryfront__publish_project_files",7 "arguments": {}8 }9}Result
The published output shape is summarized below. Inspect both the MCP response content and isError when handling a call.
| Field | Type | Required | Description and constraints |
|---|---|---|---|
success | boolean | Yes | True when every selected file committed. False may still include committed versions. |
versions | object[] | Yes | List of versions associated with this tool result. |
conflicts | object[] | Yes | List of conflicts associated with this tool result. |
problem | object or null | Yes | Stale persisted-version precondition. Other files may already have committed; refresh and retry only conflicted files. |
Full schemas
input-schema.json
1{2 "type": "object",3 "properties": {4 "project_reference": {5 "type": "string",6 "description": "Project ID or slug. Requires project.files.write."7 },8 "file_references": {9 "type": "array",10 "items": {11 "type": "string",12 "description": "One file reference item supplied to the tool."13 },14 "description": "File paths or UUIDs. Omit to commit all pending changes; [] commits none."15 },16 "branch_reference": {17 "type": "string",18 "description": "Branch name or UUID. Omit for main."19 },20 "expected_version_id": {21 "type": "string",22 "format": "uuid",23 "description": "Expected persisted version UUID; requires exactly one selected file."24 },25 "expected_versions": {26 "type": "object",27 "additionalProperties": {28 "type": "string",29 "format": "uuid",30 "description": "Additional structured values supplied to the tool."31 },32 "description": "Map from file paths or UUIDs to their expected persisted version UUIDs. Conflicting guards are rejected."33 }34 },35 "additionalProperties": false,36 "description": "Arguments for the publish_project_files tool.",37 "$schema": "http://json-schema.org/draft-07/schema#"38}output-schema.json
1{2 "type": "object",3 "properties": {4 "success": {5 "type": "boolean",6 "description": "True when every selected file committed. False may still include committed versions."7 },8 "versions": {9 "type": "array",10 "items": {11 "type": "object",12 "properties": {13 "file_id": {14 "type": "string",15 "format": "uuid",16 "description": "Canonical committed file UUID."17 },18 "version_id": {19 "type": "string",20 "format": "uuid",21 "description": "Created immutable version UUID."22 },23 "path": {24 "type": "string",25 "description": "Committed file path."26 }27 },28 "required": [29 "file_id",30 "version_id",31 "path"32 ],33 "additionalProperties": false34 },35 "description": "List of versions associated with this tool result."36 },37 "conflicts": {38 "type": "array",39 "items": {40 "type": "object",41 "properties": {42 "file_id": {43 "type": "string",44 "format": "uuid",45 "description": "Canonical file UUID whose draft was retained."46 },47 "path": {48 "type": "string",49 "description": "Conflicted file path."50 },51 "error": {52 "type": "string",53 "description": "Stale-version conflict reason."54 }55 },56 "required": [57 "file_id",58 "path",59 "error"60 ],61 "additionalProperties": false62 },63 "description": "List of conflicts associated with this tool result."64 },65 "problem": {66 "anyOf": [67 {68 "type": "object",69 "properties": {70 "status": {71 "type": "number",72 "const": 409,73 "description": "Lifecycle status for the returned record."74 },75 "slug": {76 "type": "string",77 "const": "concurrency-error"78 },79 "detail": {80 "type": "string"81 }82 },83 "required": [84 "status",85 "slug",86 "detail"87 ],88 "additionalProperties": false,89 "description": "Stale persisted-version precondition. Other files may already have committed; refresh and retry only conflicted files."90 },91 {92 "type": "null",93 "description": "The problem returned by the tool."94 }95 ],96 "description": "Stale persisted-version precondition. Other files may already have committed; refresh and retry only conflicted files."97 }98 },99 "required": [100 "success",101 "versions",102 "conflicts",103 "problem"104 ],105 "additionalProperties": false,106 "description": "Structured result returned by the publish_project_files tool.",107 "$schema": "http://json-schema.org/draft-07/schema#"108}