mirror of
https://github.com/ruvnet/RuVector.git
synced 2026-05-27 00:25:10 +00:00
- rvf-quickstart.sh / .ps1 — 7-step RVF workflow (create, ingest, query, branch, verify) - rvf-claude-appliance.sh / .ps1 — build & boot the 5.1 MB Claude Code Appliance - rvf-mcp-server.sh / .ps1 — start stdio or SSE MCP server for AI agents - rvf-node-example.mjs — full Node.js API walkthrough - rvf-browser.html — browser WASM vector search demo - rvf-docker.sh — containerized RVF CLI for CI/CD Co-Authored-By: claude-flow <ruv@ruv.net>
48 lines
1.6 KiB
Bash
Executable file
48 lines
1.6 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
# rvf-mcp-server.sh — Start the RVF MCP server for AI agents (Linux/macOS)
|
|
# Usage: bash scripts/rvf-mcp-server.sh
|
|
set -euo pipefail
|
|
|
|
echo "=== RVF MCP Server for AI Agents ==="
|
|
|
|
# ── 1. Install ──────────────────────────────────────────────
|
|
echo "[1/3] Checking @ruvector/rvf-mcp-server..."
|
|
if ! command -v npx >/dev/null 2>&1; then
|
|
echo "ERROR: Node.js not found. Install from https://nodejs.org"
|
|
exit 1
|
|
fi
|
|
|
|
# ── 2. Choose transport ─────────────────────────────────────
|
|
TRANSPORT="${1:-stdio}"
|
|
echo "[2/3] Starting MCP server (transport: $TRANSPORT)..."
|
|
echo ""
|
|
|
|
case "$TRANSPORT" in
|
|
stdio)
|
|
echo " For Claude Code, add to your MCP config:"
|
|
echo ' {'
|
|
echo ' "mcpServers": {'
|
|
echo ' "rvf": {'
|
|
echo ' "command": "npx",'
|
|
echo ' "args": ["@ruvector/rvf-mcp-server", "--transport", "stdio"]'
|
|
echo ' }'
|
|
echo ' }'
|
|
echo ' }'
|
|
echo ""
|
|
echo " Or run directly:"
|
|
npx @ruvector/rvf-mcp-server --transport stdio
|
|
;;
|
|
sse)
|
|
PORT="${2:-3100}"
|
|
echo " SSE server on http://localhost:$PORT"
|
|
echo " Connect any MCP client to this URL."
|
|
echo ""
|
|
npx @ruvector/rvf-mcp-server --transport sse --port "$PORT"
|
|
;;
|
|
*)
|
|
echo "Usage: $0 [stdio|sse] [port]"
|
|
echo " stdio — for Claude Code, Cursor, and local AI tools"
|
|
echo " sse — for remote AI agents over HTTP"
|
|
exit 1
|
|
;;
|
|
esac
|