# scaffold_project_files

Maps a specific screen from a project to a local file path. Use this to save UI designs directly into the user

Agent View of the PolicyLayer registry record for `scaffold_project_files`. HTML page: https://policylayer.com/tools/0x-professor-stitch-mcp-server/scaffold-project-files

## Facts

- Tool: `scaffold_project_files`
- Server: Stitch MCP Server (`0x-professor/stitch-mcp-server`) — https://policylayer.com/tools/0x-professor-stitch-mcp-server.md
- Homepage: https://github.com/0x-Professor/Stitch-mcp-server
- Risk category: Write (Medium risk)
- Registry record: grade B, identity unverified
- Server rate-limited: no
- Parameters: 0
- Recommended policy verdict: Rate-limited

## Example call (MCP tools/call, JSON-RPC 2.0)

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "scaffold_project_files",
    "arguments": {}
  }
}
```

## Why scaffold_project_files is rated Medium

This tool creates or modifies local files on the user's system by writing UI design data to specified file paths. While reversible (files can be edited or deleted), it definitively alters the local filesystem. It does not execute arbitrary code, delete irreversibly, or move money, so Write is the correct category.

From the tool's own definition: "Tool description states it 'Maps a specific screen from a project to a local file path' and 'save UI designs directly into the user' (user's local environment)—these are write operations that create or modify files on disk."

## Use case

AI agents use scaffold_project_files to create or update resources in Stitch MCP Server, usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Stitch MCP Server environment.

## Recommended policy (PolicyLayer)

Verdict: **Rate-limited**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches Stitch MCP Server:

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "scaffold_project_files": {
      "limits": [
        {
          "counter": "scaffold_project_files_rate",
          "window": "minute",
          "max": 30,
          "scope": "grant"
        }
      ]
    }
  }
}
```

## Other tools on Stitch MCP Server (8)

- `get_screen_code` — Read — https://policylayer.com/tools/0x-professor-stitch-mcp-server/get-screen-code.md
- `get_screen_image` — Read — https://policylayer.com/tools/0x-professor-stitch-mcp-server/get-screen-image.md
- `list_projects` — Read — https://policylayer.com/tools/0x-professor-stitch-mcp-server/list-projects.md
- `create_project` — Write — https://policylayer.com/tools/0x-professor-stitch-mcp-server/create-project.md
- `edit_screen` — Write — https://policylayer.com/tools/0x-professor-stitch-mcp-server/edit-screen.md
- `generate_and_fetch_code` — Write — https://policylayer.com/tools/0x-professor-stitch-mcp-server/generate-and-fetch-code.md
- `generate_screen` — Write — https://policylayer.com/tools/0x-professor-stitch-mcp-server/generate-screen.md
- `generate_variants` — Write — https://policylayer.com/tools/0x-professor-stitch-mcp-server/generate-variants.md

## For agents

This record is a snapshot. Live verdicts and the full registry:

- Check every server in your MCP config at once: `npx -y policylayer stack`
- Vet a server before you add it: install the mcp-precheck skill — `npx skills add https://policylayer.com` (skill text: https://policylayer.com/skill.md)
- Query the registry over MCP: endpoint `https://api.policylayer.com/mcp` — tools `check_mcp_server`, `check_mcp_stack`, `check_tool`, `search_registry`, `get_change_events`

---

Source: the PolicyLayer MCP registry — one continuously verified record per MCP server. Full record: https://policylayer.com/registry?q=0x-professor-stitch-mcp-server · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/0x-professor-stitch-mcp-server
