# ๐ŸŽ‰ n8n VS Code Integration - Ready to Use! Your n8n MCP (Model Context Protocol) server has been successfully set up and configured! ## โœ… What's Been Installed 1. **MCP Server** - TypeScript-based server that connects VS Code to n8n 2. **n8n API Client** - Handles all communication with your n8n instance 3. **Configuration Files** - Pre-configured with your n8n instance and API key 4. **Documentation** - Complete setup and usage guides ## ๐Ÿ”ง Current Configuration - **n8n Instance**: `http://srvdocker02:8098` - **API Key**: Configured โœ“ - **Connection Status**: โœ… Successfully connected - **Workflows Found**: 1 workflow ("My workflow") ## ๐Ÿš€ Next Steps ### 1. Restart VS Code For the MCP server to be available in GitHub Copilot Chat, you need to restart VS Code: - Close and reopen VS Code - Or use `Cmd/Ctrl + Shift + P` โ†’ "Developer: Reload Window" ### 2. Start Using It! Open GitHub Copilot Chat and try these commands: #### List Workflows ``` @workspace List all my n8n workflows ``` #### Get Workflow Details ``` @workspace Show me the details of the workflow "My workflow" ``` #### Execute a Workflow ``` @workspace Execute the workflow with ID Zk4gbBzjxVppHiCB ``` #### View Executions ``` @workspace Show me recent executions ``` #### Update a Workflow ``` @workspace Update workflow Zk4gbBzjxVppHiCB to deactivate it ``` ## ๐Ÿ“‹ Available Operations The MCP server provides these tools to GitHub Copilot: | Tool | Description | |------|-------------| | `list_workflows` | List all workflows in your n8n instance | | `get_workflow` | Get complete workflow details including nodes | | `update_workflow` | Modify workflow configuration | | `activate_workflow` | Activate a workflow | | `deactivate_workflow` | Deactivate a workflow | | `execute_workflow` | Manually trigger a workflow | | `get_execution` | Get details of a specific execution | | `list_executions` | View execution history | ## ๐Ÿงช Testing Test the connection anytime with: ```bash node test-connection.js ``` Expected output: ``` โœ“ Successfully connected to n8n! โœ“ Found 1 workflow(s) ``` ## ๐Ÿ“ Project Structure ``` n8n_vscode_integration/ โ”œโ”€โ”€ src/ โ”‚ โ”œโ”€โ”€ index.ts # Main MCP server โ”‚ โ””โ”€โ”€ n8n-client.ts # n8n API client โ”œโ”€โ”€ dist/ # Compiled JavaScript โ”œโ”€โ”€ .vscode/ โ”‚ โ””โ”€โ”€ settings.json # VS Code MCP configuration โ”œโ”€โ”€ .env # Environment variables (API key) โ”œโ”€โ”€ package.json # Dependencies โ”œโ”€โ”€ README.md # Full documentation โ”œโ”€โ”€ SETUP.md # Setup guide โ””โ”€โ”€ test-connection.js # Connection test script ``` ## ๐Ÿ”’ Security Note Your API key is stored in: - `.env` file (for local testing) - `.vscode/settings.json` (for MCP server) Both files are in `.gitignore` to prevent accidental commits. Keep your API key secure! ## ๐Ÿ› ๏ธ Development If you want to modify the server: ```bash # Watch for changes and rebuild automatically npm run watch # Or build manually npm run build # After rebuilding, restart VS Code to reload the MCP server ``` ## ๐Ÿ“– Documentation - **README.md** - Complete documentation and API reference - **SETUP.md** - Detailed setup instructions - **THIS FILE** - Quick start guide ## ๐Ÿ’ก Example Use Cases 1. **Workflow Development**: Ask Copilot to help you understand and modify workflows 2. **Automation**: Execute workflows directly from VS Code 3. **Monitoring**: Check execution history and debug failures 4. **Documentation**: Have Copilot explain what your workflows do 5. **Batch Operations**: Use Copilot to perform operations on multiple workflows ## ๐Ÿ†˜ Need Help? If something doesn't work: 1. Check that VS Code has been restarted 2. Verify the connection: `node test-connection.js` 3. Check VS Code Output panel: View โ†’ Output โ†’ GitHub Copilot Chat 4. Review SETUP.md for troubleshooting steps ## ๐ŸŽฏ What You Can Ask Copilot - "List all my n8n workflows" - "Show me the most recent executions" - "Execute workflow X" - "What does workflow Y do?" (Copilot will fetch and analyze it) - "Activate all inactive workflows" - "Show me failed executions" - "Update workflow X to change [setting]" --- **You're all set! Restart VS Code and start using n8n with GitHub Copilot Chat! ๐Ÿš€**