# veryfront__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.

Risk: mutating.

## Arguments

| Name                 | Type        | Required | Description                                                                               |
| -------------------- | ----------- | -------- | ----------------------------------------------------------------------------------------- |
| `project_reference`  | string      |          | Project ID or slug                                                                        |
| `id`                 | string      | Yes      | Resource ID, unique among the project resources.                                          |
| `pattern`            | string      | Yes      | URI pattern the resource answers, such as /users/:userId/profile.                         |
| `description`        | string      | Yes      | What the resource returns.                                                                |
| `title`              | string,null |          | Display title. Omit it or send null for no title.                                         |
| `source_target_kind` | string      |          | The source to write: project (the default) or preview\_branch.                            |
| `target_branch_id`   |             |          | The preview branch to write. Required with preview\_branch and not accepted with project. |

## Call it

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__create_project_resource",
    "arguments": {
      "id": "<id>",
      "pattern": "<pattern>",
      "description": "<description>"
    }
  }
}
```
