
oransel/ninjatrader-ninjascript-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
A comprehensive, LLM-ready knowledge base of the NinjaTrader Desktop SDK documentation for building indicators and strategies with AI coding assistants.
概要
A comprehensive, LLM-ready knowledge base of the NinjaTrader Desktop SDK documentation for building indicators and strategies with AI coding assistants. Use the MCP server for dynamic, on-demand access to the documentation: The MCP server provides tools to search docs, get specific pages, and follow recommended workflows. Copy CLAUDE.md to your project root, or add this to your existing CLAUDE.md: Add the knowledge base path to your AGENTS.md file: Or use the instructions field in your opencode.json: Point your AI assistant to this directory. The index.json file contains a machine-readable index of all pages. - docs/indicator.md - Base class overview - docs/onstatechange.md - Lifecycle management - docs/onbarupdate.md - Calculation logic - docs/addplot.md - Adding visual plots - best-practices/index.md - Coding standards
README
以下は原文 README の抜粋です。原文を見る。
NinjaTrader NinjaScript Knowledge Base
A comprehensive, LLM-ready knowledge base of the NinjaTrader Desktop SDK documentation for building indicators and strategies with AI coding assistants.
What’s Included
| Folder | Contents | Files |
|---|---|---|
docs/ |
Complete API reference | 1168 |
education/ |
Learning resources & tutorials | 1 |
best-practices/ |
NinjaScript coding guidelines | 1 |
Total: 1170 documentation pages
Quick Start
Option 1: MCP Server (Recommended)
Use the MCP server for dynamic, on-demand access to the documentation:
{
"mcpServers": {
"ninjatrader": {
"command": "npx",
"args": ["-y", "ninjatrader-ninjascript-mcp"]
}
}
}
Add this to your MCP config file:
| Tool | Platform | Config Path |
|---|---|---|
| Kiro | macOS/Linux | ~/.kiro/settings/mcp.json |
| Kiro | Windows | %USERPROFILE%\.kiro\settings\mcp.json |
| Claude Desktop | macOS | ~/Library/Application Support/Claude/claude_desktop_config.json |
| Claude Desktop | Windows | %APPDATA%\Claude\claude_desktop_config.json |
| Claude Desktop | Linux | ~/.config/Claude/claude_desktop_config.json |
The MCP server provides tools to search docs, get specific pages, and follow recommended workflows.
Option 2: Static Files
Claude Code / Kiro
Copy CLAUDE.md to your project root, or add this to your existing CLAUDE.md:
## NinjaTrader Docs
Full SDK reference is in ./path/to/this/repo/. When writing NinjaScript,
consult the relevant .md files for accurate API signatures and examples.
OpenCode
Add the knowledge base path to your AGENTS.md file:
## NinjaTrader Documentation
When working with NinjaScript, reference the documentation in ./path/to/ninjatrader-kb/.
- `docs/` - API reference
- `best-practices/index.md` - Coding standards
- `education/index.md` - Tutorials
Or use the instructions field in your opencode.json:
{
"$schema": "https://opencode.ai/config.json",
"instructions": ["./path/to/ninjatrader-kb/CLAUDE.md"]
}
Other AI Tools
Point your AI assistant to this directory. The index.json file contains a machine-readable index of all pages.
Example Files for Common Tasks
Building Indicators
docs/indicator.md- Base class overviewdocs/onstatechange.md- Lifecycle managementdocs/onbarupdate.md- Calculation logicdocs/addplot.md- Adding visual plotsbest-practices/index.md- Coding standards
Building Strategies
docs/strategy.md- Base class overviewdocs/managed_approach.md- Order managementdocs/enterlong.md,docs/entershort.md- Entry methodsdocs/setstoploss.md,docs/setprofittarget.md- Risk management
File Structure
All documentation files in docs/ use a flat structure with filenames derived from the original URL:
インストール
npx -y ninjatrader-ninjascript-mcp設定
{
"mcpServers": {
"ninjatrader": {
"command": "npx",
"args": ["-y", "ninjatrader-ninjascript-mcp"]
}
}
}