Create project resource

Create a project resource, an MCP resource definition under resources/, in the project source or a preview branch; returns the project resource source document. Requires project.files.write.

Arguments

  • project_referencestring

    Project ID or slug

  • idstring · min length 1required

    Resource ID, unique among the project resources.

  • patternstring · min length 1required

    URI pattern the resource answers, such as /users/:userId/profile.

  • descriptionstring · min length 1required

    What the resource returns.

  • titlestring | null

    Display title. Omit it or send null for no title.

  • source_target_kindstring

    The source to write: project (the default) or preview_branch. One of project, preview_branch.

  • target_branch_idstring · uuid | null

    The preview branch to write. Required with preview_branch and not accepted with project.

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__create_project_resource",    "arguments": {      "id": "string",      "pattern": "string",      "description": "string"    }  }}'
{  "jsonrpc": "2.0",  "id": 1,  "result": {    "content": [      {        "type": "text",        "text": "{\"id\":\"string\",\"pattern\":\"string\",\"description\":\"string\",\"title\":\"string\",\"source_path\":\"string\",\"source\":\"string\",\"edit_mode\":\"structured\",\"source_only_reasons\":[\"string\"]}"      }    ],    "structuredContent": {      "id": "string",      "pattern": "string",      "description": "string",      "title": "string",      "source_path": "string",      "source": "string",      "edit_mode": "structured",      "source_only_reasons": [        "string"      ]    }  }}

The tool ran; its output is result.structuredContent.