Sourcegraph · MCP · NinjaTrader 8

Connect Sourcegraph Cody to NinjaTrader 8

Repo-aware coding assistant. Stdio-only MCP (use mcp-remote proxy for CrossTrade).

See it in action
sourcegraph cody · crosstrade mcp · sim101

Sourcegraph Cody calling CrossTrade MCP tools against a live NinjaTrader 8 account. Run this yourself in 5 minutes →

Why Sourcegraph Cody

Why pair Sourcegraph Cody with CrossTrade MCP

Cody pairs codebase intelligence with MCP tool calls. Important caveat: Cody supports local (stdio) MCP only. To use a remote server like CrossTrade, wrap it with the mcp-remote stdio proxy. Also requires Sourcegraph Enterprise with the agentic-context-mcp-enabled feature flag.

Transport cody.mcpServers in settings.json + mcp-remote proxy wrapper
Highlights

What this combination unlocks

Repo context + MCP

Ask questions that span your codebase and live trading state.

Enterprise-gated

Free / Pro Cody do not have MCP. Enterprise + feature flag required.

How it works

The connection chain

Sourcegraph Cody
   │  OAuth-authorized tool call
   ▼
CrossTrade hosted MCP server   (https://app.crosstrade.io/v1/api/mcp)
   │
   ▼
CrossTrade Add-On running inside NT8 on your PC
   │
   ▼
NinjaTrader 8

One URL, one consent screen, one read-only first prompt. The MCP server is hosted by CrossTrade; you don't run anything beyond NT8 + the CrossTrade Add-On.

Ready to set up Sourcegraph Cody?

The full step-by-step setup lives on a dedicated page. Verified against Sourcegraph's current docs.

Open setup instructions →
Example prompts

Copy-paste prompts that work today

Repo + live state @strategies/ Compare SampleEmaCross.cs spec against the last 30 days of backtest data.
FAQ

Common questions

Is Cody a good fit for trading?

Specific niche: yes if your team already pays for Sourcegraph Enterprise and wants repo-aware code intelligence alongside CrossTrade tool calls. For most traders, Cody is more setup friction than benefit — consider Sourcegraph Amp instead, which has cleaner remote MCP support.

Do I need Cody, or should I use Amp instead?

Amp for new deployments. Amp is Sourcegraph's modern frontier-agent product with native remote HTTP MCP, OAuth + DCR, and pay-as-you-go pricing — no proxy needed. Cody is the older product with stdio-only MCP. If you're not already invested in Cody, start with Amp.

Why does Cody need an mcp-remote proxy?

Cody supports local (stdio) MCP only. To use a remote server like CrossTrade, wrap it with the mcp-remote stdio proxy: "command": "npx", "args": ["-y", "mcp-remote", "https://app.crosstrade.io/v1/api/mcp"]. mcp-remote handles OAuth in a browser tab.

Why is the MCP section missing in my Cody?

Two requirements: Cody Enterprise tier AND the agentic-context-mcp-enabled feature flag on your Sourcegraph instance. Free and Pro Cody don't have MCP. Ask your Sourcegraph admin to flip the flag.

Plan / cost?

Cody MCP is gated to Sourcegraph Enterprise. Sourcegraph Enterprise pricing is custom — typically a per-seat enterprise contract. For most solo / small-team trading use, Cody is the wrong fit on cost grounds alone.

Mac, Windows, and Linux?

Yes — VS Code Marketplace and JetBrains Marketplace. The extension is cross-platform; the cost gate is the Sourcegraph instance you connect to.

Stdio command failing in JetBrains?

JetBrains IDE PATH differs from your shell. Use absolute paths: run which npx in a terminal and put the full path in the command field. This is the #1 setup issue for Cody on JetBrains.

Can Cody do mcp:trade through the proxy?

Technically yes — mcp-remote forwards the tool calls regardless of scope. The OAuth flow inside mcp-remote will request the scope you ask for. Default to mcp:read for inspection; escalate carefully.

Connect Sourcegraph Cody to NinjaTrader 8 in 5 minutes

Free Sim101 walkthrough. Read-only first. Upgrade scope only when a real workflow needs it.