script
(string): The PineScript code to validate
How to use it
script is exposed by the Pinescript MCP Server MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the script tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
FULL PINESCRIPT MCP SERVER LISTINGOther tools in Pinescript MCP Server (11)
(string[]): List of changes made
(string[]): List of syntax errors
(boolean): Whether any fixes were applied
(string): The fixed script
(string): Confirmation message
(string): Template name
(string): The template code
(string): Type of template ('strategy' or 'indicator')
(boolean): Whether the script is valid
(string, optional): Expected PineScript version (e.g., 'v5', 'v4')
(string[]): List of warnings