
alexwohletz/language-server-mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
A Model Context Protocol (MCP) 서버는 코드 편집을 위한 언어 지원을 제공합니다.
개요
A Model Context Protocol (MCP) 서버는 코드 편집을 위한 언어 지원을 제공합니다. Hover 정보, 코드 완료 및 진단과 같은 기능을 제공함으로써 코드 편집 경험을 향상시키기 위해 설계된 TypeScript 기반 MCP 서버입니다. 그것은 제공하는 핵심 MCP 개념을 보여줍니다: - 코드 분석 및 조작을위한 언어 별 도구 - 원활한 통신을위한 Model Context Protocol과 통합 - 코드의 기호에 대한 hover 정보를 제공 - 코드 완료 제안 제안 - 진단 정보 (오류, 경고) - Typescript로만 테스트, 이론적으로 Python을 지원해야합니다. 추가 언어 서버를 추가하거나 가능한 경우 더 많은 임신을해야합니다.
개요(AI 번역)
A Model Context Protocol (MCP) 서버는 코드 편집을 위한 언어 지원을 제공합니다.
Hover 정보, 코드 완료 및 진단과 같은 기능을 제공함으로써 코드 편집 경험을 향상시키기 위해 설계된 TypeScript 기반 MCP 서버입니다. 그것은 제공하는 핵심 MCP 개념을 보여줍니다:
- 코드 분석 및 조작을 위한 언어별 도구
- 원활한 통신을 위한 Model Context Protocol과 통합
특징
언어 지원
- 코드의 기호에 대한 hover 정보를 제공합니다
- 제공 코드 완료 제안
- 진단 정보 (errors, 경고)
- typescript로만 테스트되며, 이론적으로 Python을 지원해야 합니다. 추가 언어 서버를 추가하거나 가능한 경우 더 많은 임신을해야합니다.
MCP 통합
- 클라이언트와의 통신을위한 MCP 프로토콜 구현
- MCP 도구로 언어 기능 노출
도구
get_hover: 문서의 위치에 대한 hover 정보를 얻기- 필요한 매개 변수로 languageId, filePath, content, line, 문자를 입력
get_completions: 문서의 위치를 위한 완료 제안 받기- 필요한 매개 변수로 languageId, filePath, content, line, 문자를 입력
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
language-server-mcp MCP Server
A Model Context Protocol (MCP) server providing language support for code editing.
This is a TypeScript-based MCP server designed to enhance code editing experiences by providing features such as hover information, code completion, and diagnostics. It demonstrates core MCP concepts by providing:
- Language-specific tools for code analysis and manipulation
- Integration with the Model Context Protocol for seamless communication
Features
Language Support
- Provides hover information for symbols in code
- Offers code completion suggestions
- Reports diagnostic information (errors, warnings)
- Only tested with typescript, theoretically should support Python. Would love to add additional language servers or be more agnostic if possible.
MCP Integration
- Implements the MCP protocol for communication with clients
- Exposes language features as MCP tools
Tools
get_hover: Get hover information for a position in a document- Takes languageId, filePath, content, line, and character as required parameters
get_completions: Get completion suggestions for a position in a document- Takes languageId, filePath, content, line, and character as required parameters
get_diagnostics: Get diagnostic information for a document- Takes languageId, filePath, and content as required parameters
Development
Install dependencies:
npm install
Build the server:
npm run build
For development with auto-rebuild:
npm run watch
Installation
To use with Claude Desktop, add the server config:
On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"language-server-mcp": {
"command": "/path/to/language-server-mcp/build/index.js"
}
}
}
Debugging
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:
npm run inspector
The Inspector will provide a URL to access debugging tools in your browser.
설치
This server does not publish a one-line install command.
Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →설정
{
"mcpServers": {
"language-server-mcp": {
"command": "/path/to/language-server-mcp/build/index.js"
}
}
}