بدون توضیح

Lukas Goldschmidt 1e4324f2e8 Extend strategy supervision contract 3 هفته پیش
src 1e4324f2e8 Extend strategy supervision contract 3 هفته پیش
strategies 1e4324f2e8 Extend strategy supervision contract 3 هفته پیش
tests 67f19d8341 Prepare Hermes-compatible strategy contract 3 هفته پیش
.env 22e90fa945 mcp clients fix, config to .env 1 ماه پیش
.env.example eb694cf545 gitignore 1 ماه پیش
.gitignore dee55c5c57 Ignore runtime data directory 1 ماه پیش
CHANGELOG.md 1e9af8811a Document v0.5.0 trader milestone 1 ماه پیش
Grid_Bot_Architecture.md 92679277ad Document strategy persistence and grid architecture 1 ماه پیش
Hermes_Compatibility_Plan.md 67f19d8341 Prepare Hermes-compatible strategy contract 3 هفته پیش
Hermes_Trader_Contract_v0.1.md 67f19d8341 Prepare Hermes-compatible strategy contract 3 هفته پیش
MCP_SURFACE_PROPOSAL.md 67f19d8341 Prepare Hermes-compatible strategy contract 3 هفته پیش
PROJECT.md 67f19d8341 Prepare Hermes-compatible strategy contract 3 هفته پیش
README.md 67f19d8341 Prepare Hermes-compatible strategy contract 3 هفته پیش
Strategy_Contract.md 67f19d8341 Prepare Hermes-compatible strategy contract 3 هفته پیش
Strategy_Runtime.md 67f19d8341 Prepare Hermes-compatible strategy contract 3 هفته پیش
Strategy_concepts_0.md 92679277ad Document strategy persistence and grid architecture 1 ماه پیش
Strategy_concepts_1.md 92679277ad Document strategy persistence and grid architecture 1 ماه پیش
Strategy_concepts_2.md c7dda72849 strategies table looking great 1 ماه پیش
Strategy_concepts_examples.md 92679277ad Document strategy persistence and grid architecture 1 ماه پیش
TODO.md 67f19d8341 Prepare Hermes-compatible strategy contract 3 هفته پیش
grid_bot_concept.md 92679277ad Document strategy persistence and grid architecture 1 ماه پیش
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
  • 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
  • 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.
  • report().fit is the main Hermes-facing strategy fit block.
  • policy is applied again on reconcile.

Development

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