language-server-mcp
언어 서버-mcp MCP 서버
코드 편집을 위한 언어 지원을 제공하는 MCP(Model Context Protocol) 서버입니다.
이는 호버 정보, 코드 완성, 진단 등의 기능을 제공하여 코드 편집 경험을 향상시키도록 설계된 TypeScript 기반 MCP 서버입니다. 다음과 같은 기능을 통해 핵심 MCP 개념을 보여줍니다.
코드 분석 및 조작을 위한 언어별 도구
원활한 통신을 위한 모델 컨텍스트 프로토콜과의 통합
특징
언어 지원
코드의 심볼에 대한 호버 정보를 제공합니다.
코드 완성 제안을 제공합니다
진단 정보(오류, 경고)를 보고합니다.
TypeScript로만 테스트했으며, 이론적으로는 Python도 지원해야 합니다. 가능하다면 언어 서버를 추가하거나 더 독립적인 기능을 제공하고 싶습니다.
MCP 통합
클라이언트와의 통신을 위해 MCP 프로토콜을 구현합니다.
MCP 도구로서 언어 기능을 노출합니다.
도구
get_hover: 문서 내 위치에 대한 호버 정보 가져오기필수 매개변수로 languageId, filePath, content, line 및 character를 사용합니다.
get_completions: 문서의 위치에 대한 완성 제안을 받습니다.필수 매개변수로 languageId, filePath, content, line 및 character를 사용합니다.
get_diagnostics: 문서에 대한 진단 정보를 가져옵니다.필수 매개변수로 languageId, filePath 및 content를 사용합니다.
Related MCP server: VSCode LSP MCP Server
개발
종속성 설치:
지엑스피1
서버를 빌드하세요:
npm run build자동 재빌드를 사용한 개발의 경우:
npm run watch설치
Claude Desktop과 함께 사용하려면 서버 구성을 추가하세요.
MacOS의 경우: ~/Library/Application Support/Claude/claude_desktop_config.json Windows의 경우: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"language-server-mcp": {
"command": "/path/to/language-server-mcp/build/index.js"
}
}
}디버깅
MCP 서버는 stdio를 통해 통신하므로 디버깅이 어려울 수 있습니다. 패키지 스크립트로 제공되는 MCP Inspector를 사용하는 것이 좋습니다.
npm run inspector검사기는 브라우저에서 디버깅 도구에 액세스할 수 있는 URL을 제공합니다.
Available Tools
3 toolsget_completionsC
Get completion suggestions for a position in a document
Inputs: character (required), content (required), filePath (required), languageId (required), +2 more.
get_diagnosticsC
Get diagnostic information for a document
Inputs: content (required), filePath (required), languageId (required), projectRoot (required).
get_hoverC
Get hover information for a position in a document
Inputs: character (required), content (required), filePath (required), languageId (required), +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose: get_completions provides suggestions, get_diagnostics provides error/warning information, and get_hover provides documentation. There is no overlap or ambiguity between these three core language server operations.
All tools follow a consistent verb_noun pattern with 'get_' prefix and descriptive nouns (completions, diagnostics, hover). The naming is perfectly uniform and predictable throughout the set.
With only 3 tools, the server feels somewhat thin for a language server domain. While these cover fundamental operations, typical language servers would include more capabilities like formatting, references, definitions, or rename operations. The count is borderline minimal.
The tool surface is significantly incomplete for a language server. Missing are essential operations like formatting, finding references, getting definitions, renaming symbols, and code actions. Agents will encounter dead ends when trying to perform common language server tasks beyond the three provided.
Related MCP Connectors
The official Svelte MCP server providing docs and autofixing tools for Svelte development
A TypeScript MCP server for Home Assistant, enabling programmatic management of entities, automati…
A simple Typescript MCP server built using the official MCP Typescript SDK and smithery/cli. This…
A MCP server built for developers enabling Git based project management with project and personal…
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables LLMs to understand and work with TypeScript APIs they haven't been trained on by providing structured access to TypeScript type definitions and documentation.46MIT
- AlicenseNot gradedqualityBmaintenanceAn MCP server that exposes Language Server Protocol features to external clients, allowing access to hover information, definitions, completions, references, and rename functionalities.43MIT
- AlicenseAqualityDmaintenanceA lightweight MCP server that provides 40 tools for TypeScript/JavaScript refactoring and code intelligence, directly mapping to TypeScript's tsserver protocol commands for accurate structural changes and workspace analysis.4029 npm3MIT
- AlicenseNot gradedqualityDmaintenanceA standalone MCP server that provides TypeScript type inference and hover information using tsgo, enabling AI agents to get type details, diagnostics, references, and more without needing an editor.1MIT