cclsp
Сообществоот ktnyt
Claude Code LSP: enhance your Claude Code experience with non-IDE dependent LSP integration.
Установка
# One-time setup (no installation required)Описание
[](https://mseep.ai/app/ktnyt-cclsp) # cclsp - not your average LSP adapter [](https://www.npmjs.com/package/cclsp) [](https://opensource.org/licenses/MIT) [](https://nodejs.org) [](https://github.com/ktnyt/cclsp/actions/workflows/ci.yml) [](https://www.npmjs.com/package/cclsp) [](CONTRIBUTING.md) **cclsp** is a Model Context Protocol (MCP) server that seamlessly integrates LLM-based coding agents with Language Server Protocol (LSP) servers. LLM-based coding agents often struggle with providing accurate line/column numbers, which makes naive attempts to integrate with LSP servers fragile and frustrating. cclsp solves this by intelligently trying multiple position combinations and providing robust symbol resolution that just works, no matter how your AI assistant counts lines. ## Setup & Usage Demo https://github.com/user-attachments/assets/52980f32-64d6-4b78-9cbf-18d6ae120cdd ## Table of Contents - [Why cclsp?](#why-cclsp) - [Features](#features) - [📋 Prerequisites](#-prerequisites) - [⚡ Setup](#-setup) - [Automated Setup (Recommended)](#automated-setup-recommended) - [Claude Code Quick Setup](#claude-code-quick-setup) - [Manual Setup](#manual-setup) - [Language Server Installation](#language-server-installation) - [Verification](#verification) - [🚀 Usage](#-usage) - [As MCP Server](#as-mcp-server) - [Configuration](#configuration) - [🛠️ Development](#️-development) - [🔧 MCP Tools](#-mcp-tools) - [`find_definition`](#find_definition) - [`find_references`](#find_references) - [`rename_symbol`](#rename_symbol) - [`rename_symbol_strict`](#rename_symbol_strict) - [`get_diagnostics`](#get_diagnostics) - [`restart_server`](#restart_server) - [💡 Real-world Examples](#-real-world-examples) - [Finding Function Definitions](#finding-function-definitions) - [Finding All References](#finding-all-references) - [Renaming Symbols](#renaming-symbols) - [🔍 Troubleshooting](#-troubleshooting) - [🤝 Contributing](#-contributing) - [📄 License](#-license) ## Why cclsp? When using AI-powered coding assistants like Claude, you often need to navigate codebases to understand symbol relationships. **cclsp** bridges the gap between Language Server Protocol capabilities and Model Context Protocol, enabling: - 🔍 **Instant symbol navigation** - Jump to definitions without manually searching - 📚 **Complete reference finding** - Find all usages of functions, variables, and types - ✏️ **Safe symbol renaming** - Rename across entire codebases with confidence - 🌍 **Universal language support** - Works with any LSP-compatible language server - 🤖 **AI-friendly interface** - Designed for LLMs to understand and use effectively ## Features - **Go to Definition**: Find where symbols are defined - **Find References**: Locate all references to a symbol - **Multi-language Support**: Configurable LSP servers for different file types - **TypeScript**: Built-in support via typescript-language-server - **Python**: Support via python-lsp-server (pylsp) - **Go**: Support via gopls - **And many more**: Extensive language server configurations ## 📋 Prerequisites - Node.js 18+ or Bun runtime - Language servers for your target languages (installed separately) ## ⚡ Setup cclsp provides an interactive setup wizard that automates the entire configuration process. Choose your preferred method: ### Automated Setup (Recommended) Run the interactive setup wizard: ```bash # One-time setup (no installation required) npx cclsp@latest setup # For user-wide configuration npx cclsp@latest setup --user ``` The setup wizard will: 1. **🔍 Auto-detect languages** in your project by scanning files 2. **📋 Show pre-selected LSP servers** based on detected languages 3. **📦 Display installation requirements** with detailed guides 4. **⚡ Install LSPs automatically** (optional, with user confirmation) 5. **🔗 Add to Claude MCP** (optional, with user confirmation) 6. **✅ Verify setup** and show available tools #### Setup Options - **Project Configuration** (default): Creates `.claude/cclsp.json` in current directory - **User Configuration** (`--user`): Creates global config in `~/.config/claude/cclsp.json` ### Manual Setup If you prefer manual configuration: 1. **Install cclsp**: ```bash npm install -g cclsp ``` 2. **Install language servers** (see [Language Server Installation](#language-server-installation)) 3. **Create configuration file**: ```bash # Use the interactive generator cclsp setup # Or create manually (see Configuration sec
Отзывы (0)
Пока нет отзывов. Будьте первым!
Статистика
Информация
Технологии
Похожие серверы
GitHub MCP
Полная интеграция с GitHub API: репозитории, issues, pull requests, actions и многое другое.
Filesystem MCP
Безопасный доступ к файловой системе для чтения, записи и управления файлами с настраиваемыми разрешениями.
Context7 MCP
Доступ к актуальной документации библиотек и фреймворков.
Serena MCP
Мощный MCP сервер для семантической навигации по коду и рефакторинга.