# dMoERA Creator

> Build, backtest, and deploy crypto trading strategies via MCP with 7-stage validation.

- name: io.github.CacheCarti/dmoera-creator
- version: 1.0.0
- connection class: R0 (autonomous)
- trust: 91/100
- quality: 73/100 (needs work)
- owner: not claimed
- descriptor: https://api.protogrid.dev/v1/servers/io.github.CacheCarti%2Fdmoera-creator
- tools: https://api.protogrid.dev/v1/servers/io.github.CacheCarti%2Fdmoera-creator/tools

**An agent can connect right now, no human step.** Remote endpoint, no authentication, reachable on the last probe.

## Connection (mcpServers)

```json
{
  "mcpServers": {
    "dmoera-creator": {
      "type": "http",
      "url": "https://dmoera.xyz/mcp"
    }
  }
}
```


## Trust

- hygiene: 100
- liveness: 100
- freshness: 85
- provenance: 80
- drivers: +repository +namespace-matches-repo +reachable +uptime-100% ~updated-55d-ago
- Derived from observable signals (official registry feed and our own credential-free probes); no code audit performed.

## Quality 73/100 (needs work)

### protocol: 75 (weight 25)

- warn `protocol.modern`: newest supported version is 2025-11-25; 2026-07-28 not supported, older versions are deprecated until 2027-07-28
- n/a `protocol.stateless`: only applies to 2026-07-28 servers
- pass `protocol.transport`: streamable HTTP
- n/a `protocol.list_ttl`: only applies to 2026-07-28 servers

### authorization: n/a (weight 15)

- n/a `auth.prm`, `auth.as_metadata`, `auth.cimd`: no remote uses OAuth
- n/a `auth.secret_in_url`: no templated URL

### tool hygiene: 57 (weight 30)

- pass `tools.descriptions`: every tool has a description
- warn `tools.description_length`: 1 tools have descriptions over 1,024 characters, which crowds the context
- pass `tools.schemas`: every tool has an object input schema
- fail `tools.annotations`: no tool declares readOnlyHint or destructiveHint, so clients cannot tell safe calls from risky ones
- fail `tools.directory_hints`: no tool declares all four of readOnlyHint, destructiveHint, idempotentHint and openWorldHint; missing: update_fund_caps (readOnlyHint, destructiveHint, idempotentHint, openWorldHint); list_open_source_bots (readOnlyHint, destructiveHint, idempotentHint, openWorldHint); get_fund_positions (readOnlyHint, destructiveHint, idempotentHint, openWorldHint); …
- pass `tools.token_cost`: about 5,740 tokens to load every tool
- warn `tools.api_dump`: 44 tools, 64% named like REST operations: looks like an API mapped one endpoint per tool

### stability: 100 (weight 15)

- pass `stability.changes`: no tool changes in 30 days
- pass `stability.rug_pull`: no tool changed its meaning under the same name

### dependencies: n/a (weight 15)

- n/a `deps.known_vulns`, `deps.mcp_sdk_version`, `deps.resolvable`: no npm or PyPI package

