説明なし

Lukas Goldschmidt e11caa0f6e Add Hermes control contract and strategy supervision signals 3 週間 前
src e11caa0f6e Add Hermes control contract and strategy supervision signals 3 週間 前
strategies e11caa0f6e Add Hermes control contract and strategy supervision signals 3 週間 前
tests e11caa0f6e Add Hermes control contract and strategy supervision signals 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 e11caa0f6e Add Hermes control contract and strategy supervision signals 3 週間 前
Hermes_Trader_Action_Contract_v0.1.md e11caa0f6e Add Hermes control contract and strategy supervision signals 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 e11caa0f6e Add Hermes control contract and strategy supervision signals 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 e11caa0f6e Add Hermes control contract and strategy supervision signals 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
  • 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.