List branch policies

List the merge policies of a project, which set the approvals and reviewers a branch needs. Requires project.read.

Arguments

  • project_referencestring

    Project ID or slug

  • enabled_onlyboolean

    Only return enabled policies

  • limitinteger · min 1 · max 100

    Page size 1–100. Omit limit and cursor for the complete collection; cursor alone defaults to 20.

  • cursorstring · min length 1 · max length 4096

    Opaque continuation bound to collection, project, branch, principal, filters and page size.

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__list_branch_policies",    "arguments": {}  }}'
{  "jsonrpc": "2.0",  "id": 1,  "result": {    "content": [      {        "type": "text",        "text": "{\"policies\":[{\"id\":\"string\",\"name\":\"string\",\"is_enabled\":false,\"required_approvals\":0,\"allow_self_approval\":false,\"target_branch_pattern\":\"string\"}],\"page_info\":{\"self\":\"string\",\"first\":null,\"next\":\"string\",\"prev\":\"string\"}}"      }    ],    "structuredContent": {      "policies": [        {          "id": "string",          "name": "string",          "is_enabled": false,          "required_approvals": 0,          "allow_self_approval": false,          "target_branch_pattern": "string"        }      ],      "page_info": {        "self": "string",        "first": null,        "next": "string",        "prev": "string"      }    }  }}

The tool ran; its output is result.structuredContent.