Request for Assistance
I'm unable to set up the Cipher MCP server with local Ollama and Qdrant instances on Windows. Despite multiple attempts with various configurations, the cipher command fails to execute properly and shows directory listing behavior instead of running the application.
Environment Details
- Operating System: Windows 10
- Cipher Version: 0.3.0 (installed globally via npm)
- Node.js Version: v20.19.4
- Ollama: Running locally on default port 11434
- Qdrant: Running locally on default port 6333
- Development Directory: [Project Directory]
Problem Statement
The fundamental issue is that the cipher command itself is not executing properly. When running any cipher command, it displays directory listing output instead of executing the application. This suggests a system-level installation or execution environment problem rather than a configuration issue.
What I've Tried - Comprehensive List
1. Configuration Files Setup
memAgent/cipher.yml (exact configuration):
# LLM Configuration
llm:
provider: ollama
model: hf.co/unsloth/gpt-oss-20b-GGUF:Q4_K_M
baseURL: $OLLAMA_BASE_URL
maxIterations: 50
# Embedding Configuration (for local Ollama)
embedding:
type: ollama
model: nomic-embed-text:latest
baseUrl: $OLLAMA_BASE_URL
dimensions: 1536
# System prompt
systemPrompt:
enabled: true
content: |
You are an AI programming assistant focused on coding and reasoning tasks.
.env file:
# LLM Configuration for Ollama
LLM_PROVIDER=ollama
OLLAMA_BASE_URL=http://localhost:11434
MODEL=hf.co/unsloth/gpt-oss-20b-GGUF:Q4_K_M
# Vector Store Configuration for Qdrant
VECTOR_STORE_TYPE=qdrant
VECTOR_STORE_URL=http://localhost:6333
# Disable API keys since we're using local services
DISABLE_EMBEDDINGS=false
# Memory settings
SEARCH_MEMORY_TYPE=both
USE_WORKSPACE_MEMORY=false
DISABLE_REFLECTION_MEMORY=true
# MCP Settings
MCP_SERVER_MODE=aggregator
AGGREGATOR_CONFLICT_RESOLUTION=prefix
ENABLE_LAZY_LOADING=false
MCP_PORT=3001
2. Multiple Launch Approaches
Batch File Approach (run-cipher-mcp.bat):
@echo off
echo.
echo Starting Cipher MCP Server with Original Configuration
echo.
REM Set environment variables exactly as per your requirements
set LLM_PROVIDER=ollama
set OLLAMA_BASE_URL=http://localhost:11434
set MODEL=hf.co/unsloth/gpt-oss-20b-GGUF:Q4_K_M
set VECTOR_STORE_TYPE=qdrant
set VECTOR_STORE_URL=http://localhost:6333
set DISABLE_EMBEDDINGS=false
set MCP_SERVER_MODE=aggregator
set AGGREGATOR_CONFLICT_RESOLUTION=prefix
set ENABLE_LAZY_LOADING=false
set MCP_PORT=3001
REM Navigate to project directory
cd /d "[Project Directory]"
echo.
echo Environment variables set:
echo LLM_PROVIDER=%LLM_PROVIDER%
echo MODEL=%MODEL%
echo VECTOR_STORE_URL=%VECTOR_STORE_URL%
echo MCP_PORT=%MCP_PORT%
echo.
echo Attempting to run MCP server with exact CLI reference format...
echo.
REM Run with the exact format from docs - using stdio transport
cipher --mode mcp --mcp-transport-type stdio --mcp-port %MCP_PORT%
echo.
echo Server stopped.
pause
PowerShell Approach:
- Created multiple PowerShell scripts with environment variable setting
- Used
& "[npm path]\cipher.cmd"approach - Tested with
npx @byterover/cipherapproach
3. Exact Documentation Commands
Following the CLI reference documentation precisely:
cipher --mode mcp --mcp-transport-type stdio --mcp-port 3001cipher --mode mcp --mcp-transport-type sse --mcp-port 3000cipher --mode mcp --mcp-transport-type streamable-http --mcp-port 3001cipher --mode mcp --timeout 120000 --agent ./cipher-mcp-config.yml
4. Model Verification
Confirmed Ollama models exist and are accessible:
ollama list
Results show:
hf.co/unsloth/gpt-oss-20b-GGUF:Q4_K_M(LLM model)nomic-embed-text:latest(embedding model)- Other models including
mistral,llama3, etc.
5. Installation and Reinstallation Attempts
- Completely uninstalled:
npm uninstall -g @byterover/cipher - Clean reinstallation:
npm install -g @byterover/cipher - Verified installation with
where cipher(returns nothing - indicating no proper installation)
6. Alternative Approaches Tested
Direct node execution:
node ./src/app/index.ts --mode mcp --mcp-transport-type stdio --mcp-port 3001- Results in "Unknown file extension .ts" error (Node.js can't execute TypeScript directly)
npx approach:
npx @byterover/cipher --mode mcp --mcp-transport-type stdio --mcp-port 3001- Same directory listing behavior
Different ports tested:
- Port 3000 (conflicts with other applications)
- Port 3001 (our current working port)
- Port 4000, 5000, 6000 (various alternatives)
Specific Error Patterns Observed
Error Pattern 1: Successful Connection but Missing Services
21:44:25 INFO: [StorageManager:Database] Connected successfully
21:44:25 INFO: [StorageManager] Storage system connected
No embeddingManager found in agent.services
Error Pattern 2: Initialization Issues
21:44:24 INFO: MCP Manager: MCPManager initialized
21:44:24 INFO: MCP Manager: Initializing 0 servers (0 disabled)
21:44:24 INFO: MCP Manager: Initialization complete
...
No embeddingManager found in agent.services
Expected vs Actual Behavior
Expected Behavior:
When running cipher --mode mcp --mcp-transport-type stdio --mcp-port 3001, I expect to see:
INFO: MCP Manager: MCPManager initialized
INFO: [VectorStoreFactory] Creating vector storage from environment
INFO: [VectorStore:Qdrant] Connecting to Qdrant
INFO: [VectorStore:Qdrant] Successfully connected
INFO: [StorageManager] Initialized with configuration
INFO: [StorageManager] Storage system connected
INFO: [MCP Handler] Registering 1 tools: cipher_bash
INFO: [MCP Handler] MCP server initialized successfully (mode: aggregator)
INFO: [MCP Mode] Cipher is now running as aggregator MCP server
Actual Behavior:
Instead, I get repeated directory listing output:
Listing [Directory Path]\
New files added to this directory will not be encrypted.
Listing [Directory Path]\
New files added to this directory will not be encrypted.
...
This pattern repeats continuously until manually stopped.
Technical Analysis and Troubleshooting
Key Observations:
- Command Execution Issue: The cipher command is not executing the application - it's behaving like a directory listing utility
- PATH/Installation Problem: The
where ciphercommand returns nothing, suggesting the command isn't properly installed or linked - Environment Variable Confusion: Even when environment variables are set in batch files, they don't seem to propagate properly
- Consistent Failure Pattern: Every approach produces the same directory listing behavior
- No Configuration Error: The configuration files are syntactically correct and match documentation examples
- Partial Success: Some configurations show successful connections to Qdrant and databases but fail with "No embeddingManager found in agent.services"
Logs and Evidence:
From various attempts, I've captured these key log patterns:
cipher --versionproduces same directory listing behaviorcipher --helpproduces same directory listing behavior- All MCP server attempts show the same behavior
- No error messages or stack traces - just directory listings
- Some attempts show "No embeddingManager found in agent.services" error
Impact on VSCode Integration
Because the MCP server cannot be started properly, VSCode RooCode extension cannot detect or connect to the Cipher service, making the memory-enhanced AI coding assistance impossible to use.
Additional Context
- I have not attempted Docker usage as requested
- All configuration files are properly formatted according to documentation
- Model names are exactly as specified in documentation (no simplification)
- Qdrant and Ollama are confirmed working and accessible
- Node.js environment is properly installed and working for other applications
- No other applications are conflicting with the cipher command name
Request for Assistance
I would greatly appreciate help understanding:
- What might be causing the cipher command to display directory listings instead of executing
- Whether this is a Windows-specific installation issue
- How to properly diagnose and fix the underlying command execution problem
- If there are specific Windows installation requirements or environment variables that need to be set
- Why some configurations show "No embeddingManager found in agent.services" even when connections appear successful
This appears to be a fundamental installation/environment issue rather than a configuration problem, as all attempts with different approaches yield the same result.
- You can't directly run cipher command on Windows since it has a built-in "cipher" command, so it confuses between the two. You will need to run npx @byterover/cipher in order to run our cipher on Windows
- I believe this is a problem on Windows only because production team has never encounter such issue with Linux and MacOs.
- As i mentioned in the 1st answer.
- No, there are not
- I believed it is caused by setting arg
LLM_PROVIDER=ollamaandMODEL=hf.co/unsloth/gpt-oss-20b-GGUF:Q4_K_Min the .env file. Please remove it from the .env file, re-run it and notify me whether it works
@willingWill17 Hi, this issue was generated using LLM to squeeze in as much context as I can of what has been tried. Now let's start from a clean slate:
latest version .env is:
# LLM Configuration for Ollama
OLLAMA_BASE_URL=http://localhost:11434
EMBEDDING_MODEL=hf.co/Qwen/Qwen3-Embedding-0.6B-GGUF:Q8_0
# Vector Store Configuration for Qdrant
VECTOR_STORE_TYPE=qdrant
VECTOR_STORE_URL=http://localhost:6333
# Disable embeddings (if needed)
DISABLE_EMBEDDINGS=false
# Memory settings
SEARCH_MEMORY_TYPE=both
USE_WORKSPACE_MEMORY=false
DISABLE_REFLECTION_MEMORY=true
# MCP Settings
MCP_SERVER_MODE=aggregator
AGGREGATOR_CONFLICT_RESOLUTION=prefix
ENABLE_LAZY_LOADING=false
MCP_PORT=3001
MemAgent/cipher.yml:
# LLM Configuration
llm:
provider: ollama
model: hf.co/unsloth/gpt-oss-20b-GGUF:Q4_K_M
baseURL: $OLLAMA_BASE_URL
maxIterations: 50
# Embedding Configuration (for local Ollama)
embedding:
type: ollama
model: nomic-embed-text:latest
baseUrl: $OLLAMA_BASE_URL
dimensions: 1536
# System prompt
systemPrompt:
enabled: true
content: |
You are an AI programming assistant focused on coding and reasoning tasks.
Running the command you wrote in answer 1:
PS C:\Users\Username\Desktop\Software\cipher> npx @byterover/cipher
Listing C:\Users\Username\Desktop\Software\cipher\
New files added to this directory will not be encrypted.
U .dockerignore
U .env
U .env.example
U .github
U .gitignore
U .prettierignore
U .prettierrc
U assets
U CHANGELOG.md
U cipher-mcp-config.yml
U CONTRIBUTING.md
U data
U docker-compose.yml
U Dockerfile
U docs
U eslint.config.js
U examples
U LICENSE
U matrix
U memAgent
U memAgent copy
U package-lock.json
U package.json
U pnpm-lock.yaml
U README.md
U run-cipher-complete.ps1
U run-cipher-local.ps1
U run-cipher-simple.ps1
U scripts
U src
U start-cipher-mcp.ps1
U start-cipher.bat
U tsconfig.json
U tsconfig.typecheck.json
U tsup.config.ts
U vitest.config.ts
It seems that there needs to be an edition on README.MD of the project, signifying that it does not officially support windows.
Please advise what to do, as I have sunk around 4-6 hours into it before making the issue and I'm frustrated if someone else has to go through this and waste time due to poor documentation.
We sincerely apologize for the inconvenience. There are two possible workarounds for your issue:
- Use WSL (Windows Subsystem for Linux): You can run Cipher within WSL, following the same steps outlined in the README file.
- Build a Docker container: You can set up Cipher as a service within Docker.
A similar issue was previously reported by another user, and the discussion can be found here: [GitHub Discussion #209](https://github.com/campfirein/cipher/discussions/209).
We hope one of these approaches helps resolve the problem.