Skip to main content

MCP server that sends Feishu/Lark custom-bot notifications, intended for sensitive-operation audit alerts

Project description

feishu-notify-mcp

一个用于发送飞书(Lark)自定义机器人通知的 MCP server,主要用于敏感操作前的审计提醒。

安装

通过 uvx 直接运行(推荐):

uvx feishu-notify-mcp --webhook-url <你的 webhook> [--secret <secret>]

或先安装:

pip install feishu-notify-mcp

MCP 配置

~/.kiro/settings/mcp.json 或对应客户端的 MCP 配置文件中:

{
  "mcpServers": {
    "feishu-notify": {
      "command": "uvx",
      "args": ["feishu-notify-mcp"],
      "env": {
        "FEISHU_WEBHOOK_URL": "https://open.feishu.cn/open-apis/bot/v2/hook/xxxxxxxx",
        "FEISHU_SECRET": "your-secret-or-empty"
      },
      "disabled": false,
      "autoApprove": ["send_feishu_notification"]
    }
  }
}

如果机器人没有开启签名校验,可以不传 FEISHU_SECRET。也可以通过 args--webhook-url / --secret,CLI 参数优先级高于环境变量。

工具

  • send_feishu_notification(tool_name, operation_summary):发送一条文本通知,内容形如:

    ⚠️ Kiro 敏感操作通知
    操作: <tool_name>
    内容: <operation_summary>
    

飞书签名

签名算法:key = timestamp + "\n" + secret,对空字符串做 HMAC-SHA256,再做 Base64 编码。仅在配置了 secret 时启用。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_feishu_notify-0.1.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_feishu_notify-0.1.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file mcp_feishu_notify-0.1.0.tar.gz.

File metadata

  • Download URL: mcp_feishu_notify-0.1.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for mcp_feishu_notify-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6882118fc6add3e0a1af75c331a9d85a6c7f91f87b5c6fe135a999cc421d97c2
MD5 355dfd8e0862f39e4ad4e5563d87d241
BLAKE2b-256 1e195608b26bd35a88e5a3dfb42b4fc9e847150b80cf1558bee75b4b378e3b6f

See more details on using hashes here.

File details

Details for the file mcp_feishu_notify-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_feishu_notify-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5185a25e3d150fda4bbffb32fb45d0b41d9d9f38d938824ee0897f3b3e48e24e
MD5 fa1a025c1f1a866b4354511b4ddeee08
BLAKE2b-256 f5edb51620abb678f0f2b81a492ef585fa79016049d8713ea7e510477a38f7f7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page