language-server-mcp

get_diagnostics

Analyze code files to retrieve detailed diagnostic information, including errors and warnings, based on file content, path, language, and project root. Enhances code quality and debugging efficiency.

Instructions

Get diagnostic information for a document

Input Schema

NameRequiredDescriptionDefault
contentYesThe current content of the file
filePathYesAbsolute or relative path to the source file
languageIdYesThe language identifier (e.g., "typescript", "javascript")
projectRootYesImportant: Root directory of the project for resolving imports and node_modules where the tsconfig.json or jsconfig.json is located

Input Schema (JSON Schema)

{ "properties": { "content": { "description": "The current content of the file", "type": "string" }, "filePath": { "description": "Absolute or relative path to the source file", "type": "string" }, "languageId": { "description": "The language identifier (e.g., \"typescript\", \"javascript\")", "type": "string" }, "projectRoot": { "description": "Important: Root directory of the project for resolving imports and node_modules where the tsconfig.json or jsconfig.json is located", "type": "string" } }, "required": [ "languageId", "filePath", "content", "projectRoot" ], "type": "object" }

You must be authenticated.

Other Tools from language-server-mcp

Related Tools

ID: t4zp3tna7x