Skip to content
dsh.fish
Bundle

xby-text-toolkit

一个提供文本转换、格式化和分析功能的MCP服务器,可直接集成到开发工作流中。

Source
xby-skill
License
MIT
Updated
Updated 2 days ago

Readme

# xby-text-toolkit

DeepSeek Harness (DSH) 的插件:文本转换工具

一个提供文本转换、格式化和分析功能的MCP服务器,可直接集成到开发工作流中。

## 功能

- **set_xby_apikey** — 在聊天中设置 API 密钥(自动持久化,重启有效)
- **case_to_camel** — Convert text to camelCase
- **case_to_pascal** — Convert text to PascalCase
- **case_to_snake** — Convert text to snake_case
- **case_to_kebab** — Convert text to kebab-case
- **case_to_constant** — Convert text to CONSTANT_CASE
- **case_to_dot** — Convert text to dot.case
- **case_to_no** — Convert text to no case
- **case_to_pascal_snake** — Convert text to Pascal_Snake_Case
- **case_to_path** — Convert text to path/case
- **case_to_sentence** — Convert text to Sentence case
- **case_to_train** — Convert text to Train-Case
- **case_to_capital** — Convert text to Capital Case
- **encode_base64** — Encode text to Base64
- **decode_base64** — Decode Base64 to text
- **encode_url** — Encode text for URLs
- **decode_url** — Decode URL-encoded text
- **encode_html** — Encode HTML entities
- **decode_html** — Decode HTML entities
- **format_json** — Format and beautify JSON
- **format_xml** — Format and beautify XML
- **format_sql** — Format and beautify SQL
- **format_html** — Format and beautify HTML
- **count_characters** — Count characters in text
- **count_words** — Count words in text
- **count_lines** — Count lines in text
- **analyze_readability** — Calculate readability metrics
- **string_trim** — Trim whitespace from text
- **string_substring** — Extract a substring
- **string_replace** — Replace text
- **string_split** — Split text into an array
- **string_join** — Join an array into text
- **generate_uuid** — Generate a UUID
- **validate_uuid** — Validate a UUID
- **generate_md5** — Generate MD5 hash
- **generate_sha1** — Generate SHA-1 hash
- **generate_sha256** — Generate SHA-256 hash
- **generate_sha512** — Generate SHA-512 hash
- **generate_hmac** — Generate HMAC hash
- **generate_lorem_ipsum** — Generate lorem ipsum text
- **regex_test** — Test a regex pattern against text
- **regex_replace** — Replace text using a regex pattern
- **regex_extract** — Extract matches using a regex pattern
- **regex_split** — Split text using a regex pattern

## 安装

### 方式一:从 GitHub 直接安装(推荐)

```bash
# 格式: dsh plugin --profile <profile> add github:<owner>/<repo>
dsh plugin --profile web add github:xby_skill/xby-text-toolkit
```

### 方式二:从本地目录安装(开发模式)

```bash
# 仅用于本地开发调试
dsh plugin --profile web add /absolute/path/to/xby-text-toolkit
```

### 方式三:通过 cordis.patch.yml 开发调试

```bash
dsh web --profile web --patch /absolute/path/to/dsh-ocr-plugin/cordis.patch.yml
```



## 配置

### 获取 API 密钥

前往 [小笨羊官网](https://xiaobenyang.com) 注册并获取 API 密钥。

Install

dsh plugin --profile web add github:xby-skill/xby-text-toolkit#4b7caaabba4b080608bcd3683a4cf589530f93c6

Profile: web

  • This package builds from source on install. pnpm will ask you to allow its build script — that is permission to run the package’s code on your machine, outside the agent sandbox. Only allow sources you trust.
Source