mcp

v0.1.38
@tsrx/mcp Checked 5 hours ago Published 3 days ago

MCP server for TSRX documentation and project context

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list-sections List TSRX Documentation Sections

Lists available TSRX documentation sections with use_cases. Use this to discover relevant docs before answering TSRX syntax or target-runtime questions.

get-documentation Get TSRX Documentation

Retrieves TSRX documentation for one or more section slugs or titles. Pass a string, comma-separated string, JSON array string, or string array.

ParameterTypeDescription
section *

detect-target Detect TSRX Runtime Target

Inspects package.json and common bundler config files to infer whether a project uses TSRX with Ripple, React, Preact, Solid, Vue, or Hono.

ParameterTypeDescription
cwdstring

compile-tsrx Compile TSRX

Compiles TSRX code with the inferred or explicit runtime target compiler. Use this to validate generated .tsrx code and collect compiler diagnostics.

ParameterTypeDescription
code *string
collectboolean
cwdstring
filenamestring
includeCodeboolean
looseboolean
modestring
targetstring

format-tsrx Format TSRX

Formats TSRX code using the official @tsrx/prettier-plugin. Use this before returning generated .tsrx code or to check whether source is already formatted.

ParameterTypeDescription
code *string
checkboolean
cwdstring
filenamestring
printWidthinteger
singleQuoteboolean
tabWidthinteger
useTabsboolean

analyze-tsrx Analyze TSRX Diagnostics

Compiles TSRX code and turns compiler diagnostics into target-neutral authoring advice with linked TSRX docs resources. Use this before manually guessing fixes.

ParameterTypeDescription
code *string
collectboolean
cwdstring
filenamestring
looseboolean
modestring
targetstring

review-tsrx-accessibility Review TSRX Accessibility

Reviews TSRX source for common accessibility issues before browser-based Axe validation, including missing button names, unlabeled form controls, and visible text accidentally wrapped in quote characters.

ParameterTypeDescription
code *string
filenamestring
targetstring

review-tsrx-styles Review TSRX Styles

Reviews TSRX source for style-authoring issues, including malformed style blocks, broad selectors, root styling that should live on explicit classes, and contrast risks.

ParameterTypeDescription
code *string
filenamestring
targetstring

review-tsrx-components Review TSRX Component Structure

Reviews TSRX source for component decomposition opportunities when control flow, repeated item templates, or style blocks become large enough to hurt generated-code reliability.

ParameterTypeDescription
code *string
filenamestring
targetstring

inspect-project Inspect TSRX Project

Inspects package.json, target signals, TSRX packages, tooling packages, scripts, and common config files for a project. Use this before choosing target-specific advice or repo commands.

ParameterTypeDescription
cwdstring

validate-tsrx-file Validate TSRX File

Reads a .tsrx file and runs the full MCP validation loop: formatting check, target-aware compilation, and diagnostic advice. This tool is read-only and does not rewrite files.

ParameterTypeDescription
filePath *string
collectboolean
cwdstring
looseboolean
modestring
printWidthinteger
singleQuoteboolean
tabWidthinteger
targetstring
useTabsboolean