[Feature Request]: Allow ai to call the lsp method to view the data #129
Replies: 5 comments 2 replies
-
Is this what you mean? Let LLM execute some lua code like I tried to do this with the native Neovim MCP server while building that. I wanted to provide some tools like find references etc. The main issue while making the LLM to work with neovim's lsp api is that most of the Please let me know if you have any other ideas. One alternative might be using treesitter in someway to understand the project. However, there are MCP servers that do that. I just found this https://github.com/wrale/mcp-server-tree-sitter. I am sure there are better ones that this. |
Beta Was this translation helpful? Give feedback.
-
Yes, just like you say:
I'll try to find the feasibility of this solution |
Beta Was this translation helpful? Give feedback.
-
I thought about it carefully, how to make ai correctly generate the input of lsp request or convert the input of ai into lsp request. This is the main difficulty in this implementation |
Beta Was this translation helpful? Give feedback.
-
As for the response, this is very simple. We can directly use the corresponding uri+cod block or file content + number of rows + columns of the code for the response. |
Beta Was this translation helpful? Give feedback.
-
Related library, I found this https://github.com/jonrad/lsp-mcp/tree/main |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
If Ai is allowed to call the lsp method to view data, I think the answer effect of Ai may be improved if a small number of files is given to Ai.
In fact, this should have miraculous results in large projects
I've tried vectorcode and the result is that the vectorcode query returns too much and it's easy to go beyond the context limit
Beta Was this translation helpful? Give feedback.
All reactions