Back to Home
depoll icon

lsmcp

Verified Safe

by depoll

Overview

Provides AI models with semantic code understanding and refactoring capabilities via Language Server Protocol (LSP) integration.

Installation

Run Command
docker run --rm -i -v "$(pwd):$(pwd)" -w "$(pwd)" lsmcp:latest

Environment Variables

  • LOG_LEVEL
  • NODE_ENV

Security Notes

The project emphasizes a 'container-first architecture' with Docker, providing good isolation. It uses `child_process.spawn` with `shell: false` and includes input sanitization functions (`escapeRegExp`, `escapeShell`, `validateFilePath`, `sanitizeFileURI`) to prevent command injection and path traversal. Filesystem modifications are performed through `src/utils/file-operations.ts` which relies on URIs being safe. The `executeCommand` tool allows executing LSP server commands, which could be a vector if the underlying LSP server exposes dangerous commands, but this is a function of LSP itself. Overall, good security practices are evident.

Similar Servers

Stats

Interest Score30
Security Score9
Cost ClassLow
Avg Tokens1000
Stars1
Forks1
Last Update2025-11-28

Tags

LSPcode intelligencerefactoringcode analysisdeveloper tool