Commit Graph

14 Commits

Author SHA1 Message Date
Christian Gick
20cfa456c0 fix(GB-64): Correct GridBot MCP API port from 8000 to 8001
Changes:
- Updated ~/.claude/settings.json: GRIDBOT_API_URL → http://services:8001
- Updated README.md documentation with correct port

Root cause: Conductor API exposed on port 8001, not 8000.
Health endpoint verified: http://services:8001/health

Requires Claude Code restart to load new MCP configuration.
2026-01-20 19:28:16 +02:00
Christian Gick
72bc14ed2c fix(GB-63): Add min_pi_count parameter to pi_consensus_top tool
Default changed from 3 to 2 to match reality (we have max 2 PIs per symbol).
Allows querying consensus positions held by 2+ PIs instead of requiring 3+.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-20 18:47:07 +02:00
Christian Gick
5ce18bb435 fix: Update default GRIDBOT_API_URL to services:8001
Changed from services.agiliton.internal:8000 to services:8001 to match actual conductor port.

Port 8001 is the external mapping for conductor's internal port 8000.
2026-01-20 18:07:57 +02:00
Christian Gick
823b8b4297 feat(GB-51): Add monthly_performance MCP tool
- Add monthly_performance tool with year/month parameters
- Calls /api/trades/monthly/{year}/{month} endpoint
- Returns comprehensive monthly analytics

Enables January 2026 loss analysis via Claude Code.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-20 11:21:14 +02:00
Christian Gick
16ee24d45f docs(CF-236): Create comprehensive README with CLI documentation
Created full README.md for gridbot-mcp including:

**MCP Server Documentation:**
- Configuration for Claude Code
- Complete tool reference (60+ tools)
- Monitoring, trading, analysis, system tools
- Signal intents and scale-out features

**CLI Wrapper Documentation:**
- Full command reference for gridbot CLI
- Session start (recommended workflow)
- Monitoring commands
- Market data commands
- Trading validation
- Analysis tools
- Emergency operations

**Architecture:**
- Conductor API integration
- Position management with real-time P/L
- Risk management and circuit breakers
- PI Consensus integration

CLI wrapper located at:
~/Development/Infrastructure/AgilitonScripts/bin/gridbot

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-19 21:47:46 +02:00
Christian Gick
c9a1775bb5 feat(Session 452): Add 24/5 trading MCP tools
Added 4 new MCP tools for Session 452 - 24/5 Trading Enhancement:

1. market_closure_context
   - Get current market closure context and crypto allocation adjustments
   - Endpoint: /api/dashboard/market-closure-context

2. pi_consensus_query
   - Get PI consensus data for a symbol (3+ PIs holding)
   - Endpoint: /api/pi-intelligence/consensus/{symbol}

3. pi_consensus_top
   - Get top PI consensus opportunities
   - Endpoint: /api/pi-intelligence/consensus/top

4. pi_scan_trigger
   - Trigger manual PI portfolio scan
   - Endpoint: /api/pi-intelligence/scan/trigger

USAGE: Enables Claude to query market status and PI consensus during
trading sessions, supporting dynamic strategy adjustments.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-19 12:47:48 +02:00
Christian Gick
b072878ca5 Replace hardcoded IPs with DNS hostnames
- Updated server.py BASE_URL to use services.agiliton.internal
- Updated docstring with new default URL

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-17 09:11:41 +02:00
Christian Gick
69d7c1f572 feat(Session 246): Add 8 new MCP tools for gridbot enhancement
Added MCP tools to match Session 246 conductor API enhancements:

**New Tools:**
1. session_start - Aggregated session workflow (replaces 5-6 calls)
2. scale_out_trigger - Manual profit-taking (prevents givebacks)
3. create_intents_bulk - Batch intent creation (5-10x faster)
4. close_positions_by_filter - Fast rebalancing (asset class, P/L, symbols)
5. scale_out_adjust_threshold - Per-symbol threshold override
6. scale_out_get_overrides - List all threshold overrides
7. scale_out_delete_override - Revert symbol to default threshold

**Integration:**
- All tools map to new conductor API endpoints
- Handlers added to call_tool switch
- Input schemas with proper validation

**Impact:**
- 80% time savings on session start
- Instant profit protection via manual scale-out
- 10x faster portfolio rebalancing
- Dynamic elite symbol tuning

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-16 17:24:26 +02:00
Christian Gick
f3c3ab5e2d fix(TSL): Enable TSL by default in MCP tool
Changed is_tsl_enabled default from False to True in:
- Tool schema definition
- Payload construction (arguments.get default)

Fixes issue where MCP tool was overriding conductor API schema
default. Requires Claude Code restart to reload MCP tools.

Related: eToroGridbot commit 2d91848
2026-01-16 12:27:47 +02:00
Christian Gick
25839d0b19 fix: Default GRIDBOT_API_URL to 10.0.1.3 (infra VM) 2026-01-15 16:37:42 +02:00
Christian Gick
1ac1e245d6 fix: Update gridbot-mcp from SSH tunnel to VPN architecture
- Change error messages from "SSH tunnel" to "VPN"
- Update docstring to reference VPN and GRIDBOT_API_URL
- Default API URL now http://10.0.1.3:8000 (conductor on infra VM)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-15 16:32:48 +02:00
Christian Gick
d231fcce67 feat(Session 241): Add scale-out MCP tools
Position Exit Management System support:
- scale_out_status: Service status and statistics
- scale_out_pending: Positions awaiting scale-out
- scale_out_stats: Execution statistics
- scale_out_set_dry_run: Toggle dry-run mode

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-15 14:16:08 +02:00
Christian Gick
8faf5ecca6 feat: Add is_tsl_enabled to create_order MCP tool
Enable trailing stop loss via native eToro feature when creating orders.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-15 14:05:15 +02:00
Christian Gick
c749c42bc4 Initial commit: gridbot-mcp server
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-13 19:17:44 +02:00