# Restart Instructions
## The Issue
The MCP server connection to Claude Desktop is using OLD code from before the hot-reload fix. That old server crashed because the file watcher path was wrong.
## The Solution
**Restart Claude Desktop** to pick up the new fixed code.
## Steps
1. **Quit Claude Desktop completely** (Cmd+Q)
2. **Reopen Claude Desktop**
3. **Test the connection:**
```
Use mcp__mcp-tool-factory__example-tool with action "greet"
```
4. **Expected output:**
```
🚀 🔥 SECOND RELOAD TEST - IT WORKS! Version 1.0.0 is live!
```
(or whatever the current dist/tools/example-tool.js says)
## Verify Hot-Reload After Restart
Once connected, test hot-reload:
1. **Modify the compiled file:**
```bash
cd /Users/tarun/workspace/simple-minimal-system/mcp-tool-factory
sed -i '' 's/SECOND RELOAD TEST - IT WORKS/THIRD TEST - STILL WORKS/g' dist/tools/example-tool.js
```
2. **Wait 1 second** (for 500ms debounce + reload)
3. **Call the tool again:**
```
Use mcp__mcp-tool-factory__example-tool with action "greet"
```
4. **Expected:** New message WITHOUT restarting Claude Desktop!
## What Changed
**Before (OLD code - crashed):**
- File watcher path: `/src/tools/**/*.ts` (relative, wrong)
- Server crashed when file watcher couldn't find directory
**After (NEW code - fixed):**
- File watcher path: `/Users/tarun/workspace/.../dist/tools/**/*.js` (absolute, correct)
- Watches actual compiled JavaScript files
- Hot-reload working perfectly (proven in tests)
## Current State
The **new code is committed and ready** - it just needs Claude Desktop to restart and pick it up.
Once restarted, hot-reload will work seamlessly in live conversations!