MCP协议实践:用mcp-me构建本地AI工作流助手
2026/5/8 23:31:26
在许多拼写检查工具中,用户往往无法方便地添加个人拼写词典,导致一些正确的词汇反复被标记为错误。而这个spelldict脚本则解决了这个问题,允许用户轻松添加个人词典。
#!/bin/sh # spelldict - Uses the 'aspell' feature and some filtering to allow easy # command-line spell-checking of a given input file. # Inevitably you'll find that there are words it flags as wrong but # you think are fine. Simply save them in a file, one per line, and # ensure that the variable 'okaywords' points to that file. okaywords="$HOME/okaywords" tempout="/tmp/spell.tmp.$$" spell="aspell" # tweak as needed trap "/bin/rm -f $tempout" EXIT if [ -z "$1" ] ; then echo "Usage: spell file|URL" >&2; exit 1 elif [ ! -