一款基于MCP(模型上下文协议)协议的智能宠物伴侣应用程序,通过语音识别和自然语言处理技术为宠物主人提供实时互动和服务。此应用程序是一个MCP客户端应用,能够自主无限地与MCP服务器结合以满足需求。
配合测试的mcp服务器开源地址:https://github.com/shijianzhong/mcp-server-for-pc 该MCP服务器主要用于操作个人电脑,如打开浏览器、应用程序、文件、播放音乐、发送电子邮件等。
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ │ │ │ │ │
│ 智能宠物应用 │────▶│ MCP客户端 │────▶│ MCP服务器 │
│ (Electron) │ │ │ │ │
│ │ │ │ │ │
└─────────────────┘ └─────────────────┘ └─────────────────┘
│ │ │
│ │ │
▼ ▼ ▼
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ │ │ │ │ │
│ FunASR引擎 │ │ AI模型 │ │ 文件系统 │
│ │ │ │ │ │
└─────────────────┘ └─────────────────┘ └─────────────────┘
git clone https://github.com/yourusername/smart-pet-with-mcp.git
cd smart-pet-with-mcp
pnpm install
pnpm start
# Windows
pnpm build:win
# macOS
pnpm build:mac
# Linux
pnpm build:linux
sudo docker pull registry.cn-hangzhou.aliyuncs.com/funasr_repo/funasr:funasr-runtime-sdk-online-cpu-0.1.12
mkdir -p ./funasr-runtime-resources/models
sudo docker run -p 10096:10095 -it --privileged=true \
-v $PWD/funasr-runtime-resources/models:/workspace/models \
registry.cn-hangzhou.aliyuncs.com/funasr_repo/funasr:funasr-runtime-sdk-online-cpu-0.1.12
cd FunASR/runtime
nohup bash run_server_2pass.sh \
--model-dir damo/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-onnx \
--online-model-dir damo/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-online-onnx \
--vad-dir damo/speech_fsmn_vad_zh-cn-16k-common-onnx \
--punc-dir damo/punc_ct-transformer_zh-cn-common-vad_realtime-vocab272727-onnx \
--lm-dir damo/speech_ngram_lm_zh-cn-ai-wesp-fst \
--itn-dir thuduj12/fst_itn_zh \
--certfile 0 \
--hotword ../../hotwords.txt > log.txt 2>&1 &
欢迎提交Issue和Pull Requests来帮助改进项目。提交前,请确保:
感谢以下赞助者的支持: