GitHub Repository
velt-js/velt-mcp-installer
When to Use the MCP Installer
- You are using an AI coding agent (Claude Code, Cursor, Windsurf, or Claude Desktop)
- You want an interactive, guided setup with automatic codebase analysis
- You want the AI to generate an implementation plan before making changes
- You need help wiring Velt into an existing authentication system or document structure
For a non-interactive, terminal-based workflow, see the
CLI page instead.
Prerequisites
- Node.js 18+
- An existing React or Next.js project (Next.js App Router, Pages Router, Vite + React, or Create React App)
- A Velt API key and auth token
- An MCP-compatible AI coding editor
Recommended: Install Agent Skills
For the best results, install Velt Agent Skills before using the MCP installer. Skills give your AI agent access to verified Velt implementation patterns.Quickstart
Step 1: Add the MCP Server
Add the Velt MCP server to your editor. The commands below usenpx to automatically download and run @velt-js/mcp-installer. You can also install it globally with:
- Claude Code
- Cursor
- Windsurf
- Claude Desktop
- Other
Run this command in your terminal:
Step 2: Start the Installation
In your AI chat, say:- Confirm your project directory
- Provide your Velt API key and auth token
- Select features (or type SKIP for CLI-only mode)
- Choose where to install
VeltProvider(app/page.tsxrecommended) - Choose corner position for Velt UI components
- Review the implementation plan
- Approve and apply changes
Installation Modes
Guided Mode (Default)
The guided mode generates a full implementation plan with codebase analysis before making any changes. Workflow:- Collect info: the AI asks setup questions one at a time (project path, API key, auth token, features, provider location, corner position)
- Discovery consent: the AI asks whether to scan your codebase for integration points (document ID sources, authentication patterns, JWT wiring)
- Verification: if scanning is approved, the AI shows findings for you to confirm, edit, or override
- Plan generation: a detailed implementation plan is generated based on your project structure and wiring data
- Apply: after you approve the plan, the AI applies changes step by step
- Validation: full QA validation runs automatically after installation
CLI-Only Mode (SKIP)
For experienced Velt developers who want the scaffold files without full integration:- At the feature selection step, type SKIP
- The Velt CLI runs with core-only flags
- You receive a TODO checklist for manual setup
Available Features
Codebase Discovery
In guided mode, the installer can automatically scan your project for integration points:
Each finding includes a confidence level (HIGH, MEDIUM, LOW, NONE). For uncertain findings, the installer asks you to verify rather than guessing.
If you decline the codebase scan, the AI asks a manual questionnaire covering document ID source, user authentication, JWT setup, and component insertion location.
Framework Support
Generated Code Structure
After installation, the generated files follow this pattern:MCP Tools
The MCP server exposes these tools to your AI agent:Troubleshooting
MCP server not loading
After adding the configuration, restart your editor. The MCP server runs over stdio and must be started by the editor process.AI not detecting the installer
Verify the MCP config is valid JSON and thatnpx -y @velt-js/mcp-installer runs successfully in your terminal. You can test with:
Discovery scan returns low confidence
If the codebase scan cannot determine your document ID or auth setup with confidence, the AI will ask explicit follow-up questions. You can also choose the manual questionnaire path by declining the scan.Validation errors after installation
The installer runs QA validation automatically. Check the browser console for Velt-specific errors after starting your dev server. Common issues include missing API keys or incorrect document IDs.Next Steps
- Agent Skills: Install skills to improve AI-generated Velt code
- CLI: Terminal-based Velt setup without an AI agent
- Quickstart: Manual step-by-step Velt setup
- Comments Overview: Learn about commenting features
- Key Concepts: Understand documents, locations, users, and access control

