Skip to main content
Glama
novuhq
by novuhq

Novu MCP 구현

이는 Novu를 위한 MCP(Model Context Protocol) 서버의 TypeScript 구현으로, AI 에이전트가 Novu의 알림 인프라와 상호 작용할 수 있도록 해줍니다.

설정

  1. 종속성 설치:

지엑스피1

  1. 프로젝트를 빌드하세요:

npm run build
  1. MCP 서버를 시작합니다.

npm start

개발을 위해 다음을 사용할 수 있습니다.

npm run dev

Related MCP server: New Relic MCP Server

구성

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 : 주제에서 구독자 제거

사용 예

알림을 트리거하려면:

{ "type": "execute", "payload": { "operation": "trigger_event", "params": { "name": "welcome-email", "to": "subscriber-id", "payload": { "name": "John Doe", "company": "Acme Inc" } } } }

구독자를 생성하려면:

{ "type": "execute", "payload": { "operation": "create_subscriber", "params": { "subscriberId": "unique-id", "email": "john@example.com", "firstName": "John", "lastName": "Doe" } } }

개발

소스 코드는 TypeScript로 작성되었으며 최신 개발 방식을 따릅니다. 주요 구현은 src/index.ts 에 있으며, Novu 전용 로직은 src/novu-service.ts 에 있습니다.

-
security - not tested
F
license - not found
-
quality - not tested

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/novuhq/smithery-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server