- Install Extension: Build and install the Dialectic extension in VSCode
- Open Git Repository: Open a repository with some commits in VSCode
- Start MCP Server: Run the Dialectic MCP server in a terminal
# In VSCode terminal
dialectic-mcp-serverExpected: Server starts and connects to VSCode extension via IPC
{
"tool": "request_review",
"params": {
"commit_range": "HEAD~1",
"title": "Test Synthetic PR",
"description": "Testing the synthetic PR workflow"
}
}Expected:
- MCP server generates diff and extracts AI comments
- Server sends
create_synthetic_prmessage to VSCode extension - Extension creates CommentController with AI insight comments
- Comments appear in VSCode editor at appropriate line numbers
- Open files that were changed in the commit range
- Look for comment threads with AI insights (π‘βππ§ icons)
- Verify comments are positioned at correct line numbers
- Check that comment content matches extracted AI insights
{
"tool": "update_review",
"params": {
"wait_for_feedback": {
"review_id": "<review_id_from_step_2>"
}
}
}Expected:
- Tool waits for user feedback
- User can interact with comments in VSCode
- Feedback flows back to MCP server
β
IPC Communication: MCP server successfully sends synthetic PR data to VSCode
β
Comment Creation: VSCode creates comment threads for AI insights
β
Visual Display: Comments appear with correct icons and formatting
β
File Navigation: Clicking comments navigates to correct file locations
β
Error Handling: Graceful handling of invalid file paths or line numbers
Phase 2 Implementation Complete:
- β
IPC message types added (
create_synthetic_pr,update_synthetic_pr) - β MCP server sends synthetic PR data via IPC
- β VSCode extension receives and processes synthetic PR messages
- β SyntheticPRProvider creates CommentController for AI insights
- β Comments display with appropriate icons and formatting
Ready for Testing: The basic synthetic PR workflow is now implemented and ready for end-to-end testing with real Git repositories and AI assistants.
- Manual Testing: Test with real Git repositories and MCP clients
- UI Polish: Improve comment formatting and add more interactive features
- Feedback Loop: Implement
wait_for_feedbackinteractive workflow - TreeDataProvider: Add PR file navigation sidebar
- WebView Integration: Connect with existing Dialectic review system