Skip to main content
Glama

TypeScript MCP

by mizchi

get_diagnostics

Analyze TypeScript files to retrieve diagnostics, including errors and warnings, by specifying a root directory and file path or using virtual content for evaluation.

Instructions

Get TypeScript diagnostics (errors, warnings) for a single file

Input Schema

NameRequiredDescriptionDefault
filePathYesFile path to check for diagnostics (relative to root)
rootYesRoot directory for resolving relative paths
virtualContentNoVirtual content to use for diagnostics instead of file content

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "filePath": { "description": "File path to check for diagnostics (relative to root)", "type": "string" }, "root": { "description": "Root directory for resolving relative paths", "type": "string" }, "virtualContent": { "description": "Virtual content to use for diagnostics instead of file content", "type": "string" } }, "required": [ "root", "filePath" ], "type": "object" }

You must be authenticated.

Other Tools from TypeScript 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/mizchi/typescript-mcp'

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