docs: Add n8n MCP server credentials and API key for future AI agents

This commit is contained in:
mindesbunister
2025-12-13 17:00:24 +01:00
parent 81c5852927
commit 12b4c7cafc

View File

@@ -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