Novu MCP 实施
这是 Novu 的模型上下文协议 (MCP) 服务器的 TypeScript 实现,允许 AI 代理与 Novu 的通知基础设施进行交互。
设置
安装依赖项:
构建项目:
启动 MCP 服务器:
对于开发,您可以使用:
配置
MCP 服务器需要在smithery.yml
中配置 Novu API 密钥。您可以从 Novu 控制面板获取 API 密钥。
可用操作
MCP 服务器支持以下 Novu 操作:
活动
trigger_event
:向特定订阅者发送通知broadcast_event
:向所有订阅者发送通知cancel_triggered_event
:取消触发的通知
通知
get_notifications
:分页列出通知get_notification_stats
:获取通知统计信息
订阅者
get_subscribers
:分页列出订阅者create_subscriber
:创建一个新的订阅者update_subscriber
:更新订阅者详细信息delete_subscriber
:删除订阅者
主题
get_topics
:列出所有主题create_topic
:创建新主题delete_topic
:删除现有主题add_subscribers_to_topic
:向主题添加订阅者remove_subscribers_from_topic
:从主题中删除订阅者
示例用法
要触发通知:
要创建订阅者:
发展
源代码使用 TypeScript 编写,并遵循现代开发实践。主要实现位于src/index.ts
中,Novu 特定的逻辑位于src/novu-service.ts
中。
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
使 AI 代理能够与 Novu 的通知系统进行交互,从而促进发送通知、管理订阅者和组织主题等操作。
Related Resources
Related MCP Servers
- -securityAlicense-qualityProvides audio playback functionality for AI agents, allowing them to play notification sounds when coding tasks are completed.Last updated -1MIT License
- -securityAlicense-qualityEnables AI assistants to interact with New Relic monitoring and observability data through programmatic access to New Relic APIs. Supports APM management, NRQL queries, alert policies, synthetic monitoring, dashboards, infrastructure monitoring, and deployment tracking.Last updated -2MIT License
- AsecurityAlicenseAqualityEnables AI agents to interact with Notion workspaces through the Notion API. Supports reading, writing, commenting, and managing Notion pages and databases with optimized token consumption for AI agents.Last updated -1912,735MIT License
- AsecurityAlicenseAqualityEnables AI agents to interact with Notion workspaces through the Notion API. Supports reading, writing, and managing pages, databases, and comments with optimized token consumption.Last updated -1912,735MIT License