内容
mcphi-ecam
MCP 服务器本地网络控制 DeLonghi 系列自动意式咖啡机。
PI](https://img.shieldsypi/v/mcp-delonghi-ecam.svg)](https://pypi.org-delonghi-ecam/)
[](https://pypi.org/project/mcp-delonghi-ecamRuff](https://img/endpoint?url=https://.com/astral-sh/ruff/badge/v2.json)](https/astral-sh/rucp-name: io.github.daedalus/mcp-delonghi-ecam
## 概述
该 MCP 服务器通过本地网络 API 提供对 DeLonghi 系列自动意式咖啡控制。它使 LLM 能够机交互,以冲泡饮料、监控状态和管理机器设置。
## 支持
- DeLonghi EC550 系列
- DeLongica Plus
- DeLonghi PrimaDonna Soul
- 其他具有本地 LAN API 的 ECAM 系列机器
```bash
pipcp-delonghi-ecam## 使用
### 作为 MCP运行服务器:
```bashcp-delonghi-ecam
以编程方式运行:
```python
from mcp_delonghi_ecam import mcp
mcp.run()
```
### 可用工具
| 工具 | 描述 |
|------|-------------|
| `connect` | 连接处的咖啡机 |
|` | 从机器断开连接 |
|_status` | 获取当前机器| `brew_beverage`泡特定饮料 |
| `stop_brewing` | 冲泡 |
| `turn_on` | 打开机器 |
| `turn | 关闭机器 |
| `up_light` | 控制杯 |
| `set_cupmer` | 控制杯加热 `get_machine_info`机器序列号和型号 |
|_statistics` | 获取使用统计信息 |
| `list_beverages`出可用饮料 |
| `` | 获取饮料配方 |
```python
#
await connect("1921.100")
# 获取状态 = await get_status("# 冲泡意式result = await brew_beveragepresso", 40, "normal", "medium")
# 冲布奇诺
result =_beverage("cappucc 60, "strong", "high")
# 打开杯加热器
await set_cup_warmer(True)
```
## 配置
服务器通过以下方式连接到本地网络上的咖啡机:
- **默认端口**:10280
- **协议**:HTTP(本地 LAN API)
确保咖啡机与 MCP 服务器连接到同一个网络。
## 开发
```bash
git clone https://github.comedalus/mcp-delonghi.git
cd mcp-del-ecam
pip install -e ".[test] 运行测试
pytest
# 格式化
ruff format src/ 检查代码规范
ruff check src/ tests/
# 类型检查
myp/
```
## API 参考
### 饮料类型
- `es,`coffee`,_coffee`,`espresso`
- `d_plus`,`americano`cappuccino`
- `latte_macchiato`,ffe_latte`,`- `espresso_mac,`hot_milk`hot_water`,``chocolate`
###级别
- `extra_m,`mild`,`,`strong`,_strong`
### 温度设置
- `low`,``high`
## MIT 许可证 - 参见了解详情。
## 鸣协议信息基于以下反向:
- longshot()
- ECAMpy
onghi-coffee-link-python