@vaiftech/cli 1.7.6 → 1.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/README.md +27 -1
  2. package/dist/cli.cjs +251 -58
  3. package/dist/cli.js +225 -32
  4. package/package.json +1 -1
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  [![npm version](https://img.shields.io/npm/v/@vaiftech/cli)](https://www.npmjs.com/package/@vaiftech/cli)
4
4
  [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
5
5
 
6
- Command-line tools for [VAIF Studio](https://vaif.studio) (v1.7.6) — scaffold full projects from templates with feature selection, browser-based authentication, manage schemas, deploy functions, generate TypeScript types, and more.
6
+ Command-line tools for [VAIF Studio](https://vaif.studio) (v1.8.0) — scaffold full projects from templates with feature selection, browser-based authentication, manage schemas, deploy functions, generate TypeScript types, and more.
7
7
 
8
8
  ## Installation
9
9
 
@@ -256,6 +256,32 @@ export default async function handler(req, ctx) {
256
256
  }
257
257
  ```
258
258
 
259
+ ### Claude Code Integration
260
+
261
+ Set up [Claude Code](https://claude.ai/claude-code) to work with your VAIF project. This generates a `.mcp.json` (MCP server config) and a `CLAUDE.md` (project context with your full database schema, SDK examples, and API reference).
262
+
263
+ ```bash
264
+ vaif claude-setup # Auto-configure everything
265
+ vaif claude-setup --project-id <id> # Specify project
266
+ vaif claude-setup --skip-mcp # Only generate CLAUDE.md
267
+ vaif claude-setup --skip-claude-md # Only generate .mcp.json
268
+ vaif claude-setup -o ./my-app # Custom output directory
269
+ ```
270
+
271
+ | Option | Description | Default |
272
+ |--------|-------------|---------|
273
+ | `-c, --config <path>` | Config file path | `vaif.config.json` |
274
+ | `-p, --project-id <id>` | Project ID | from config/env |
275
+ | `-k, --api-key <key>` | API key for MCP server | auto-generated |
276
+ | `--skip-mcp` | Skip generating `.mcp.json` | `false` |
277
+ | `--skip-claude-md` | Skip generating `CLAUDE.md` | `false` |
278
+ | `-o, --output-dir <dir>` | Output directory | `.` |
279
+
280
+ **Generated files:**
281
+
282
+ - **`.mcp.json`** — Configures the `@vaiftech/mcp` server so Claude Code can query your database, manage schema, upload files, invoke functions, and more.
283
+ - **`CLAUDE.md`** — Gives Claude full context about your project: SDK setup with your actual API key, complete database schema with types and constraints, CRUD examples using your real table names, auth/storage/realtime/functions usage patterns, and filter/pagination reference.
284
+
259
285
  ## Configuration
260
286
 
261
287
  `vaif.config.json` (created by `vaif init`):