mcpField
T
Toon Tools Vsx

Toon Tools Vsx

Local
github.comDeveloper Tools2Updated 2w ago

About Toon Tools Vsx

TOON Tools for VS Code is an editor extension for working with compact tabular `.toon` files. It combines editing support, validation, conversion, previews, and data export within VS Code.

Key features

  1. 01Highlight and format TOON syntax
  2. 02Lint row counts and field values
  3. 03Navigate blocks and inspect field hints
  4. 04Convert between TOON and JSON
  5. 05View blocks as sortable tables
  6. 06Analyze size and export blocks to CSV

Use cases

  1. 01Edit and validate `.toon` files in VS Code
  2. 02Convert JSON data to TOON or back
  3. 03Inspect tabular blocks with filters
  4. 04Compare file sizes and export data as CSV

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

TOON Tools for VS Code

VS Code Marketplace Open VSX CI

Token-Oriented Object Notation support: syntax highlighting, formatting, linting, intelligent editing, previews, table viewer, and dual-marketplace publishing.

TOON Tools turns .toon files into a first-class VS Code editing experience for compact tabular data. It supports authoring, diagnostics, JSON conversion, data inspection, size analysis, and CSV export without leaving the editor.

Features

FeatureDescription
Syntax highlightingTextMate grammar for block names, row counts, fields, comments, quoted strings, empty values, and separators.
FormatterNormalizes headers, row indentation, comma spacing, and trailing whitespace.
LinterReports row-count mismatches, duplicate fields, and rows with the wrong number of values.
HoverShows block metadata on headers and field names on data-row cells.
Inlay hintsDisplays field-name hints before row values, controlled by toon.inlayHints.enabled.
Rename and definitionRename block or field names from headers, and jump from rows back to the block header.
JSON conversionConvert JSON arrays or objects of arrays to TOON, and convert TOON back to JSON.
Table ViewerInspect blocks as sortable, filterable tables in a VS Code-themed webview.
Size AnalyzerCompare TOON and JSON byte counts, line counts, and token estimates.
CSV exportExport any TOON block to a CSV file from the command palette or context menu.

Preview

Syntax Highlighting & Diagnostics

Syntax highlighting, diagnostics, and hover details

Inlay Hints

Field-name inlay hints

Table Viewer

Sortable, filterable table viewer

Editor and Table Preview

TOON editor and table preview side by side

Install

Install from the VS Code Marketplace or Open VSX. To install a local VSIX build, run:

pnpm run package
code --install-extension ./toon-tools-vsx-<version>.vsix

Usage

Open a .toon file to enable syntax highlighting, diagnostics, hover, inlay hints, formatting, and navigation. Use the command palette for conversion, preview, table inspection, token-size analysis, and CSV export commands.

TOON Format Specification

TOON stores tabular records as named blocks:

users[3]{id,name,role}:
  1,Alice,admin
  2,Bob,user
  3,Charlie,user

Header syntax:

BlockName[rowCount]{field1,field2,...}:

Rows are indented comma-separated values. Empty values are allowed. Double-quoted values may contain commas, and embedded quotes are escaped by doubling them:

users[2]{id,name,note}:
  1,"Bob, Jr.","Says ""hello"""
  2,Alice,

Comments start with # when the line begins with optional whitespace. See docs/toon-spec.md for the complete grammar and examples.

Configuration

SettingDefaultDescription
toon.linter.enabledtrueEnable real-time TOON linting.
toon.linter.debounceMs300Debounce delay in milliseconds for linting on document changes.
toon.formatter.indentWidth2Number of spaces for row indentation. Allowed values: 2, 4.
toon.formatter.fieldSpacingcompactHeader field separator style: compact or spaced.
toon.conversion.toJsonValueModestringsTOON-to-JSON value mode: strings or typed.
toon.inlayHints.enabledtrueShow field-name inlay hints in data rows.
toon.statusBar.enabledtrueShow the current TOON block count in the VS Code status bar.

.toonrc files are validated against schemas/toon-config.schema.json.

Commands

CommandDescriptionDefault shortcut
TOON: Convert JSON to TOONConvert the active JSON document or selection into a TOON preview.None
TOON: Convert TOON to JSONConvert the active TOON document or selection into formatted JSON.None
TOON: Open JSON Preview (side)Open a side-by-side JSON preview for the active TOON document.None
TOON: Open TOON Preview (side)Open a side-by-side TOON preview for the active JSON document.None
TOON: Open Table ViewerOpen the active TOON document in a sortable table viewer.None
TOON: Analyze Size / TokensCompare TOON and JSON byte counts and token estimates.None
TOON: Export Block as CSVExport a selected TOON block to CSV.None

Extension Development

git clone https://github.com/oaslananka/toon-tools-vsx.git
cd toon-tools-vsx
corepack enable
pnpm install --frozen-lockfile
pnpm run build

Launch the extension with F5 and the Launch TOON Extension configuration.

Useful local gates:

pnpm run format:check
pnpm run lint
pnpm run typecheck
pnpm run test:unit:coverage
pnpm run build
pnpm run package

Automation and scheduled repository checks are documented in docs/automation.md.

Workspace Trust and Security

TOON Tools declares limited untrusted-workspace support. Linting, formatting, syntax highlighting, hover, and inlay hints work in untrusted workspaces. The extension metadata marks conversion commands as trust-sensitive because they read document content and can create derived documents. Preview, table-viewer, size analysis, and CSV export commands also process active document content and can create webviews or files; use them only for workspace content you trust.

Webviews use VS Code theme variables, localResourceRoots, a restrictive Content-Security-Policy, and nonces generated with Node crypto.

Known Limitations

This extension implements a strict TOON table-block subset. Quoted row values support commas and escaped double quotes. TOON-to-JSON conversion keeps values as strings by default; opt into typed primitive inference with toon.conversion.toJsonValueMode. JSON-to-TOON conversion expects arrays of objects or objects containing arrays of objects, and object keys must be valid TOON block and field names.

Support

Open bugs, feature requests, and security-adjacent hardening requests in GitHub Issues. For private vulnerability reports, use GitHub private vulnerability reporting or a private security advisory.

Contributing

See docs/contributing.md.

License

MIT. See LICENSE.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.