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 集成