Skip to main content
Glama
MCP TypeScript Server

MCP TypeScript Server

by umutc

compile_typescript

Compile TypeScript files or full projects to JavaScript, with watch mode and source maps, so AI assistants can build, check, and debug TypeScript code.

Instructions

Compile TypeScript file(s) to JavaScript with full project support, watch mode, and source maps

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "compile_typescript"
  }
}

Input Schema

NameRequiredDescriptionDefault
watchNoEnable watch mode for continuous compilation on file changes
filePathNoPath to TypeScript file to compile
outputDirNoOutput directory for compiled JavaScript files
sourceMapNoGenerate source maps for debugging
projectPathNoPath to TypeScript project directory with tsconfig.json

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

B3.4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description carries the full behavioral burden. It usefully signals that watch mode triggers continuous recompilation and that source maps can be emitted, but it omits important traits such as whether files are written to disk versus returned, what happens on compile errors, and whether watch mode is a long-running call.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence that names the action and the three headline features with no filler. It is efficient, though the '(s)' hedge and the feature list add little beyond what the schema already conveys.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no annotations and no output schema, the description should say what a call produces (written files, emitted paths, or diagnostics) and how errors surface. It covers the capabilities and configuration surface but leaves return values, failure behavior, and the filePath/projectPath relationship undocumented.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so every parameter already has a description and the baseline is 3. The description reinforces watch, source maps, and tsconfig-based project compilation but adds no precedence rules between filePath and projectPath or format details beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Compile TypeScript file(s) to JavaScript') plus the key capabilities it supports. Because the output is explicitly JavaScript emit, an agent can infer it differs from siblings like check_types and validate_syntax, though the description never names those siblings to confirm the distinction.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: an agent can gather that this is the tool for producing JS output with a tsconfig-based project. There is no explicit when-to-use statement, no exclusion of check_types/validate_syntax for type-only workflows, and no guidance on when to choose filePath versus projectPath.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.