Base1000QianZiWenCodec
Base千字文
claude mcp add --transport stdio real-lihua-base1000qianziwencodec uvx git+https://github.com/real-LiHua/Base1000QianZiWenCodec[mcp]
How to use
Base1000QianZiWenCodec is a text encoder/decoder that converts arbitrary text into a sequence of Thousand Character Classic characters and can decode it back to the original input. It provides a command-line tool, a Python extension module, and direct execution methods via UVX and pipx, making it easy to integrate into scripts or run locally. You can encode short or long texts, and the decoder will reconstruct the original string. The Python package also exposes a Python API for programmatic usage, so you can encode or decode within Python projects or notebooks. To run via MCP, you can connect to the project via UVX or set up a custom context as shown in the examples, enabling you to manage and deploy this tool within your workflow.
How to install
Prerequisites:
- Rust toolchain (cargo) for building the core library and CLI.
- Python (for the Python extension) and maturin to build the Python package.
- Optional: uvx and pipx for direct execution via UVX/pipx.
-
Install Rust and cargo
- On macOS/Linux: install via rustup https://rustup.rs
- On Windows: install Rust via rustup-init or the Rust installer
-
Build the project (default features)
- cargo build --release
-
(Optional) Build with specific features
- Enable CLI: cargo build --release --features clap
- Enable Python extension: cargo build --release --features pyo3
- Enable encoding/decoding: cargo build --release --features encode
- Enable decoding: cargo build --release --features decode
- Enable multiple features: cargo build --release --features "clap pyo3 encode decode"
-
Build the Python extension using maturin
- maturin build --release
-
Install the Python package directly from Git (optional)
- pip install "git+https://github.com/real-LiHua/Base1000QianZiWenCodec"
Additional notes
Tips:
- The MCP config uses UVX to fetch the repository and run the tool in a managed environment. If you prefer a local setup, you can clone the repo and install locally via cargo or maturin as described.
- The CLI entry point is base1000, which supports -e for encoding and -d for decoding. Example: base1000 -e "114514" and base1000 -d "夜裳移柰梧".
- The Python extension module exposes a base1000.encode(text) and base1000.decode(encoded) API for easy integration into Python projects.
- When using UVX, you can directly execute the tool from the Git URL to ensure you’re running the latest code with the mcp switch enabled.
- If you encounter encoding/decoding inconsistencies, ensure you’re using the same feature set (encode/decode) in both build and runtime configurations.
Related MCP Servers
ida -rs
Headless IDA Pro MCP Server
mcp-discovery
A command-line tool written in Rust for discovering and documenting MCP Server capabilities.
turbomcp
A full featured, enterprise grade rust MCP SDK
turbovault
MCP server that transforms your Obsidian vault into an intelligent knowledge system
spec-kit
MCP server enabling AI assistants to use GitHub's spec-kit methodology
mcp-loxone
An opinionated Model Context Protocol (MCP) server for controlling Loxone home automation systems.