Toon Parse Mcp

io.github.ankitpal181由 GitHub 帳號 ankitpal181 發布v1.0.3-beta更新於 Oct 24, 2026

MCP server that reduces LLM context by removing code comments and converting data formats to TOON

發布方自己的服務:Parse

已驗證STDIO僅桌面開發者工具資料與分析

概覽

AI 產生的概覽

本機 MCP 伺服器,透過將 JSON、XML、YAML、CSV 轉為 TOON 格式並移除程式碼註解來壓縮上下文。

可以做什麼
將貼上的 JSON、XML、YAML 或 CSV 文字轉換為精簡的 TOON 格式以節省 token(optimize_input_context)。讀取本機程式碼檔案並回傳移除行內註解與多餘空白的版本(read_and_optimize_file)。提供一個資源,內含要求助理優先使用這些節省 token 工具的嚴格提示詞。
適用情境
當冗長的結構化資料或註解眾多的原始碼佔用助理的上下文視窗時,可在推理前先取得更小但仍保留功能的表示形式。
執行需求
以 stdio 本機程序執行,指令為 python3 -m toon_parse_mcp.server。需要 Python 3.10 或更新版本,以及來自 PyPI 的 toon-parse-mcp 套件(會引入 mcp 與 toon-parse)。未宣告帳號、API 金鑰或環境變數。
安裝前請注意
read_and_optimize_file 會依路徑讀取本機檔案,請僅指向你願意讓助理看到的檔案。最佳化會移除註解與空白,回傳的程式碼與原始檔案並不完全相同,可能遺失說明性內容。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Toon Parse Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

toon-parse MCP Server

mcp-name: io.github.ankitpal181/toon-parse-mcp

[MCP Registry] [PyPI version]

A specialized Model Context Protocol (MCP) server that optimizes token usage by converting data to TOON (Token-Oriented Object Notation) and stripping non-essential context from code files.

Overview

The toon-parse-mcp MCP server helps AI agents (like Cursor, Claude Desktop, etc.) operate more efficiently by:

  1. Optimizing Code Context: Stripping comments and redundant spacing from code files while preserving functional structure and docstrings.
  2. Data Format Conversion: Converting JSON, XML, YAML, and CSV inputs into the compact TOON format to save tokens.
  3. Mandatory Efficiency Protocol: A built-in resource that instructs LLMs to prioritize token-saving tools.

Features

Tools

  • optimize_input_context(raw_input: str): Processes raw text data (JSON/XML/CSV/YAML) and returns optimized TOON format.
  • read_and_optimize_file(file_path: str): Reads a local code file and returns a token-optimized version (no inline comments, minimized whitespace).

Resources

  • protocol://mandatory-efficiency: Provides a strict system instruction prompt for LLMs to ensure they use the optimization tools correctly.

Installation

bash
pip install toon-parse-mcp

Configuration

Cursor

  1. Open Cursor Settings -> MCP.
  2. Click "+ Add New MCP Server".
  3. Name: toon-parse-mcp
  4. Type: command
  5. Command: python3 -m toon_parse_mcp.server (Ensure your environment is active or use absolute path to python)

Windsurf

  1. Click the hammer icon in the Cascade toolbar and select "Configure".
  2. Alternatively, edit ~/.codeium/windsurf/mcp_config.json directly.
  3. Add the following to the mcpServers object:
json
{  "mcpServers": {    "toon-parse-mcp": {      "command": "python3",      "args": ["-m", "toon_parse_mcp.server"]    }  }}

Antigravity

  1. Open the MCP store via the "..." menu at the top right of the agent panel.
  2. Select "Manage MCP Servers" -> "View raw config".
  3. Alternatively, edit ~/.gemini/antigravity/mcp_config.json directly.
  4. Add the following to the mcpServers object:
json
{  "mcpServers": {    "toon-parse-mcp": {      "command": "python3",      "args": ["-m", "toon_parse_mcp.server"]    }  }}

Claude Desktop

Add this to your claude_desktop_config.json:

json
{  "mcpServers": {    "toon-parse-mcp": {      "command": "python3",      "args": ["-m", "toon_parse_mcp.server"]    }  }}

Usage

When the server is active, the AI will have access to the optimize_input_context and read_and_optimize_file tools. You can also refer to the efficiency protocol by asking the AI to "check the mandatory efficiency protocol".

Testing

To run the test suite:

  1. Install test dependencies:
    bash
    pip install -e ".[test]"
  2. Run tests:
    bash
    pytest tests/

Requirements

  • Python >= 3.10
  • mcp >= 1.25.0
  • toon-parse >= 2.4.3

License

MIT License - see LICENSE for details.

來源:README.md,提交 40e9b78

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.0.3-beta最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Parse 整合