
terhechte/cursor-rust-tools
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
terhechte/cursor-rust-tools는 MCP 서버 후보가 https://github.com/terhechte/cursor-rust-tools.에서 수입되었습니다
개요
terhechte/cursor-rust-tools는 MCP 서버 후보가 https://github.com/terhechte/cursor-rust-tools.에서 수입되었습니다
개요(AI 번역)
MCP 서버는 Cursor에서 LLM을 허용 Rust Analyzer, Crate Docs 및 Cargo Commands에 액세스합니다.
구성에 대한 UI가 포함되어 있습니다.
무엇 그것
현재 다양한 AI 에이전트는 LSP의 Rust 유형 정보에 액세스 할 수있는 AI를 제공하지 않습니다. 이 형을 볼 때, LLM은 잠재적 인 유형에 대해 이유가 있기 때문에 장애물입니다.
또한, 종속에 대한 유일한 정보 (say tokio]) 그들이 훈련 된 것은
다른 버전의 날짜와 잠재적으로. 이것은 온갖 문제점에 지도할 수 있습니다.
Cursor Rust Tools은 Model Context Protocol (MCP])에서 사용할 수 있습니다.
crate] 또는crate]의 특정 기호에 대한 문서를 가져옵니다 (예:tokio또는tokio::spawn)- 파일의 특정 기호에 대한 hover information (type, description)을 가져옵니다.
- 파일의 특정 기호에 대한 모든 참조 목록을 가져옵니다.
- 파일에 있는 기호의 구현을 가져옵니다 (실행을 포함하는 전체적인 파일을 재기)
- 프로젝트의 이름을 입력하고 hover 정보를 반환
cargo test출력 받기cargo check출력 받기
어떻게 작동합니까
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
Cursor Rust Tools
A MCP server to allow the LLM in Cursor to access Rust Analyzer, Crate Docs and Cargo Commands.
Includes an UI for configuration.
What it does
Currently, various AI agents don’t offer the AI the ability to access Rust type information from the LSP. This is a hurdle because instead of seeing the type, the LLM has to reason about the potential type.
In addition, the only information about the dependencies (say tokio) are what they were trained on which is
out of date and potentially for a different version. This can lead to all kinds of issues.
Cursor Rust Tools makes these available over the Model Context Protocol (MCP).
- Get the documentation for a
crateor for a specific symbol in thecrate(e.g.tokioortokio::spawn) - Get the hover information (type, description) for a specific symbol in a file
- Get a list of all the references for a specific symbol in a file
- Get the implementation of a symbol in a file (retrieves the whole file that contains the implementation)
- Find a type just by name in a file the project and return the hover information
- Get the output of
cargo test - Get the output of
cargo check
How it works
For the LSP functionality src/lsp it spins up a new Rust Analyzer that indexes your codebase just like the on running in your editor. We can’t query the one running in the editor because Rust Analyzer is bound to be used by a single consumer (e.g. the open document action requires a close document in the right order, etc)
For documentation, it will run cargo docs and then parse the html documentation into markdown locally.
This information is stored in the project root in the .docs-cache folder.
Installation
cargo install --git https://github.com/terhechte/cursor-rust-tools
Run With UI
cursor-rust-tools
This will bring up a UI in which you can add projects, install the mcp.json and see the activity.
Run Without UI
Alternatively, once you have a ~/.cursor-rust-tools set up with projects, you can also just run it via
cursor-rust-tools --no-ui
Configuration
In stead of using the UI to create a configuration, you can also set up ~/.cursor-rust-tools yourself:
[[projects]]
root = "/Users/terhechte/Developer/Rust/example1"
ignore_crates = []
[[projects]]
root = "/Users/terhechte/Developer/Rust/example2"
ignore_crates = []
ignore_crates is a list of crate dependency names that you don’t want to be indexed for documentation. For example because they’re too big.
Configuring Cursor
One the app is running, you can configure Cursor to use it. This requires multiple steps.
설치
This server does not publish a one-line install command.
Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →