Installation
This guide walks you through installing both the VSCode extension and MCP server components.
Prerequisites
- VSCode: Version 1.74.0 or later
- Node.js: Version 18 or later (for MCP server)
- AI Assistant: Compatible with Model Context Protocol (MCP)
VSCode Extension
From VSCode Marketplace (Recommended)
- Open VSCode
- Go to Extensions (Ctrl+Shift+X / Cmd+Shift+X)
- Search for "Dialectic"
- Click "Install" on the Dialectic extension
- Reload VSCode when prompted
From VSIX File
If installing from a local VSIX file:
- Download the
.vsix
file from the releases page - Open VSCode
- Go to Extensions (Ctrl+Shift+X / Cmd+Shift+X)
- Click the "..." menu and select "Install from VSIX..."
- Select the downloaded
.vsix
file - Reload VSCode when prompted
MCP Server
Via npm (Recommended)
npm install -g dialectic-mcp-server
From Source
git clone https://github.com/socratic-shell/dialectic.git
cd dialectic/server
npm install
npm run build
npm link
AI Assistant Configuration
Configure your AI assistant to use the Dialectic MCP server. The exact steps depend on your AI assistant:
For Amazon Q CLI
Add to your MCP configuration:
{
"mcpServers": {
"dialectic": {
"command": "dialectic-mcp-server",
"args": []
}
}
}
For Other MCP-Compatible Assistants
Refer to your AI assistant's documentation for adding MCP servers. Use:
- Command:
dialectic-mcp-server
- Transport: stdio
- Arguments: None required
Verification
Test VSCode Extension
- Open VSCode in a project directory
- Check that "Dialectic" appears in the sidebar (activity bar)
- The extension should show "Ready" status
Test MCP Server
- Start your AI assistant with MCP configuration
- Verify the
present_review
tool is available:You: "What tools do you have available?" AI: "I have access to... present_review (Display a code review in VSCode)..."
End-to-End Test
- Make some code changes in your project
- Ask your AI assistant: "Present a review of my recent changes"
- The review should appear in the Dialectic panel in VSCode
- File references in the review should be clickable
Troubleshooting
Extension Not Loading
- Check VSCode version (must be 1.74.0+)
- Reload VSCode window (Ctrl+Shift+P → "Developer: Reload Window")
- Check VSCode Developer Console for errors (Help → Toggle Developer Tools)
MCP Server Not Found
- Verify installation:
which dialectic-mcp-server
- Check Node.js version:
node --version
(must be 18+) - Try reinstalling:
npm uninstall -g dialectic-mcp-server && npm install -g dialectic-mcp-server
IPC Connection Issues
- Ensure both extension and MCP server are running
- Check that
DIALECTIC_IPC_PATH
environment variable is set in terminal - Restart VSCode to refresh environment variables
File References Not Working
- Verify you're in a workspace (not just a single file)
- Check that file paths in reviews are relative to workspace root
- Ensure files exist at the referenced locations
Configuration
VSCode Extension Settings
The extension provides these configurable settings:
dialectic.autoShow
: Automatically show review panel when reviews are received (default: true)dialectic.maxContentLength
: Maximum review content length in characters (default: 100000)
Access via File → Preferences → Settings → Search "dialectic"
MCP Server Options
The MCP server accepts these command-line options:
--log-level
: Set logging level (debug, info, warn, error) (default: info)--timeout
: IPC timeout in milliseconds (default: 5000)
Example:
dialectic-mcp-server --log-level debug --timeout 10000
Uninstallation
Remove VSCode Extension
- Go to Extensions in VSCode
- Find "Dialectic" extension
- Click gear icon → "Uninstall"
Remove MCP Server
npm uninstall -g dialectic-mcp-server
Clean Configuration
Remove any MCP server configuration from your AI assistant's settings.
Next Steps
- Read the Quick Start guide for your first review
- Learn about Review Format conventions
- Check Troubleshooting for common issues