语音-over-IP 模型上下文协议 (VoIP MCP) 服务器是一款强大的工具,可管理和执行与语音-over-IP 相关的任务。它通过模型上下文协议与外部系统通信,支持呼叫管理、代理管理等多种功能。
语音-over-IP 模型上下文协议 (VoIP MCP) 服务器是用于管理和执行与语音-over-IP 相关任务的工具。它通过模型上下文协议与外部系统通信,支持多种功能模块。
pip install -r requirements.txt
python server.py
FROM python:3.9-slim
WORKDIR /app
COPY . .
RUN pip install --no-cache-dir -r requirements.txt
EXPOSE 5000
CMD ["python", "server.py"]
docker build -t voip-mcp-server .
docker run -p 5000:5000 voip-mcp-server
{
"name": "make_call",
"arguments": {
"phone_number": "+1234567890"
}
}
{
"name": "answer_call",
"arguments": {}
}
# 基本启动
python server.py
# 带配置文件的启动
python server.py --config config.json
docker exec -it voip-mcp-container python server.py
每个工具都带有元数据标签,包括但不限于:
服务器内置全面的错误处理机制,包括但不限于:
list_tools() 函数中注册新工具。运行测试套件:
pytest tests/
本项目遵循 MIT 协议,具体内容如下:
MIT License
Copyright (c) [年份] [作者姓名]
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
⚠️ 重要提示
本文档内容仅供参考,作者不对因使用本软件而产生的任何直接、间接、附带、特殊、示范性或后果性的损害承担责任。请在使用前仔细阅读相关法律条款。