MCP Package Docs Server

get_diagnostics

Retrieve diagnostic insights for code files using Language Server Protocol by providing file content, path, and language identifier to enhance debugging and development workflows.

Instructions

Get diagnostic information for a document using Language Server Protocol

Input Schema

NameRequiredDescriptionDefault
contentYesThe current content of the file
filePathYesAbsolute or relative path to the source file
languageIdYesThe language identifier (e.g., 'typescript', 'javascript')
projectRootNoRoot directory of the project for resolving imports and node_modules

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": "Root directory of the project for resolving imports and node_modules", "type": "string" } }, "required": [ "languageId", "filePath", "content" ], "type": "object" }

You must be authenticated.

Other Tools from MCP Package Docs Server

Related Tools

ID: mrk7ul7nz7