mcp
v0.1.38MCP 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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
cwd | string |
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.
| Parameter | Type | Description |
|---|---|---|
code * | string | |
collect | boolean | |
cwd | string | |
filename | string | |
includeCode | boolean | |
loose | boolean | |
mode | string | |
target | string |
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.
| Parameter | Type | Description |
|---|---|---|
code * | string | |
check | boolean | |
cwd | string | |
filename | string | |
printWidth | integer | |
singleQuote | boolean | |
tabWidth | integer | |
useTabs | boolean |
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.
| Parameter | Type | Description |
|---|---|---|
code * | string | |
collect | boolean | |
cwd | string | |
filename | string | |
loose | boolean | |
mode | string | |
target | string |
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.
| Parameter | Type | Description |
|---|---|---|
code * | string | |
filename | string | |
target | string |
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.
| Parameter | Type | Description |
|---|---|---|
code * | string | |
filename | string | |
target | string |
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.
| Parameter | Type | Description |
|---|---|---|
code * | string | |
filename | string | |
target | string |
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.
| Parameter | Type | Description |
|---|---|---|
cwd | string |
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.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | |
collect | boolean | |
cwd | string | |
loose | boolean | |
mode | string | |
printWidth | integer | |
singleQuote | boolean | |
tabWidth | integer | |
target | string | |
useTabs | boolean |