Using with VSCode Extension
The FluxLoop VSCode extension provides a graphical interface for the MCP server, making it easy to use without manual CLI commands.
Overview
Instead of running fluxloop-mcp commands manually, the VSCode extension:
- Automatically manages the MCP server process
- Provides visual status indicators
- Offers one-click knowledge search
- Integrates MCP analysis with Flux Agent for code suggestions
Setup
Install VSCode Extension
- Open VSCode or Cursor
- Search for "FluxLoop" in Extensions
- Click Install
Install MCP Server
The extension requires the MCP server package:
pip install fluxloop-mcp
Build Index
fluxloop-mcp rebuild-index
Using Integration View
Once installed, open the FluxLoop activity bar and navigate to the Integration view.
Check Status
The System Status section shows:
- ✅ fluxloop-mcp Package: Installed and ready
- ✅ MCP Index: Knowledge base built
- ✅ Python Environment: Python 3.11+ detected
If any item shows ❌, click it for installation guidance.
Knowledge Search
- Click Knowledge Search button
- Enter your question (e.g., "How do I trace FastAPI endpoints?")
- View the answer in the FluxLoop output channel
The extension calls fluxloop-mcp --once --query "<your question>" behind the scenes.
Flux Agent
For detailed integration suggestions:
- Open a file you want to enhance
- Click Run Flux Agent
- The extension:
- Runs
fluxloop-mcpwithrun_integration_workflowtool - Combines analysis with LLM reasoning
- Presents a detailed integration plan
- Runs
Features Powered by MCP
Repository Analysis
- Automatic framework detection (Express, FastAPI, Next.js, etc.)
- Entry point identification
- Package manager detection
Integration Planning
- Framework-specific code snippets
- Anchor-based insertion points
- Post-integration validation steps
Documentation Search
- Citation-backed answers
- Context-aware suggestions
- Framework recipe lookup
Workflow Comparison
Manual MCP Usage (CLI)
# Step 1: Analyze
echo '{"type":"request","id":"1","tool":"analyze_repository","params":{"root":"."}}' | fluxloop-mcp
# Step 2: Parse JSON response manually
# Step 3: Run next tool based on results
# Step 4: Copy/paste code snippets
VSCode Extension (Integrated)
- Click Run Flux Agent
- Review suggestion panel
- Copy and apply changes
The extension handles all MCP communication, JSON parsing, and workflow orchestration automatically.
Advanced: Direct MCP Access
If you need to call MCP tools directly (for scripting or debugging):
# Test FAQ
fluxloop-mcp --once --query "How do I configure runners?"
# Test workflow
echo '{"type":"request","id":"1","tool":"run_integration_workflow","params":{"root":"."}}' | fluxloop-mcp
But for daily use, the VSCode Integration view is recommended.