Installation
Installation
Section titled “Installation”CVMI is distributed as an NPM package and can be run directly using npx without requiring a global installation.
Prerequisites
Section titled “Prerequisites”- Node.js 18 or higher
- A package manager (npm, yarn, pnpm, or bun)
Installing via npx (Recommended)
Section titled “Installing via npx (Recommended)”The easiest way to use CVMI is with npx, which downloads and runs the latest version on demand:
# Install ContextVM skills interactivelynpx cvmi add
# Install a specific skillnpx cvmi add --skill overviewUsing npx ensures you always have the latest version without managing global installations.
Quick Start Examples
Section titled “Quick Start Examples”Install Skills
Section titled “Install Skills”Browse and install skills interactively:
npx cvmi addInstall a specific skill directly:
npx cvmi add --skill overviewnpx cvmi add --skill typescript-sdknpx cvmi add --skill server-devRun a Gateway
Section titled “Run a Gateway”Expose an MCP server to the Nostr network:
# Expose a local filesystem servernpx cvmi serve -- npx -y @modelcontextprotocol/server-filesystem /tmp
# Or with a remote HTTP MCP servernpx cvmi serveUse a Remote Server
Section titled “Use a Remote Server”Connect to a Nostr-based MCP server:
npx cvmi use npub1q...Verifying Installation
Section titled “Verifying Installation”To verify CVMI is working correctly, try running the help command:
npx cvmi --helpYou should see a list of available commands and options.
Check Installed Skills
Section titled “Check Installed Skills”List all installed skills:
npx cvmi listThis will show you which skills are currently available in your environment.
Global Installation (Optional)
Section titled “Global Installation (Optional)”If you prefer, you can install CVMI globally:
# Using npmnpm install -g cvmi
# Using yarnyarn global add cvmi
# Using pnpmpnpm add -g cvmiAfter global installation, you can use cvmi directly without npx:
cvmi addcvmi serve -- npx -y @modelcontextprotocol/server-filesystem /tmpNext Steps
Section titled “Next Steps”Now that you have CVMI installed, explore:
- Commands Reference - Learn about all available commands
- Configuration - Set up your environment and preferences