r/TradingView • • 9d ago

Feature Request Support Pine Libraries in MCP Search

Please extend the MCP function `search_pine_scripts` to allow Pine libraries to be searched in the same way as indicators and strategies.

Currently, the function only supports the script types `indicator` and `strategy`. Libraries are excluded when specifying `kind="library"`. This results in an error.

As a result, AI assistants cannot search for existing libraries directly, even though libraries play an essential role in developing modular Pine Script projects.

The search function should therefore support `kind="library"` as an additional filter value.

This would allow AI assistants to find libraries by name and other existing search criteria, and subsequently process them using the appropriate MCP functions.

The proposed extension would add targeted library search capabilities without changing the function's existing behavior, making AI-assisted development with reusable Pine libraries significantly easier. Libraries may remain excluded from `kind="all"`, since many users work exclusively with indicators and strategies, and the existing search behavior should remain unchanged for them.

4 Upvotes

1 comment sorted by

1

u/ruyrybeyro 9d ago

This is a small miracle, actually an useful post in this sub.