Skip to main content
Glama

language-server-mcp

by alexwohletz

get_diagnostics

Retrieve detailed diagnostic information for a document, including error and warning analysis, by providing the language identifier, file path, content, and project root for accurate code assessment.

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" }

Other Tools from language-server-mcp

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/alexwohletz/language-server-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server