字母排序助手

字母排序助手

curl -X POST https://mate.tools/api/v1/sort-lines.php \

-H "Content-Type: application/json" \

-d '{"text":"banana\napple\ncherry","order":"asc"}' import urllib.request, json

req = urllib.request.Request(

"https://mate.tools/api/v1/sort-lines.php",

data=json.dumps({"text":"banana\napple\ncherry","order":"asc"}).encode(),

headers={"Content-Type": "application/json"},

)

with urllib.request.urlopen(req) as r:

print(json.load(r)) const r = await fetch("https://mate.tools/api/v1/sort-lines.php", {

method: "POST",

headers: { "Content-Type": "application/json" },

body: JSON.stringify({"text":"banana\napple\ncherry","order":"asc"}),

});

console.log(await r.json()); 添加到 claude_desktop_config.json(Claude Desktop)、~/.cursor/mcp.json(Cursor)或任何其他MCP兼容客户端:

{

"mcpServers": {

"mate-tools": {

"command": "npx",

"args": ["-y", "@mate-tools/mcp-server"]

}

}

}

相关探索