Нема описа

Lukas Goldschmidt 6d86a78f5a grid trader fix пре 1 недеља
src 7fa2fb63df cancel all orders hanging fix пре 2 недеља
strategies 6d86a78f5a grid trader fix пре 1 недеља
tests 7fa2fb63df cancel all orders hanging fix пре 2 недеља
.env 22e90fa945 mcp clients fix, config to .env пре 1 месец
.env.example eb694cf545 gitignore пре 1 месец
.gitignore 0296f9148d obsolete docs cleanup пре 2 недеља
AGENTS.md 6d86a78f5a grid trader fix пре 1 недеља
CHANGELOG.md 94deffb3a8 refactored suggest amount by codex пре 2 недеља
PROJECT.md 0fb5022314 Add strategy exposure reporting пре 3 недеља
README.md e11caa0f6e Add Hermes control contract and strategy supervision signals пре 3 недеља
killserver.sh 7dbaa98994 initial commit - server scaffold пре 1 месец
requirements.txt 7dbaa98994 initial commit - server scaffold пре 1 месец
restart.sh 7dbaa98994 initial commit - server scaffold пре 1 месец
run.sh c7dda72849 strategies table looking great пре 1 месец
test_servers.sh c7dda72849 strategies table looking great пре 1 месец
tests.sh c7dda72849 strategies table looking great пре 1 месец

README.md

Trader MCP

Trader MCP runs strategies, persists their state, and exposes a compact MCP surface for operator and Hermes control.

Current shape

  • strategies are bound to an account and market
  • strategy snapshots expose report() for Hermes
  • Hermes policy is stored separately and mapped into strategy-specific parameters
  • market regime is read from crypto-mcp, not Trader-owned data

What works now

  • strategy lifecycle control (start, pause, resume, stop, reconcile)
  • strategy snapshots with report() and fit
  • Hermes policy storage via set_strategy_policy
  • Hermes action dispatch via apply_control_decision(payload)
  • grid trading
  • exposure protection
  • trend following
  • dashboard inspection and inline config editing

Public MCP tools

  • list_strategies
  • get_strategy
  • update_strategy
  • control_strategy
  • set_strategy_policy
  • apply_control_decision
  • get_capabilities

get_strategy() defaults

By default, get_strategy() returns compact identity/control data plus report. Optional flags:

  • include_config
  • include_state
  • include_render
  • include_debug
  • include_report (defaults to true)

Quick start

source .venv/bin/activate
pip install -r requirements.txt
./run.sh

Default port: 8570

Endpoints

  • GET / landing page
  • GET /health health check
  • GET /mcp/sse MCP SSE transport endpoint
  • GET /dashboard/ dashboard

Notes

  • control_strategy() handles lifecycle verbs.
  • set_strategy_policy() stores Hermes intent as risk_posture and priority.
  • apply_control_decision() is the canonical Hermes write tool for switch, pause, resume, and set_risk_mode.
  • report().fit is the main Hermes-facing strategy fit block.
  • report().supervision carries the strategy self-report used by Hermes for switching safety and ranking.
  • policy is applied again on reconcile.

Development

See run.sh, tests.sh, killserver.sh, and restart.sh.