消息推送服务 (MCP)
这是一个使用 FastMCP 框架构建的消息推送服务集合。它支持 Bark 和 PushDeer。
使用
这个包提供了两个主要命令:mcp-bark 和 mcp-pushdeer。你可以使用像 uvx 或 pipx 这样的工具来运行它们。
使用 uvx 的例子:
# 运行 Bark 服务
# 这将启动 Bark 通知的 MCP 服务器
uvx --from notification_mcp mcp-bark
# 运行 PushDeer 服务
# 这将启动 PushDeer 通知的 MCP 服务器
uvx --from notification_mcp mcp-pushdeer
一旦服务启动,你就可以使用 FastMCP 客户端或其他兼容方法来与工具(如 send_message)进行交互。
环境变量
在运行命令之前,请配置以下环境变量:
对于 Bark (mcp-bark):
BARK_DEVICE_KEYS: 必需。逗号分隔的 Bark 设备密钥列表(例如key1,key2)。BARK_SERVER: 可选。自建 Bark 服务器 URL,默认为https://api.day.app。
对于 PushDeer (mcp-pushdeer):
PUSHDEER_KEYS: 必需。逗号分隔的 PushDeer 密钥列表(例如keyA,keyB)。PUSHDEER_SERVER: 可选。自建 PushDeer 服务器 URL,默认为https://api2.pushdeer.com。
功能
Bark 服务 (mcp-bark)
提供以下工具:
send_message(title: str, content: str) -> str: 向所有配置的 Bark 设备发送带有指定标题和内容的通知。
PushDeer 服务 (mcp-pushdeer)
提供以下工具:
send_message(text: str, desp: Optional[str] = None, type: str = 'text', pushkey: Optional[str] = None) -> str: 发送消息。type可以是 'text'、'markdown' 或 'image'(其中text是图像 URL)。send_markdown(markdown: str, desp: Optional[str] = None, pushkey: Optional[str] = None) -> str: 一个发送 Markdown 消息的便捷工具。send_image(image_url: str, desp: Optional[str] = None, pushkey: Optional[str] = None) -> str: 一个通过 URL 发送图像消息的便捷工具。
许可
MIT
Metadata
Release files for notification-mcp 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| notification_mcp-0.1.3.tar.gz | 3.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| notification_mcp-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.1 kB
Release files / notification_mcp-0.1.3.tar.gz
| Download URL | notification_mcp-0.1.3.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
59b8a1077928638f0de4802b70fa869fa5f6ec5086229065125b160280b4ce82
|
|
BLAKE2b-256 checksum How to use checksums |
afae111838d293d0e8676e3b81166e2ffb62dffba311c709b58fad8800b9b581
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.4
|
Release files / notification_mcp-0.1.3-py3-none-any.whl
| Download URL | notification_mcp-0.1.3-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
28ac203d809a6d454484863fc13c9928310f12834d0d297870b259f2f960bf9f
|
|
BLAKE2b-256 checksum How to use checksums |
29725805ef65cfe3abed1d8c6ced4969a9e9700b50853d2b94bed5565f12e1aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.4
|
Security for notification-mcp 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.