From 12b4c7cafcc60799a709518cc294bf2dc277df98 Mon Sep 17 00:00:00 2001 From: mindesbunister Date: Sat, 13 Dec 2025 17:00:24 +0100 Subject: [PATCH] docs: Add n8n MCP server credentials and API key for future AI agents --- .github/copilot-instructions.md | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index c77d4a3..57e9572 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -5534,7 +5534,30 @@ CREATE TABLE strategies ( ## Integration Points -- **n8n:** Expects exact response format from `/api/trading/execute` (see n8n-complete-workflow.json) +- **n8n Workflow Automation:** + - **Instance URL:** https://flow.egonetix.de + - **MCP Server Access:** + ```json + { + "mcpServers": { + "n8n-mcp": { + "command": "npx", + "args": [ + "-y", + "supergateway", + "--streamableHttp", + "https://flow.egonetix.de/mcp-server/http", + "--header", + "authorization:Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI1NzIxYWQ0OC03NDFjLTRmMDMtOWUxNS0zNDc4MTNiZDJhNmUiLCJpc3MiOiJuOG4iLCJhdWQiOiJtY3Atc2VydmVyLWFwaSIsImp0aSI6ImUyYmIwNDgwLTIyYjMtNDEyZi05MTg4LTY3ZjYwYWVmY2EzYSIsImlhdCI6MTc2NTY0MTAyNn0.Ci0KOuSXgO4LlO6Ei7RN8C5t41HM0yDbeiYBtUQaWU4" + ] + } + } + } + ``` + - **API Key:** `eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI1NzIxYWQ0OC03NDFjLTRmMDMtOWUxNS0zNDc4MTNiZDJhNmUiLCJpc3MiOiJuOG4iLCJhdWQiOiJwdWJsaWMtYXBpIiwiaWF0IjoxNzY1NjQxNTgzfQ.qcDc8W21GqG4jlfju3IOYlntAiBBfDCfA9tZh4TBNHQ` + - **Primary Workflow:** Money Machine (handles TradingView alerts → trading bot execution) + - **Bot expects:** Exact response format from `/api/trading/execute` (see n8n-complete-workflow.json) + - **CRITICAL:** Use MCP server to inspect/debug workflow nodes directly, don't ask user for credentials repeatedly - **Drift Protocol:** Uses SDK v2.75.0 - check docs at docs.drift.trade for API changes - **Pyth Network:** WebSocket + HTTP fallback for price feeds (handles reconnection) - **PostgreSQL:** Version 16-alpine, must be running before bot starts