JP

joaodunas/parseltongue_mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

26 stars 5 forks 质量 74 趋势 15AGPL-3.0

一台模型上下文协议(MCP)服务器,提供直接文本编码工具,以及当前P4RS3LT0NGV3变换目录的消费者桥接器。

概览

一台模型上下文协议(MCP)服务器,提供直接文本编码工具,以及当前P4RS3LT0NGV3变换目录的消费者桥接器。 - : 从本地 P4RS3LT0NGV3/src/transformers 树中发现变换。- : 通过 id 或显示名应用任何发现的 P4RS 变换。- : 解码/反转任何发现的可逆变换。- 如果仓库不在 ~/git/P4RS3LT0NGV3,则设置 P4RS3LT0NGV3_PATH。 - : 用自定义的ICAO风格A-Z字母JSON映射编码文本。- : 将拼写字母文本解码回字母。 - 以及用于二维码生成。- 用于代码128、代码39和EAN-13 SVG生成。

概述(AI 翻译)

一台模型上下文协议(MCP)服务器,提供直接文本编码工具,以及当前P4RS3LT0NGV3变换目录的消费者桥接器。

特色

🧬 P4RS3LT0NGV3 消费者桥

  • list_p4rs_transforms:发现本地P4RS3LT0NGV3/src/transformers树中的变换。
  • apply_p4rs_transform:通过ID或显示名称应用任何发现的P4RS变换。
  • decode_p4rs_transform:解码/反转发现的任何可逆变换。
  • 如果仓库不在~/git/P4RS3LT0NGV3,则设P4RS3LT0NGV3_PATH。

🔤 自定义拼写字母表

  • encode_spelling_alphabet:用自定义的ICAO风格A-Z字母JSON映射编码文本。
  • decode_spelling_alphabet:将拼写字母文本解码回字母。

🔳 二维码和条形码

  • generate_qr_code_svg 和 generate_qr_code_data_uri 用于生成二维码。
  • generate_barcode_svg 用于代码128、代码39和EAN-13 SVG生成。

📦 基础编码(22个工具)

  • Base64:编码/解码Base64
  • Base64URL:编码/解码Base64 URL安全格式
  • Base32:编码/解码Base32
  • Base58:编码/解码Base58(比特币风格)
  • Base62:编码/解码Base62

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Parseltongue MCP Server 🐍

A Model Context Protocol (MCP) server providing direct text encoding tools plus a consumer bridge for the current P4RS3LT0NGV3 transform catalog.

Features

🧬 P4RS3LT0NGV3 Consumer Bridge

  • list_p4rs_transforms: Discover transforms from the local P4RS3LT0NGV3/src/transformers tree.
  • apply_p4rs_transform: Apply any discovered P4RS transform by id or display name.
  • decode_p4rs_transform: Decode/reverse any discovered reversible transform.
  • Set P4RS3LT0NGV3_PATH if the repo is not at ~/git/P4RS3LT0NGV3.

🔤 Custom Spelling Alphabets

  • encode_spelling_alphabet: Encode text with a custom ICAO-style A-Z alphabet JSON map.
  • decode_spelling_alphabet: Decode spelling-alphabet text back to letters.

🔳 QR Codes & Barcodes

  • generate_qr_code_svg and generate_qr_code_data_uri for QR code generation.
  • generate_barcode_svg for Code 128, Code 39, and EAN-13 SVG generation.

📦 Basic Encodings (22 tools)

  • Base64: Encode/decode Base64
  • Base64URL: Encode/decode Base64 URL-safe format
  • Base32: Encode/decode Base32
  • Base58: Encode/decode Base58 (Bitcoin-style)
  • Base62: Encode/decode Base62
  • Base45: Encode/decode Base45
  • ASCII85: Encode/decode ASCII85
  • Hexadecimal: Encode/decode hex
  • Binary: Encode/decode 8-bit binary
  • URL Encoding: Percent encoding for URLs
  • HTML Entities: Encode/decode HTML entities

🔐 Ciphers (8 tools)

  • ROT13: Classic rotation cipher (encode/decode)
  • Caesar Cipher: Custom shift cipher (encode/decode)
  • Atbash: Reverse alphabet substitution (encode/decode)
  • Morse Code: Encode/decode to Morse code

🎨 Unicode Transformations (6 tools)

  • Zalgo Text: Glitch effect with combining marks
  • Upside Down: Flip text using Unicode
  • Bubble Text: Circle-enclosed letters (Ⓐⓑⓒ)
  • Full Width: Vaporwave aesthetic (full width)
  • Strikethrough: S̶t̶r̶i̶k̶e̶t̶h̶r̶o̶u̶g̶h̶
  • Underline: U̲n̲d̲e̲r̲l̲i̲n̲e̲d̲

🕵️ Steganography (3 tools)

  • Zero-Width Encoding: Hide text using invisible Unicode characters (encode/decode)
  • Invisible Ink: Hide messages within cover text

🔧 Utilities (2 tools)

  • Reverse Text: Simple string reversal
  • Pig Latin: Classic word game transformation

Installation

# Clone the repository
git clone 
cd parseltongue_mcp

# Install dependencies using uv
uv sync

# Or using pip
pip install -e .

Usage

As an MCP Server

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "parseltongue": {
      "command": "uv",
      "args": [
        "--directory",
        "(Full path)/parseltongue_mcp",
        "run",
        "parseltongue-mcp"
      ]
    }
  }
}

Running Directly

# Using uv
uv run parseltongue-mcp

# Or with python
在 GitHub 查看完整 README

安装

npx @modelcontextprotocol/inspector uv run python main.py
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "parseltongue": { "command": "uv", "args": [ "--directory", "(Full path)/parseltongue_mcp", "run", "parseltongue-mcp" ] } } }