yinzhou-mcp
一个基于MCP的Python项目,提供Bark通知等工具。
项目结构
yinzhou-mcp/
├── src/
│ ├── bark/ # Bark通知模块
│ │ ├── __init__.py
│ │ └── bark.py
│ └── yinzhou-mcp/ # 主模块
│ └── __init__.py
├── pyproject.toml # 项目配置文件
├── .gitignore # Git忽略文件
└── README.md # 项目说明文档
安装要求
- Python 3.11+
- uv - 快速Python包管理器
安装教程
1. 安装uv
# Windows (PowerShell)
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
# macOS 和 Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
2. 安装项目
# 从PyPI安装
uv add yinzhou-mcp
# 或从源码安装
uv sync
使用说明
Bark通知模块
配置Bark客户端
from yinzhou-mcp.bark import configure
# 配置Bark客户端
configure("http://yin520.cn:777", "your-device-key")
发送通知
from yinzhou-mcp.bark import send, send_simple, send_with_sound
# 发送普通通知
send("测试标题", "测试内容")
# 发送简单通知
send_simple("简单通知内容")
# 发送带声音的通知
send_with_sound("测试标题", "测试内容", "minuet")
其他通知类型
send_continuous_ring: 发送持续响铃的通知send_with_icon: 发送带有自定义图标的通知send_with_group: 发送带有分组名称的通知send_encrypted: 发送加密通知send_critical_alert: 发送带有自定义音量的重要警告send_with_url: 发送带有要打开的URL的通知send_with_image: 发送带有图片的通知send_with_copy: 发送带有要复制到剪贴板的文本的通知
开发
添加依赖
# 添加运行时依赖
uv add package-name
# 添加开发依赖
uv add --dev package-name
运行测试
# 使用uv运行测试
uv run pytest
# 或使用覆盖率
uv run pytest --cov=yinzhou-mcp
代码格式化
# 使用black格式化代码
uv run black src/
# 使用ruff检查代码
uv run ruff check src/
构建和发布
构建项目
# 构建分发包
uv build
发布到PyPI
# 发布到PyPI
uv publish
参与贡献
- Fork 本仓库
- 新建 Feat_xxx 分支
- 提交代码
- 新建 Pull Request
许可证
MIT License
Metadata
Release files for yinzhou-mcp 0.1.2
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 | Actions |
|---|---|---|---|---|
| yinzhou_mcp-0.1.2.tar.gz | 36.7 kB | Without provenance | Details for yinzhou_mcp-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| yinzhou_mcp-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for yinzhou_mcp-0.1.2-py3-none-any.whl |
Total release size: 43.5 kB
Release files / yinzhou_mcp-0.1.2.tar.gz
| Download URL | yinzhou_mcp-0.1.2.tar.gz |
|---|---|
| Size | 36.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
05af4d97f9c89f995eb825c8bc13f9f896871877c25296640224b75822ec4cd2
|
|
BLAKE2b-256 checksum How to use checksums |
ac79f801395d4e1d71471c51fa86c3f5ef83850de15f030278d35a269cf8fd5d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.0
|
Release files / yinzhou_mcp-0.1.2-py3-none-any.whl
| Download URL | yinzhou_mcp-0.1.2-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d39eee79d9cdb3ecfb8a002a15c5b2e315bfc9cbb232ab5c9432155e3fdc376a
|
|
BLAKE2b-256 checksum How to use checksums |
d7b3a98fb67980210a01b5043e6edadee0950465c52300ebcb788a8cb2bcf912
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.0
|
Security for yinzhou-mcp 0.1.2
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.