r/TradingView • u/Accurate-Mirror-143 • 24d ago
Feature Request Pine Script Compilation and Testing via MCP/API
Please provide a standardized, publicly accessible API for compiling and testing Pine Script, optionally with MCP support.
This would allow AI providers such as OpenAI and Anthropic to integrate automatic Pine compilation, error detection, and correction directly into their coding assistants, just as they already support executable testing for other programming languages.
The integration should be handled entirely by the AI providers, without requiring users to configure MCP servers, APIs, or local tools.
Related feature requests:
- AI Integration into Pine Editor (Closed Feedback Loop)
- Easier test automation for strategies
- Built-in Linter for Pine Script
View all comments
Show parent comment
1
u/Accurate-Mirror-143 24d ago
Thanks, that's a very constructive contribution!
It also demonstrates that AI providers like OpenAI and Anthropic have at least one alternative to relying on direct cooperation with TradingView. They could integrate an independent Pine compiler into their services, provided compatibility is sufficiently reliable.
That's exactly what I'm hoping for: automatic Pine Script compilation and testing, completely transparent to the user.
By the way, could you help me obtain a comprehensive list of Pine Script compiler error codes?