
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@chromia/chromia-lsp-mcp
Advanced tools
MCP server for Rell Language Server Protocol (LSP) integration, providing hover information, code completions, diagnostics, and code actions with resource-based access
An MCP (Model Context Protocol) server for interacting with the Rell Language Server Protocol (LSP) interface. This server acts as a bridge that allows LLMs to query LSP Hover and Completion providers for Rell projects.
The MCP Server works by:
This enables LLMs to utilize the Rell LSP for more accurate code suggestions and analysis.
Install the package globally using npm:
npm install @chromia/chromia-lsp-mcp -g
Clone this repository:
git clone ...
cd lsp-mcp
Install dependencies:
npm install
Build the MCP server:
npm run build
After installation, you need to configure Claude to use the MCP server.
{
"mcpServers": {
"lsp-mcp": {
"command": "npx",
"args": [
"chromia-lsp-mcp",
"0.8.8" // optional Rell LSP version
]
}
}
}
{
"mcpServers": {
"chromia-lsp-mcp": {
"command": "node",
"args": ["/path/to/this/project/dist/index.js"]
}
}
}
Parameters :
Rell LSP version
: optional argument to explicitly set which Rell LSP version it should be used, otherwise, it will look for cached LSP jars, if not found it will download the latest version e.g:0.8.8
get_info_on_location
: Get hover information at a specific location in a fileget_completions
: Get completion suggestions at a specific location in a fileget_code_actions
: Get code actions for a specific range in a fileopen_document
: Open a file in the LSP server for analysisclose_document
: Close a file in the LSP serverget_diagnostics
: Get diagnostic messages (errors, warnings) for open filesstart_lsp
: Start the LSP server with a specified root directoryrestart_lsp_server
: Restart the LSP server without restarting the MCP serverset_log_level
: Change the server's logging verbosity level at runtimelsp-diagnostics://
resources for accessing diagnostic messages with real-time updates via subscriptionslsp-hover://
resources for retrieving hover information at specific file locationslsp-completions://
resources for getting code completion suggestions at specific positionsThe project includes integration tests for the Rell LSP support. These tests verify that the LSP-MCP server correctly handles LSP operations like hover information, completions, diagnostics, and code actions with the Rell language server.
To run the Rell LSP tests:
npm test
The tests verify the following functionality:
Run the MCP server directly with Node.js:
node dist/index.js
The server automatically downloads and manages the Rell LSP server JAR file, so no additional configuration is needed. The Rell LSP server will be downloaded to ~/.chromia/lsp-mcp/
on first use.
You must explicitly start the LSP server by calling the start_lsp
tool before using any LSP functionality. This ensures proper initialization with the correct root directory for your Rell project:
{
"tool": "start_lsp",
"arguments": {
"root_dir": "/path/to/your/project"
}
}
The server includes a comprehensive logging system with 8 severity levels:
debug
: Detailed information for debugging purposesinfo
: General informational messages about system operationnotice
: Significant operational eventswarning
: Potential issues that might need attentionerror
: Error conditions that affect operation but don't halt the systemcritical
: Critical conditions requiring immediate attentionalert
: System is in an unstable stateemergency
: System is unusableBy default, logs are sent to:
notifications/message
method)For detailed debugging, you can:
Use the claude --mcp-debug
flag when running Claude to see all MCP traffic between Claude and the server:
claude --mcp-debug
Change the log level at runtime using the set_log_level
tool:
{
"tool": "set_log_level",
"arguments": {
"level": "debug"
}
}
The default log level is info
, which shows moderate operational detail while filtering out verbose debug messages.
The server provides the following MCP tools:
Gets hover information at a specific location in a file.
Parameters:
file_path
: Path to the fileline
: Line numbercolumn
: Column positionExample:
{
"tool": "get_info_on_location",
"arguments": {
"file_path": "/path/to/your/file.rell",
"line": 3,
"column": 5
}
}
Gets completion suggestions at a specific location in a file.
Parameters:
file_path
: Path to the fileline
: Line numbercolumn
: Column positionExample:
{
"tool": "get_completions",
"arguments": {
"file_path": "/path/to/your/file.rell",
"line": 3,
"column": 10
}
}
Gets code actions for a specific range in a file.
Parameters:
file_path
: Path to the filestart_line
: Start line numberstart_column
: Start column positionend_line
: End line numberend_column
: End column positionExample:
{
"tool": "get_code_actions",
"arguments": {
"file_path": "/path/to/your/file.rell",
"start_line": 3,
"start_column": 5,
"end_line": 3,
"end_column": 10
}
}
Starts the LSP server with a specified root directory. This must be called before using any other LSP-related tools.
Parameters:
root_dir
: The root directory for the LSP server (absolute path recommended)Example:
{
"tool": "start_lsp",
"arguments": {
"root_dir": "/path/to/your/project"
}
}
Restarts the LSP server process without restarting the MCP server. This is useful for recovering from LSP server issues or for applying changes to the LSP server configuration.
Parameters:
root_dir
: (Optional) The root directory for the LSP server. If provided, the server will be initialized with this directory after restart.Example without root_dir (uses previously set root directory):
{
"tool": "restart_lsp_server",
"arguments": {}
}
Example with root_dir:
{
"tool": "restart_lsp_server",
"arguments": {
"root_dir": "/path/to/your/project"
}
}
Opens a file in the LSP server for analysis. This must be called before accessing diagnostics or performing other operations on the file.
Parameters:
file_path
: Path to the file to openExample:
{
"tool": "open_document",
"arguments": {
"file_path": "/path/to/your/file.rell"
}
}
Closes a file in the LSP server when you're done working with it. This helps manage resources and cleanup.
Parameters:
file_path
: Path to the file to closeExample:
{
"tool": "close_document",
"arguments": {
"file_path": "/path/to/your/file"
}
}
Gets diagnostic messages (errors, warnings) for one or all open files.
Parameters:
file_path
: (Optional) Path to the file to get diagnostics for. If not provided, returns diagnostics for all open files.Example for a specific file:
{
"tool": "get_diagnostics",
"arguments": {
"file_path": "/path/to/your/file"
}
}
Example for all open files:
{
"tool": "get_diagnostics",
"arguments": {}
}
Sets the server's logging level to control verbosity of log messages.
Parameters:
level
: The logging level to set. One of: debug
, info
, notice
, warning
, error
, critical
, alert
, emergency
.Example:
{
"tool": "set_log_level",
"arguments": {
"level": "debug"
}
}
In addition to tools, the server provides resources for accessing LSP features including diagnostics, hover information, and code completions:
The server exposes diagnostic information via the lsp-diagnostics://
resource scheme. These resources can be subscribed to for real-time updates when diagnostics change.
Resource URIs:
lsp-diagnostics://
- Diagnostics for all open fileslsp-diagnostics:///path/to/file
- Diagnostics for a specific fileImportant: Files must be opened using the open_document
tool before diagnostics can be accessed.
The server exposes hover information via the lsp-hover://
resource scheme. This allows you to get information about code elements at specific positions in files.
Resource URI format:
lsp-hover:///path/to/file?line={line}&column={column}
Parameters:
line
: Line number (1-based)column
: Column position (1-based)Example:
lsp-hover:///home/user/project/src/main.rell?line=42&column=10
The server exposes code completion suggestions via the lsp-completions://
resource scheme. This allows you to get completion candidates at specific positions in files.
Resource URI format:
lsp-completions:///path/to/file?line={line}&column={column}
Parameters:
line
: Line number (1-based)column
: Column position (1-based)Example:
lsp-completions:///home/user/project/src/main.rell?line=42&column=10
To discover available resources, use the MCP resources/list
endpoint. The response will include all available resources for currently open files, including:
Diagnostic resources support subscriptions to receive real-time updates when diagnostics change (e.g., when files are modified and new errors or warnings appear). Subscribe to diagnostic resources using the MCP resources/subscribe
endpoint.
Note: Hover and completion resources don't support subscriptions as they represent point-in-time queries.
You can choose between two approaches for accessing LSP features:
get_diagnostics
, get_info_on_location
, and get_completions
tools for a simple, direct way to fetch information.lsp-diagnostics://
, lsp-hover://
, and lsp-completions://
resources for a more RESTful approach.Both approaches provide the same data in the same format and enforce the same requirement that files must be opened first.
MIT License
FAQs
MCP server for Rell Language Server Protocol (LSP) integration, providing hover information, code completions, diagnostics, and code actions with resource-based access
We found that @chromia/chromia-lsp-mcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 10 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.