README_SETUP.md•2.15 kB
# ✅ Setup Complete!
The Obsidian MCP has been fixed and is ready to use.
## What Was Fixed
1. ✅ **Removed build step requirement** - No longer needs `npm run build`
2. ✅ **Added environment variable support** - Automatically reads `OBSIDIAN_VAULT_PATH` from environment
3. ✅ **Updated all configuration files** - References `index.js` directly instead of `build/index.js`
4. ✅ **Fixed setup scripts** - Both PowerShell and Bash scripts now work correctly
5. ✅ **Installed dependencies** - All npm packages are ready
## Quick Start
### For Windows Users
Run the setup script:
```powershell
.\setup.ps1
```
### For macOS/Linux Users
Run the setup script:
```bash
chmod +x setup.sh
./setup.sh
```
### Manual Configuration
If you prefer manual setup, edit your Amp config file:
**Location:**
- Windows: `%APPDATA%\Amp\mcp-config.json`
- macOS/Linux: `~/.config/amp/mcp-config.json`
**Content:**
```json
{
"mcpServers": {
"obsidian": {
"command": "node",
"args": [
"C:/ObMCP/index.js"
],
"env": {
"OBSIDIAN_VAULT_PATH": "C:/path/to/your/ObsidianVault"
}
}
}
}
```
**Remember:**
- Use absolute paths
- On Windows, use forward slashes `/` not backslashes `\`
- Replace `C:/ObMCP/index.js` with the actual path to this directory
- Replace `C:/path/to/your/ObsidianVault` with your Obsidian vault path
## Next Steps
1. **Run the setup script** or manually configure Amp
2. **Restart Amp**
3. **Test it:**
```
You: "Create a note in Obsidian called 'Test' with content 'Hello from Amp!'"
```
## Documentation
- 📖 [SETUP.md](SETUP.md) - Detailed setup instructions
- 📚 [README.md](README.md) - Full feature documentation
- 💡 [EXAMPLES.md](EXAMPLES.md) - Usage examples
## Files Modified
- `index.js` - Added environment variable support
- `obsidian-config.json` - Updated to reference `index.js` directly
- `setup.ps1` - Updated for new structure
- `setup.sh` - Updated for new structure
- `SETUP.md` - Created comprehensive setup guide
- Dependencies installed via `npm install`
---
**You're all set! The MCP is ready for easy setup and use. 🎉**