MTContext Docs

Changelog

What changed in each MT-MCP release.

All notable changes to MTContext are documented here, grouped by release date. Format loosely follows Keep a Changelog.

2026-08-22

@mt-mcp/mcp — v1.2.0

Minor Changes

  • Twenty new tools and several enhancements to existing ones, mostly server-side (no EA round-trip):

    • Market Characterget_volatility_regime (compressed/expanding/trending/choppy from ATR ratio, Bollinger bandwidth, efficiency ratio), get_market_structure (up to 4 timeframes at once: HH/HL/LH/LL swing sequence, per-timeframe trend, BOS/CHoCH break events, cross-timeframe alignment), get_state_delta (returns only what changed for a symbol since the caller's last call — new bar, RSI/EMA cross, ATR regime shift, key-level break), and get_symbol_session_profile (typical session range, drift, reversal timing, event sensitivity).
    • Market Structure (SMC/ICT)detect_structure: fair value gaps, order blocks, liquidity sweeps, break of structure, change of character, as deterministic bar-derived locations (not trade signals).
    • Order Flowget_order_flow: per-bar footprint (buy/sell volume, delta, POC, imbalances) estimated from tick history.
    • Session Analyticsget_session_stats: historical London/NY/Asia session range, drift, and breakout-continuation-vs-reversal rates.
    • Session Trading Modeset_mode / get_mode: per-session paper/live switch. paper forces every trading tool's dry_run to true for the rest of the session; live (the default) changes nothing and is not a trading confirmation.
    • Trade Journalexplain_setup (win rate, expectancy, and streak stats for a named setup) and score_journal_entry (self-review quality score for a journal entry; optional LLM-assisted scoring is off by default).
    • Computed Analyticsget_equity_curve (realized-equity time series from closed trades), get_swap_calendar (projected rollover costs), estimate_fill (spread + this license's own audited slippage for a hypothetical order).
    • Macro Riskrecommend_strategy_style (trend-follow/mean-revert/breakout/stand-aside from regime + volatility) and get_event_sensitivity (historical price move per calendar event type for a symbol).
    • Risk Managementget_correlation_matrix (N×N correlation across 2-12 symbols) and check_portfolio_exposure (aggregate currency/cluster exposure with a proceed/caution/block verdict).
    • Indicatorcheck_confluence: evaluates up to 8 indicator conditions across timeframes into one pass/fail verdict.
    • AI Coachingsimulate_ea_action (what a mechanical EA template would do right now) and an upgrade to backtest_strategy: strategies now evaluate against real server-computed indicator series instead of a fixed stub context, plus a JSON condition-tree DSL. Legacy flat-key strategies still work but their reported results change now that they run against real data.
    • get_economic_calendar now tags every event with a category; get_news gained optional symbol/currency relevance filtering.

Patch Changes

  • Updated dependencies
    • @mt-mcp/shared@1.1.0

@mt-mcp/gateway — v1.2.1

Patch Changes

  • Updated dependencies
    • @mt-mcp/shared@1.1.0
    • @mt-mcp/broker@1.0.1
    • @mt-mcp/license@1.2.1

@mt-mcp/license — v1.2.1

Patch Changes

  • Updated dependencies
    • @mt-mcp/shared@1.1.0

@mt-mcp/shared — v1.1.0

Minor Changes

  • Twenty new tools and several enhancements to existing ones, mostly server-side (no EA round-trip):

    • Market Characterget_volatility_regime (compressed/expanding/trending/choppy from ATR ratio, Bollinger bandwidth, efficiency ratio), get_market_structure (up to 4 timeframes at once: HH/HL/LH/LL swing sequence, per-timeframe trend, BOS/CHoCH break events, cross-timeframe alignment), get_state_delta (returns only what changed for a symbol since the caller's last call — new bar, RSI/EMA cross, ATR regime shift, key-level break), and get_symbol_session_profile (typical session range, drift, reversal timing, event sensitivity).
    • Market Structure (SMC/ICT)detect_structure: fair value gaps, order blocks, liquidity sweeps, break of structure, change of character, as deterministic bar-derived locations (not trade signals).
    • Order Flowget_order_flow: per-bar footprint (buy/sell volume, delta, POC, imbalances) estimated from tick history.
    • Session Analyticsget_session_stats: historical London/NY/Asia session range, drift, and breakout-continuation-vs-reversal rates.
    • Session Trading Modeset_mode / get_mode: per-session paper/live switch. paper forces every trading tool's dry_run to true for the rest of the session; live (the default) changes nothing and is not a trading confirmation.
    • Trade Journalexplain_setup (win rate, expectancy, and streak stats for a named setup) and score_journal_entry (self-review quality score for a journal entry; optional LLM-assisted scoring is off by default).
    • Computed Analyticsget_equity_curve (realized-equity time series from closed trades), get_swap_calendar (projected rollover costs), estimate_fill (spread + this license's own audited slippage for a hypothetical order).
    • Macro Riskrecommend_strategy_style (trend-follow/mean-revert/breakout/stand-aside from regime + volatility) and get_event_sensitivity (historical price move per calendar event type for a symbol).
    • Risk Managementget_correlation_matrix (N×N correlation across 2-12 symbols) and check_portfolio_exposure (aggregate currency/cluster exposure with a proceed/caution/block verdict).
    • Indicatorcheck_confluence: evaluates up to 8 indicator conditions across timeframes into one pass/fail verdict.
    • AI Coachingsimulate_ea_action (what a mechanical EA template would do right now) and an upgrade to backtest_strategy: strategies now evaluate against real server-computed indicator series instead of a fixed stub context, plus a JSON condition-tree DSL. Legacy flat-key strategies still work but their reported results change now that they run against real data.
    • get_economic_calendar now tags every event with a category; get_news gained optional symbol/currency relevance filtering.

@mt-mcp/api — v1.0.1

Patch Changes

  • Updated dependencies
    • @mt-mcp/shared@1.1.0
    • @mt-mcp/license@1.2.1

@mt-mcp/dashboard — v1.1.1

Patch Changes

  • Updated dependencies
    • @mt-mcp/shared@1.1.0

2026-08-17

@mt-mcp/api — v1.0.0

First release of a standalone REST API server (Hono, OpenAPI 3.1) that exposes the same account, market, trading, risk, and macro capabilities as the MCP tool surface over plain HTTP, for integrations that don't speak MCP:

  • Authentication — license-scoped API keys (mtmcp_api_ prefix, max 5 active per license, SHA-256 hashed) are exchanged for a short-lived JWT on first use and cached per-pod for 60s; a pre-exchanged JWT also works directly. Terminal targeting is via an X-Terminal-Id header rather than a session binding.
  • Coverage — market data, account/positions/orders/history, indicators, key levels & patterns, coaching (fibonacci, trade explain, backtest), analytics (stats, P&L, execution quality), risk (lot sizing, portfolio summary, correlation), macro/sentiment/news/risk-regime, and management config (alerts, equity guard, prop-firm rules, journal, news guard) — all gated by the same read / analytics / trade capability tiers as the MCP tools.
  • Trading safety — every trade-affecting endpoint (/api/v1/orders, /api/v1/positions/*) defaults dry_run to true; live execution requires an explicit "dry_run": false.
  • Rate limiting — Redis-backed, tier-scaled (Free 10 / Pro 60 / Team 300 / Enterprise 1000 req/min per license) on its own bucket, separate from MCP dispatch traffic; the server refuses to start in production without REDIS_URL configured rather than silently serving unlimited traffic.
  • Docs — interactive Scalar API reference at /api/v1/docs, OpenAPI 3.1 spec at /api/v1/openapi.json.
  • 57 unit tests covering routes, middleware, auth, and the gateway client; wired into CI.

@mt-mcp/dashboard — v1.1.0

  • Added an API Keys management page (Dashboard → API Keys) to create, label, and revoke REST API keys.

@mt-mcp/gateway — v1.2.0

  • Added GET/POST/DELETE /api/dashboard/api-keys so the dashboard can list, create, and revoke a license's REST API keys.

@mt-mcp/license — v1.2.0

  • Added the api_keys table and an ApiKeyRepository (SHA-256 hashed keys, license-scoped, JSONB permissions reserved for future scoped-key support) backing API key issuance, lookup, and revocation.

@mt-mcp/docs — v1.1.0

  • Added a REST API section (/docs/api) covering authentication, rate limits, response format, and a full endpoint reference table grouped by capability tier — ported from the engineering getting-started guide and cross-linked from the Introduction, Overview, and Architecture pages.

2026-07-21

@mt-mcp/mcp — v1.1.0

Five new macro & risk tool groups, all EA-independent (they work with no terminal connected):

  • Event & calendar riskget_event_risk gives a pre-trade blackout verdict (proceed | caution | block, with resume_after) for a symbol's currencies, and get_holding_risk flags event landings, weekend/holiday gap exposure, and triple-swap days across a hold window. get_economic_calendar now falls back to a server-side calendar on MT4 or when the terminal is disconnected, and every response carries a source: "terminal" | "server" field.
  • Macro contextget_risk_regime (composite risk-on/risk-off score with drivers and sizing advice), get_economic_surprise (rolling actual-vs-forecast index per currency), get_cb_stance (hawk/dove score per central bank), and get_market_context (live DXY / VIX / US10Y levels with a transparent risk_tone tag; missing inputs are listed, never zeroed).
  • Rate expectationsget_rate_expectations returns each G10 central bank's next meeting and countdown, current policy rate, and last decision, plus market-implied hike/hold/cut probabilities for USD when a Fed Funds futures source is configured. Every entry is tagged data_quality: "implied" | "calendar_only" and never fabricates probabilities.
  • News guardset_news_guard / get_news_guard_status / remove_news_guard: a server-side monitor that polls news, classifies severity and affected currencies, and delivers alerts through the existing poll_alerts path. Notify-only in this release.
  • Prop-firm rule trackerset_prop_firm_rules / get_prop_firm_status / remove_prop_firm_rules: tracks daily-loss, static/trailing drawdown, profit target, minimum trading days, and consistency rules, and returns a decision-ready verdict (ok | warning | critical | breached), per-rule headroom, and a max_safe_risk_percent for the next trade. Ships FTMO and generic presets; advisory by default, with an optional link_equity_guard to install matching enforcement.
  • get_etf_flows (gold ETF creations/redemptions for GLD/IAU) is included but disabled by default behind MTMCP_ETF_FLOWS_ENABLED, pending issuer-feed licensing review.
  • Fixed COT report parsing for the CFTC TFF dataset (leveraged-money and asset-manager columns use no _all suffix).

@mt-mcp/gateway — v1.1.0

  • Added PUT/GET/DELETE /api/prop-firm-rules backed by a PropFirmEvaluator sampling loop that maintains trailing watermarks, daily snapshots, and days-traded counts (reusing the equity-guard reset-timezone machinery). Requires the trade capability; unreachable terminals fail safe to block.
  • Added PUT/GET/DELETE /api/news-guard and GET /api/cb-stance, backed by a NewsGuardMonitor poll loop (atomic Redis URL-dedup) and a CbStanceRefresher background job. Both require the analytics capability. News fetching is gated on NEWS_API_KEY and degrades to a safe no-op when unset.

@mt-mcp/license — v1.1.0

  • Added tables and stores for the new tools: prop_firm_rulesets and prop_firm_day_snapshots, news_guard_configs, cb_stance_snapshots, calendar_events, regime_history, and etf_flow_history (migrations 0011–0013).

2026-07-15

@mt-mcp/mcp — v1.0.0

  • Extracted client origin details (clientName and ipAddress) during connection and attached them to MCP tool execution payloads for audit tracking.

@mt-mcp/gateway — v1.0.0

  • Added GET /api/dashboard/support/identity for secure Chatwoot user identity verification via HMAC-SHA256.
  • Updated the MCP execution payload processor to correctly ingest client origin metadata into the audit log.

@mt-mcp/license — v1.0.0

  • Updated database schema and AuditLogService to track and fetch client_name and ip_address for all tool executions.

@mt-mcp/shared — v1.0.0

  • Internal dependency updates for v1.0.0 release.

@mt-mcp/dashboard — v1.0.0

  • Added Chatwoot live support widget with identity verification and custom context attributes.
  • Added new "Origin" and "Params" columns to the Audit Log, displaying client badges, IP addresses, and expandable JSON payloads.
  • Added graceful error handling for missing third-party credentials in sentiment and support widgets.

@mt-mcp/docs — v1.0.0

  • Updated branding to MTContext and finalized guides for v1.0.0 release.

2026-07-10

@mt-mcp/mcp

  • Added reverse_position — close and reopen a position in a single call instead of two round trips.
  • Modularized risk helpers and added preflight validation to order dispatch, failing closed on invalid requests.
  • Fixed the order-comment sanitizer rejecting literal dot characters.
  • JWT key files are now excluded from version control to prevent accidental commits.

@mt-mcp/dashboard

  • Added Myfxbook sentiment API integration.
  • Reworked the dashboard design system — new widgets, layouts, and API integrations, with consistent widget container heights.

2026-07-08

@mt-mcp/mcp

  • Improved JWT handling in the authenticated dispatch path to recover from terminal-ID mismatches without dropping the session.

2026-07-06

@mt-mcp/mcp

  • Added indicator handlers for Parabolic SAR, Stochastic, Standard Deviation, and Williams %R.
  • Removed obsolete verification scripts for HTTP transport resilience and Redis session routing (superseded by the integration test suite).

2026-07-01

@mt-mcp/gateway

  • Implemented multi-replica session routing with proxy logic, so a request can reach the right MCP instance regardless of which replica receives it.
  • Replaced the deprecated cross-instance Redis test with gateway-proxy and mcp-proxy tests covering session dispatch across replicas.

2026-06-28 – 2026-06-30

@mt-mcp/gateway

  • Added a Redis-backed session store to support multi-replica MCP server deployments.
  • Added compare-and-delete logic for the terminal → session pointer in Redis, closing a race on reconnect.
  • Added HTTP terminal session management and cross-instance dispatching via Redis.
  • Added an instance registry and request proxying for multi-replica MCP sessions.
  • Enhanced HTTP transport resilience with a dedicated heartbeat channel.

Infra

  • Adjusted replica counts and HPA configuration to right-size resource usage.
  • Updated network policies to allow egress to Redis and labeled deployments for Redis client discovery.

@mt-mcp/license

  • Implemented terminal-scoped key validation and updated the license service to support the new key structure — the change that made master license keys stop working for MCP/EA authentication (see the terminal key setup guide).

On this page