字符索引字符串处理工具
可用工具 (12 个)
该服务在 MCP 协议中暴露的工具,AI 可按需调用
find_nth_char 3 个参数 需填 2 项
必填参数:text、char
find_all_char_indices 2 个参数 需填 2 项
必填参数:text、char
find_nth_substring 3 个参数 需填 2 项
必填参数:text、substring
find_all_substring_indices 2 个参数 需填 2 项
必填参数:text、substring
split_at_indices 2 个参数 需填 2 项
必填参数:text、indices
insert_at_index 3 个参数 需填 3 项
必填参数:text、index、insertion
delete_range 3 个参数 需填 3 项
必填参数:text、start、end
replace_range 4 个参数 需填 4 项
必填参数:text、start、end、replacement
find_regex_matches 2 个参数 需填 2 项
必填参数:text、pattern
extract_between_markers 4 个参数 需填 3 项
必填参数:text、start_marker、end_marker
count_chars 1 个参数 需填 1 项
必填参数:text
extract_substrings 2 个参数 需填 2 项
必填参数:text、ranges
服务介绍
字符索引字符串处理工具 char-index
一个基于字符索引的字符串操作协议服务器,适用于需要精确字符定位的测试代码生成和数据处理场景。
null## 工具列表 Tool List
本MCP服务封装下列工具,可让模型通过标准化接口调用以下功能。 本MCP服务封装下列工具,可让模型通过标准化接口调用以下功能。
| 工具 Tool | 描述 Description |
|---|---|
| find_nth_char | Find index of nth occurrence of a character. Returns -1 if not found. |
| find_all_char_indices | Find all indices where a character appears. Returns empty list if not found. |
| find_nth_substring | Find starting index of nth occurrence of a substring. Returns -1 if not found. |
| find_all_substring_indices | Find all starting indices where a substring appears (includes overlaps). |
| split_at_indices | Split text at exact index positions. Indices auto-sorted and deduplicated. |
| insert_at_index | Insert text at index position without replacing. Supports negative indices. |
| delete_range | Delete characters in range [start, end). |
| replace_range | Replace characters in range [start, end) with new text. |
| find_regex_matches | Find all regex matches with positions. Returns list of {start, end, match} dicts. |
| extract_between_markers | Extract content between markers with positions. Returns dict with content and position info. |
| count_chars | Count character statistics. Returns dict with total, without_spaces, letters, digits, spaces, special. |
| extract_substrings | Extract substrings by index ranges. Supports negative indices and omitting end. Returns list of {start, end, substring, length} dicts. |
检查服务 ## Inspector
工具在线测试: https://mcp.xiaobenyang.com/inspector/1777419060716547
Online Tool test https://mcp.xiaobenyang.com/inspector/1777419060716547
服务配置 MCP Server Config
如何获取 XBY-APIKEY ? How to get XBY-APIKEY ?
访问小笨羊科技网站 https://xiaobenyang.com,注册用户即可获得APIKEY
Visit XiaoBenYang website https://xiaobenyang.com, register and get the APIKEY.
SSE
{
"mcpServers": {
"字符索引字符串处理工具": {
"headers": {
"XBY-APIKEY": "<YOUR_XBY_APIKEY>"
},
"type": "sse",
"url": "https://mcp.xiaobenyang.com/1777419060716547/sse"
}
}
}
STREAMABLE HTTP
{
"mcpServers": {
"字符索引字符串处理工具": {
"headers": {
"XBY-APIKEY": "<YOUR_XBY_APIKEY>"
},
"type": "streamable_http",
"url": "https://mcp.xiaobenyang.com/1777419060716547/mcp"
}
}
}
STDIO
{
"mcpServers": {
"字符索引字符串处理工具": {
"command": "npx",
"args": [
"-y",
"xiaobenyang-mcp"
],
"env": {
"XBY_APIKEY": "<YOUR_XBY_APIKEY>",
"mcpId": "1777419060716547",
},
"transport": "stdio"
}
}
}