Nexural Automation is a public, local-first automation lab for strategy builders. It combines a Python research engine, MCP server, Strategy SDK, Bridge SDK, cost model, validation gauntlet, contributor examples, and education docs so people can build strategies, validate them, export reports, wire bridges, and learn the automation workflow end to end.
Not financial advice. This project is for research, education, simulation, and paper-first development. See DISCLAIMER.md.
Current public release: v0.1.0-public-mvp
Live docs: https://jasonteixeira.github.io/Nexural_Automation/
Release status:
- GitHub Pages is enabled with GitHub Actions deployment.
- Public release workflow is tagged and green.
- Repo secret scan is clean for tracked files.
- Local MCP/API keys are not stored in this repo; rotate any real keys that were ever pasted into local configs.
What is included:
- MCP automation server with 8 stable tools.
- Strategy SDK for Python, NinjaTrader, TradingView, and multi-symbol examples.
- Bridge SDK with health, paper signal, flatten, kill-switch, and fill reconciliation lifecycle.
- SageQuant-style gauntlet with reject, tune, rewrite, and promote-to-paper decisions.
- Futures cost model and cost stress docs.
- Golden MCP contract fixture and contract tests.
- Public examples that validate in CI.
- One-command local stack scripts.
- Secret scanning, schema validation, locked Python audit, npm audit, Docker build, Trivy, and cross-platform quality gates.
Windows:
git clone https://github.com/JasonTeixeira/Nexural_Automation.git
cd Nexural_Automation
.\scripts\start-local-stack.ps1macOS/Linux:
git clone https://github.com/JasonTeixeira/Nexural_Automation.git
cd Nexural_Automation
./scripts/start-local-stack.shLocal URLs:
- API:
http://127.0.0.1:8000 - MCP HTTP:
http://127.0.0.1:8765/mcp - UI:
http://127.0.0.1:3010
Windows:
git clone https://github.com/JasonTeixeira/Nexural_Automation.git
cd Nexural_Automation\platforms\python\research\nexural-research
install.batmacOS/Linux:
git clone https://github.com/JasonTeixeira/Nexural_Automation.git
cd Nexural_Automation/platforms/python/research/nexural-research
chmod +x install.sh && ./install.sh
./nexural-researchDocker:
cd platforms/python/research/nexural-research
docker compose up --buildOpen http://127.0.0.1:8000.
Requirements:
- Python 3.11
- Node.js 22 only if developing the frontend
- Docker only if using the container path
cd platforms\python\research\nexural-research
nexural-research gauntlet --input C:\Exports\nq_strategy.csv --symbol NQ --strategy-name "NQ Research"
nexural-research costs --symbol NQ --trades 250 --stress-profile elevated
nexural-research report --input C:\Exports\nq_strategy.csvnexural-research new-strategy "Opening Range Failure" --platform python
nexural-research validate-strategy ..\examples\strategies\opening_range_failure\metadata.yamlIncluded examples:
- Opening Range Failure
- NinjaTrader Opening Range Retest
- TradingView VWAP Reversion
- Multi-Symbol Regime Filter
nexural-research new-bridge "NinjaTrader CSV"
nexural-research validate-bridge ..\examples\bridges\ninjatrader_csv\bridge_contract.jsonBridge lifecycle requirements:
health()send_signal(signal)flatten(symbol, reason)kill_switch(reason)reconcile_fills(fills)
Example bridge: NinjaTrader CSV Bridge
Run stdio mode for desktop MCP clients:
cd platforms\python\research\nexural-research
py -3.11 -m pip install -e ".[mcp]"
nexural-mcpRun HTTP mode:
nexural-research mcp --transport streamable-http --host 127.0.0.1 --port 8765Smoke test:
nexural-research mcp-smokeStable MCP tools:
| Tool | Purpose |
|---|---|
list_capabilities |
Return supported workflows, imports, and guardrails |
analyze_strategy_csv |
Full strategy due diligence with metrics, DSR, Monte Carlo, walk-forward, grade, and decision gate |
compare_strategy_csvs |
Rank 2-10 strategy exports by composite institutional metrics |
generate_report |
Write a local HTML research report for an export |
run_strategy_gauntlet |
Run the 10-check promotion gate |
estimate_strategy_costs |
Estimate futures commission and slippage |
scaffold_strategy |
Create Python, NinjaTrader, or TradingView strategy starters |
scaffold_bridge |
Create bridge connector starters with required proof contracts |
See MCP Contract, MCP/API Examples, and Backward Compatibility.
Start here:
- Docs Home
- Automation Academy
- Build Your First Strategy
- Build Your First Bridge
- Why Strategies Fail The Gauntlet
- Automation Glossary
- Example Catalog
- Install Matrix
- Security Hardening
- Secret Rotation
- Strategy Lab Wiring
- Public Launch Checklist
Open docs/index.html locally or use the live GitHub Pages site.
Local release checks:
python scripts\repo-tools\secret_scan.py
python scripts\repo-tools\validate_contract_schemas.py
cd platforms\python\research\nexural-research
py -3.11 -m nexural_research.cli quality-gate --threshold 0.95 --json --fast
py -3.11 -m pytest tests --ignore=tests/e2e -q
py -3.11 -m pip_audit -r requirements\py311-ci-lock.txt
cd frontend
npm audit --audit-level=moderate
npm run buildCI gates:
- Python 3.11 release gate.
- Cross-platform public MVP quality gate on Windows, macOS, and Linux.
- MCP smoke.
- Strategy and bridge schema validation.
- Secret scanning.
- Locked Python dependency audit.
- Frontend typecheck, build, and npm audit.
- Docker build and Trivy scan for fixable high/critical findings.
- Module catalog freshness.
- Docs metadata validation.
- GitHub Pages deployment when Pages is enabled.
- API and MCP HTTP bind to
127.0.0.1by default. - Docker compose binds public services to localhost.
.mcp.json,.env, local databases, raw exports, and reports are ignored.- Query-string API keys are not accepted.
- Use
NEXURAL_ALLOWED_DATA_DIRSto restrict agent-readable CSV/report paths. - Rotate any local provider keys that were ever pasted into local configs before public launch.
See Security Hardening and Secret Rotation.
Nexural_Automation/
├── platforms/
│ ├── ninjatrader/ # NinjaScript strategies and indicators
│ ├── tradingview/ # Pine Script modules
│ └── python/research/
│ ├── examples/ # Public strategy and bridge examples
│ └── nexural-research/ # Python engine, API, MCP server, dashboard
├── templates/ # Strategy and indicator templates
├── docs/ # Education, contracts, architecture, launch docs
├── schemas/ # Strategy and bridge JSON schemas
├── scripts/ # Setup, local stack, validation, security tooling
└── .github/workflows/ # CI, docs, catalog, and release workflows
- Read CONTRIBUTING.md.
- Use the templates or SDK scaffolds.
- Document parameters, assumptions, failure modes, and no-lookahead policy.
- Run validation before opening a PR.
- Keep examples paper-first and free of performance claims.
See ROADMAP.md.
Apache-2.0. See LICENSE.
