Install
openclaw skills install socraticode-mcpInstall and configure SocratiCode MCP server for semantic code search and codebase indexing
openclaw skills install socraticode-mcpInstall and configure SocratiCode for semantic code search and codebase intelligence on OpenClaw.
MCP server providing:
| Requirement | Purpose |
|---|---|
| Docker running | Qdrant vector database |
| npx (Node.js 18+) | Execute socraticode package |
| mcporter | Manage MCP servers |
npm install -g mcporter
Create ~/.openclaw/workspace/config/mcporter.json:
{
"mcpServers": {
"socraticode": {
"command": "npx",
"args": ["-y", "socraticode"]
}
}
}
Verify:
mcporter list
docker run -d --name socraticode-qdrant \
-p 16333:6333 -p 16334:6334 \
qdrant/qdrant:v1.17.0
To index a specific project (not the config directory), create mcporter.json in project root:
cd /path/to/your-project
echo '{
"mcpServers": {
"socraticode": {
"command": "npx",
"args": ["-y", "socraticode"]
}
}
}' > mcporter.json
Then use --config mcporter.json:
# Index
mcporter --config mcporter.json call socraticode.codebase_index
# Check status
mcporter --config mcporter.json call socraticode.codebase_status
# Search
mcporter --config mcporter.json call socraticode.codebase_search query="auth" limit=5
| Command | Purpose |
|---|---|
codebase_index | Start indexing |
codebase_status | Check progress |
codebase_search | Semantic search |
codebase_graph_query | Find imports/dependents |
codebase_graph_visualize | Mermaid diagram |
codebase_graph_circular | Detect cycles |
codebase_watch | Toggle file watcher |
codebase_stop | Stop indexing |
Use per-project mcporter.json + --config flag.
docker start socraticode-qdrant
# Or recreate:
docker run -d --name socraticode-qdrant -p 16333:6333 -p 16334:6334 qdrant/qdrant:v1.17.0
Install native Ollama:
brew install ollama
ollama serve
Or use OpenAI:
export OPENAI_API_KEY=your-key
export EMBEDDING_PROVIDER=openai
Add to your AGENTS.md:
## Codebase Search (SocratiCode)
- Use `codebase_search` for exploration
- Check `codebase_status` if no results
- Search before reading files