Integration Assistant Troubleshooting
Common issues and solutions for the Integration Assistant feature.
MCP Connection Issues
"fluxloop-mcp package is not installed"
Cause: The fluxloop-mcp Python package is missing.
Solution:
pip install fluxloop-mcp
Then click Refresh Integration View or restart VSCode.
"MCP Index not found"
Cause: Knowledge index hasn't been built yet.
Solution:
# Option 1: Use the MCP command
fluxloop-mcp rebuild-index
# Option 2: Run the script (if you have the repo)
cd packages/mcp
./scripts/rebuild_index.sh
The index will be created at ~/.fluxloop/mcp/index/dev.
"Python Environment not available"
Cause: Python 3.11+ is not installed or not in PATH.
Solution:
- Install Python 3.11 or newer
- Verify:
python3 --version - Restart VSCode
- Click Refresh Integration View
MCP Process Fails to Start
Cause: Python environment issues or corrupted installation.
Solution:
# Reinstall fluxloop-mcp
pip uninstall fluxloop-mcp
pip install fluxloop-mcp
# Verify installation
fluxloop-mcp --version
Check the FluxLoop output channel for detailed error messages.
OpenAI API Issues
"OpenAI API key is required"
Cause: No API key configured.
Solution:
- Get your API key from OpenAI Platform
- Store in VSCode settings:
{
"fluxloop.openaiApiKey": "sk-..."
} - Or enter when prompted (can be saved to Secret Storage)
"Invalid API key" or "Unauthorized"
Cause: API key is incorrect or expired.
Solution:
- Verify your key at OpenAI Platform
- Update in VSCode settings or Secret Storage
- Try again
"Rate limit exceeded"
Cause: Too many API requests.
Solution:
- Wait a few minutes before retrying
- Use a different model (e.g.,
gpt-4o-miniinstead ofgpt-4o) - Check your OpenAI usage limits
API Call Timeout
Cause: Network issues or slow model response.
Solution:
- Check your internet connection
- Switch to a faster model (
gpt-4o-mini) - Try again in a few moments
Flux Agent Issues
"Open a file and place the cursor where you need guidance"
Cause: No file is open in the editor.
Solution:
- Open a source file (e.g.,
src/server.ts,app/main.py) - Optionally select a code block
- Run Flux Agent again
"Open a FluxLoop project workspace"
Cause: No workspace folder is open.
Solution:
- Open a folder containing your FluxLoop project
- Ensure
configs/directory exists - Run Flux Agent again
Suggestions Are Too Generic
Cause: Insufficient context or selection.
Solution:
- Select specific code: Highlight the exact function/class you want to enhance
- Open main files: Open entry points like
server.tsormain.py - Add project context: Ensure
package.json/requirements.txtexist - Try Knowledge Search first: Get framework-specific info before running agent
Suggestions Don't Match My Framework
Cause: MCP analysis incorrectly detected framework.
Solution:
- Check System Status → MCP Index is ready
- Verify your project has clear framework indicators:
- Express:
package.jsonwith"express": "..." - FastAPI:
requirements.txtwithfastapi - Next.js:
package.jsonwith"next": "..."
- Express:
- Rebuild index if recipes were recently updated:
fluxloop-mcp rebuild-index
Performance Issues
Slow Response Times
Cause: Large files or complex analysis.
Solutions:
- Select smaller code blocks instead of entire files
- Use faster models: Switch to
gpt-4o-mini - Check MCP index: Ensure it's not rebuilding in the background
Extension Becomes Unresponsive
Cause: Background process stuck.
Solution:
- Check FluxLoop output channel for errors
- Restart VSCode
- Verify Python processes:
ps aux | grep fluxloop-mcp - Kill any stuck processes if needed
Data and Privacy
Where is Data Stored?
- MCP Index:
~/.fluxloop/mcp/index/dev(local only) - Suggestions: VSCode workspace state (local only)
- API Keys: VSCode Secret Storage (encrypted) or workspace settings
What Data is Sent to OpenAI?
When you run Flux Agent, the following is sent to OpenAI API:
- Selected code snippet or file content (truncated to ~4000 chars)
- MCP analysis results (framework detection, file paths)
- Your structured prompt
Not sent:
- Full codebase
- Environment variables or secrets
- Private repository metadata
Getting Help
If you encounter issues not covered here:
- Check the FluxLoop output channel for detailed logs
- Review VSCode Extension Troubleshooting
- Visit GitHub Issues
- Check MCP Server Docs for protocol-level debugging
Next Steps
- Knowledge Search - Learn about documentation queries
- Integration View - View reference
- Setup Guide - Installation and configuration