- tools: 44, about 5,740 tokens to load them all
- tool set hash: e060b57d7f8c868f63b0226ca1491c89
- badge: [![protogrid quality](https://protogrid.dev/badge/io.github.CacheCarti/dmoera-creator.svg)](https://protogrid.dev/servers/io.github.CacheCarti/dmoera-creator)
- Checks run on what our credential-free, read-only probes observe; tools are never called and no code audit is performed.

### Tool changes

_No tool definition changes recorded._

## Remotes

- https://dmoera.xyz/mcp (streamable-http, auth none, reachable true, uptime30d 1)

## Packages

_none_

## Tools (44)

- `activate_fund`: Activate Manager Mode for a fund — starts the personal router.

    This deploys capital across the fund's roster bots according to their
    weights and the fund's risk caps. The main platform router is paused
    while Manager Mode is active.

    Args:
        fund_id: The fund's ID.

    Returns success or error.
    
- `add_bot_to_fund`: Add a bot to a fund's roster.

    Personal funds can only contain the authenticated user's OWN bots.
    Use list_my_bots to see eligible strategies.

    Args:
        fund_id: The fund's ID.
        bot_id: The bot to add (e.g. "momentum_eth_v3").
        bot_domain: The bot's domain (e.g. "eth_usdc", "btc_usdc").
        weight: Initial allocation weight in percent (default 20.0).

    Returns the updated roster entry.
    
- `close_fund`: Permanently close a hedge fund. Returns all capital to the wallet.

    This is irreversible. The fund's performance record is preserved for
    reporting and copy-trader settlement.

    Args:
        fund_id: The fund's ID.

    Returns success or error.
    
- `create_fund`: Create a new personal hedge fund for the authenticated user.

    The fund starts inactive — call activate_fund to start Manager Mode.
    Initial capital is taken from the user's wallet_cash at creation time.
    Personal funds can ONLY contain the user's own bots — use list_my_bots
    to see eligible strategies.

    Args:
        fund_name: Display name for the fund.
        router_preset: Risk profile — one of "prudent", "standard",
                      "opportunistic", "unrestricted".
        aggression_mode: "normal" or "yolo".
        philosophy: Optional text describing the fund's investment thesis
                   (max 2000 chars).

    Returns the created fund object.
    
- `deactivate_fund`: Deactivate Manager Mode — returns to the main platform router.

    Closes all roster bot positions and returns capital to the wallet.

    Args:
        fund_id: The fund's ID.

    Returns success or error.
    
- `estimate_swap_cost`: Estimate the friction cost (in bps) of swapping a bot in a fund.

    Use this before calling swap_bot_in_fund to understand the cost of
    winding down the old bot's positions and opening new ones.

    Args:
        fund_id: The fund's ID.
        old_bot_id: The bot being considered for removal.
        new_bot_id: The replacement bot.
        new_bot_domain: The replacement bot's domain.

    Returns the estimated friction in bps of fund AUM.
    
- `generate_fund_report_card`: Generate a new report card for a fund (immutable once saved).

    Args:
        fund_id: The fund's ID.

    Returns the generated report card with grades and analysis.
    
- `get_active_fund`: Get the authenticated user's currently active (Manager Mode) fund.

    Returns the active fund object or null if Manager Mode is not active.
    
- `get_bot_profile`: Get detailed profile and performance stats for a specific bot.

    Args:
        bot_id: The bot identifier (e.g. "Eth_Full_Ensemble").

    Returns JSON with: bot_id, domain, strategy type, full performance
    metrics (Sharpe, Sortino, Calmar, profit factor, regime breakdown),
    current position if any, and recent trade history.
    
- `get_current_prices`: Get current live prices for all tracked symbols.

    Returns JSON with symbol → {price, bid, ask, source, change_24h_pct,
    volume_24h} for ETHUSDT, BTCUSDT, SOLUSDT from Binance/Coinbase/Kraken.
    
- `get_feature_catalog`: List all data feeds available to strategies via ctx.features.

    Features are external data that strategies can read during on_bar().
    Each feature has a status: "live" (available now, requirable) or
    "planned" (roadmap, not yet available). Only live features can be
    used in required_features.

    Returns JSON array of features with: key, label, description, unit,
    example, cadence, source, status, and backtest_mode.
    
- `get_fund`: Get detailed info for a specific hedge fund, including its roster.

    Args:
        fund_id: The fund's ID.

    Returns a JSON object with fund details and active roster entries
    (bot_id, bot_name, weight, domain, current_pnl).
    
- `get_fund_analytics`: Get real-time analytics for a fund dashboard.

    Args:
        fund_id: The fund's ID.

    Returns fund analytics: allocation breakdown, per-bot performance,
    risk metrics, and benchmark comparison.
    
- `get_fund_live_pnl`: Build a real-time PnL chart from closed positions for a fund's roster.

    Args:
        fund_id: The fund's ID.

    Returns a JSON series of cumulative PnL points.
    
- `get_fund_performance`: Get performance snapshots for a fund's P&L graph.

    Args:
        fund_id: The fund's ID.
        limit: Max snapshots to return (default 100).

    Returns a JSON time-series of AUM/PnL snapshots.
    
- `get_fund_positions`: Get open positions for a fund's roster bots.

    Args:
        fund_id: The fund's ID.

    Returns a JSON array of open positions with entry/exit prices and PnL.
    
- `get_fund_report_card`: Get the latest report card for a fund.

    Args:
        fund_id: The fund's ID.

    Returns the latest immutable report card, or null if none exists.
    
- `get_fund_trades`: Get closed trade history for a fund's roster bots.

    Args:
        fund_id: The fund's ID.
        limit: Max trades to return (default 50).
        offset: Pagination offset.

    Returns a JSON array of closed trades.
    
- `get_marketplace_bots`: List bots published to the marketplace.

    Args:
        domain: Filter by domain (e.g. "eth_usdc"). Omit for all domains.
        sort: Sort order — "rating", "return", "subscribers", or "newest".
        limit: Max results (default 20, max 100).

    Returns JSON array of marketplace listings with: listing_id, bot_id,
    title, description, domain, creator, monthly_price_usd, cached stats
    (win_rate, return_bps, sharpe), subscriber_count, and avg_rating.
    
- `get_market_regime`: Get current market regime classification.

    Returns the aggregate regime (e.g. "bull_calm", "bear_volatile"),
    per-symbol regimes, crisis score, and the derivatives data driving
    the classification (funding rates, open interest, long/short ratios,
    taker buy/sell ratios).

    Regime determines which trade directions are allowed:
    - bull_* → longs only
    - bear_* → shorts only
    - neutral_* → both longs and shorts
    - crisis/meltdown → no new positions
    
- `get_strategy_report`: Get a detailed report card for a strategy.

    Includes validation run results for all 7 stages, performance metrics,
    and the integrity block (code hash, AST hash, parameter fingerprint).

    Args:
        strategy_id: The strategy's database ID.

    Returns JSON with: strategy details, latest validation runs, metrics.
    
- `get_tournament_status`: Get current tournament round status and leaderboard.

    Tournaments run every 3 days. Top 3 bots per domain win prizes
    from the reward pool. Scoring is weighted: 50% risk-adjusted return,
    30% total PnL, 20% consistency.

    Returns JSON with: current round info (round_id, start/end time,
    reward_pool_usd, total_participants), and leaderboard entries.
    
- `get_vault_history`: Get the Vault's regime switch history for the timeline.

    Returns a JSON array of past regime transitions with timestamps.
    
- `get_vault_status`: Get the authenticated user's Vault state.

    The Vault is a regime-aware allocator: in strong markets most capital
    holds BTC/ETH/SOL; when the market weakens it rotates into savings and
    funding arbitrage. Returns current regime, allocation weights, and
    sleeve holdings.
    
- `list_bots`: List trading bots ranked by performance.

    Args:
        domain: Filter by domain key (e.g. "eth_usdc", "btc_usdc", "sol_usdc").
               If omitted, returns top bots across all domains.
        limit: Maximum number of bots to return (default 20, max 100).

    Returns JSON array of bots with: bot_id, domain, strategy_name, sharpe,
    win_rate, total_trades, return_bps, and validation_score.
    
- `list_domains`: List all available trading domains on dMoERA.

    Domains define what asset pair a strategy trades, what time horizon
    it uses (scalp=5m, swing=1h, crisis=2m), and what data is available.
    Strategies must declare which domain they belong to.

    Returns a JSON array of domain objects with: key, name, type,
    base_asset, quote_asset, grading_seconds, and feed_symbols.
    
- `list_funds`: List all hedge funds for the authenticated user (active + closed).

    Returns a JSON array of fund objects with: id, fund_name, is_active,
    inception_date, initial_capital, current_aum, router_preset,
    aggression_mode, total_pnl_usd, total_pnl_bps, and roster summary.
    
- `list_my_bots`: List the authenticated user's OWN bots eligible for a personal fund roster.

    Personal funds can NEVER contain another user's bots — this returns only
    the caller's own personal + incubating + live bots with live engine stats
    and gamified card ratings.

    Args:
        domain: Filter by domain (e.g. "eth_usdc").

    Returns a JSON array of the user's bots.
    
- `list_open_source_bots`: Browse open-source bots with normalized stats and capacity info.

    NOTE: personal funds can only contain the authenticated user's OWN
    bots — use list_my_bots for roster-eligible strategies. This tool is
    for researching the broader bot ecosystem.

    Args:
        domain: Filter by domain (e.g. "eth_usdc").

    Returns a JSON array of bot entries with gamified card ratings.
    
- `list_strategies`: List all strategies created by a user.

    Args:
        user_id: The creator's user ID.

    Returns JSON array of strategies with: id, bot_id, name, domain,
    status, declared_sl_bps, declared_tp_bps, and created_at.
    
- `remove_bot_from_fund`: Remove a bot from a fund's roster (triggers wind-down of its positions).

    Args:
        fund_id: The fund's ID.
        bot_id: The bot to remove.
        reason: Optional reason for removal.

    Returns success or error.
    
- `run_fund_historical_test`: Simulate how a roster of bots would have performed historically.

    Queries each bot's closed positions over the available historical
    period and combines them (weighted) into a single PnL time-series
    with diagnosis. Rate limited: 1 request per 30 seconds per user.

    Args:
        roster: List of {"bot_id": str, "weight_pct": float} entries.
        initial_capital: Starting capital for the simulation (default 10000).

    Returns the simulated PnL time-series and diagnosis.
    
- `sandbox_backtest`: Run a sandbox backtest of strategy code without persisting anything.

    This is the fastest way to test a strategy. The code is run through
    static checks and a full backtest on historical data, but no Strategy
    or StrategyVersion rows are created. Use this for rapid iteration.

    Args:
        code: Python source code implementing the Strategy contract.
              Must define a METADATA dict and a class extending Strategy
              with an on_bar(ctx) -> Signal method. See CREATOR_API.md.
        domain: Trading domain (e.g. "eth_usdc", "btc_usdc", "sol_usdc").
        symbol: Price symbol for historical data (e.g. "ETHUSDT").
        user_id: Identifier for trial tracking (used for DSR correction).

    Returns JSON with: success, metrics (sharpe, sortino, win_rate,
    total_trades, return_bps, max_drawdown, regime_breakdown,
    exit_reason_breakdown), or error details if validation failed.
    
- `submit_strategy`: Submit a strategy for full validation and live deployment.

    Runs the complete 7-stage validation pipeline:
    1. static_check — code safety (banned imports, syntax)
    2. in_sample — sanity check on training data
    3. out_of_sample — test on unseen data (70/30 split)
    4. walk_forward — rolling window validation
    5. randomized_start — different random start points
    6. perturbation — market stress test
    7. holdout — server-side reserved data (pass/fail only)

    If all stages pass, the strategy is registered for isolated live
    paper trading with status="incubating". Promotion to "live" requires
    a proven track record.

    Args:
        name: Human-readable strategy name (e.g. "ETH Momentum v2").
        domain: Trading domain key (e.g. "eth_usdc").
        code: Python source code implementing the Strategy contract.
        user_id: The creator's user ID.
        symbol: Price symbol for historical data.

    Returns JSON with: success, strategy_id, bot_id, validation results
    per stage, or error details.
    
- `swap_bot_in_fund`: Swap one bot for another in a fund's roster.

    Closes the old bot's positions and opens new ones for the replacement.
    Incurs friction cost — use estimate_swap_cost first.

    Args:
        fund_id: The fund's ID.
        old_bot_id: The bot to remove.
        new_bot_id: The bot to add in its place.
        new_bot_domain: The new bot's domain (e.g. "eth_usdc").
        weight: Allocation weight for the new bot (defaults to old bot's weight).
        reason: Optional reason for the swap.

    Returns the updated roster entry and friction estimate.
    
- `tag_team_badges`: Get the authenticated user's Tag Team badges.

    Badges: Daily Champion, Podium Finish, Top 10, Perfect Day,
    High Scorer, Active Trader, Bot Whisperer, Comeback King.
    
- `tag_team_history`: Get the authenticated user's past Tag Team sessions with scores.
- `tag_team_info`: Get the authenticated user's Tag Team session info.

    Tag Team is a daily paper-trading competition: you get $10k paper
    capital split 70% human / 30% Co-Pilot bot. Make manual trades,
    deploy the Co-Pilot after 3 closed manual trades, and your combined
    PnL is scored on the daily leaderboard.

    Returns session state, open positions, bot status, and rank.
    
- `tag_team_leaderboard`: Get the daily Tag Team leaderboard.

    Args:
        date: Optional date filter (YYYY-MM-DD). Defaults to today.

    Scoring needs 5+ human trades AND 5+ bot trades to qualify.
    score = sharpe x trade_factor x (1 + win_bonus).
    
- `tag_team_templates`: List all available Co-Pilot templates (momentum, scalper, etc.).

    Each template defines the Co-Pilot bot's signal logic and tunable
    parameter ranges. Bot params carry over between days for the same
    template — trained settings persist.
    
- `tag_team_tier`: Get the authenticated user's Tag Team tier and stats.

    Tiers: Rookie (0) -> Apprentice (10) -> Trader (50) -> Veteran (150)
    -> Expert (500) -> Master (1000+), based on total trades across all
    sessions (persists across days).
    
- `tag_team_weekly`: Get weekly championship standings (best 5 daily scores per user).
- `update_fund_caps`: Update a fund's risk caps and settings.

    Args:
        fund_id: The fund's ID.
        max_per_bot_pct: Max allocation per single bot (e.g. 40.0 = 40%).
        max_per_domain_pct: Max allocation per domain (e.g. 60.0 = 60%).
        regime_veto_enabled: Whether the regime detector can veto trades.

    Only provided fields are updated; others remain unchanged.

    Returns success or error.
    
- `update_fund_weights`: Update allocation weights for bots in a fund's roster.

    Args:
        fund_id: The fund's ID.
        weights: A dict mapping bot_id to new weight percentage (e.g.
                {"momentum_eth_v3": 15.0, "scalper_btc_v2": 20.0}).

    Returns success or error.
    
