Is there any way to give Cursor access to JAR files?

Right now, it can only access files within the project. But when I need Cursor to write code that uses some third-party JAR packages, its performance is often limited, because it can’t access the source code inside the JAR files.

Is there any way to allow Cursor to access local JAR files?

Any VS Code extensions that could help with this, or other good ways to deal with this issue?

I noticed something interesting:

When I manually paste the contents of a JAR file into the context(Add to Chat), Cursor is actually able to read and understand the class definition from it, as shown in the screenshot below.(It even knows the accurate line numbers)

So technically, it seems Cursor can access local JAR files—if given the content.

Why isn’t there a tool that can automatically load and decompile JAR source code for Cursor to use?

Is anybody has any idea?

或许你可以尝试一下用MCP? roocode好像可以读取多种文件,但是cursor之前的版本甚至pdf都读不了