PubNub MCP Server

커서 IDE용 PubNub 모델 컨텍스트 프로토콜(MCP) 서버
이 저장소는 PubNub SDK 문서와 PubNub API 리소스를 LLM 기반 도구에 노출하는 CLI 기반 모델 컨텍스트 프로토콜(MCP) 서버를 제공합니다. 이를 통해 LLM AI 에이전트가 PubNub SDK 및 API를 이해하고 상호 작용하는 능력이 향상됩니다.

특징
STDIN/STDOUT을 통한 JSON-RPC를 통해 PubNub과 상호작용하기 위한 도구를 제공하는 MCP 서버입니다.
PubNub SDK 공식 문서(HTML → Markdown)를 검색하세요:
언어: JavaScript, Python, Java, Go, Ruby, Swift, Objective-C, C#, PHP, Rust, Unity, Kotlin, Unreal.
API 참조 섹션: 구성, 게시 및 구독, 상태, 액세스 관리자, 채널 그룹, 저장소 및 재생, 모바일 푸시, 객체, 파일, 메시지 작업, 기타, 함수.
resources마크다운 파일(예:pubnub_concepts,pubnub_features,pubnub_security,how_to_send_receive_json,how_to_encrypt_messages_files등)에서 PubNub 개념 가이드와 방법 문서를 가져옵니다.publish_pubnub_message사용하여 PubNub 채널에 메시지를 게시하고 timetoken을 반환합니다.get_pubnub_messages사용하여 하나 이상의 채널에서 과거 메시지를 가져와서 JSON 형식으로 메시지 내용과 메타데이터를 반환합니다.get_pubnub_presence사용하여 채널 및 채널 그룹의 실시간 존재 정보(점유 수, 구독자 UUID)를 검색합니다.write_pubnub_app사용하여 여러 언어로 PubNub SDK를 초기화하기 위한 코드 조각을 포함하여 PubNub 애플리케이션을 만드는 단계별 지침을 생성합니다.환경 변수 구성: SDK 작업 인증을 위해
PUBNUB_PUBLISH_KEY및PUBNUB_SUBSCRIBE_KEY지원합니다.jsdom과turndown사용하여 원격 HTML 문서를 Markdown으로 변환하여 일관된 문서 형식을 유지합니다.모든 도구 매개변수에 대해 Zod 스키마를 통한 입력 검증을 통해 강력한 오류 처리를 보장합니다.
McpServer및StdioServerTransport와 함께 Model Context Protocol SDK(@modelcontextprotocol/sdk)를 활용한 확장 가능한 도구 정의.
Related MCP server: MCP Documentation Server
예시 프롬프트
"PubNub에서 다중 사용자 채팅 기능을 내장하고, 사용자가 스트리밍 비디오를 시청할 수 있는 PubNub 앱을 작성하세요."
"지도가 포함된 주문형 식료품 배달 서비스를 제공하는 PubNub 앱을 작성하세요."
"실시간으로 패키지의 위치를 추적하는 PubNub 앱을 작성하세요."
"실시간으로 날씨 예보를 보여주는 PubNub 앱을 작성하세요."
"친구와 함께 멀티플레이어 게임을 즐길 수 있는 PubNub 앱을 작성하세요."
"실시간 주가와 뉴스 업데이트를 보여주는 PubNub 앱을 작성하세요."
"사용자가 플레이리스트를 만들어 친구들과 공유할 수 있는 PubNub 앱을 작성하세요."
"
my_channel채널을 구독하고 콘솔에 메시지를 기록하는 PubNub JavaScript 앱을 빌드하세요.""
Hello, PubNub!라는 메시지와 함께my_channel채널에 메시지를 게시하세요.""
subscribe()에 대한 PubNub JavaScript SDK 설명서를 보여주세요.""사용 가능한 PubNub 함수를 모두 나열하세요."
"
publish()메서드에 대한 Python SDK 문서를 가져옵니다.""
test채널의 메시지 기록을 가져옵니다."test채널과default채널 그룹에 대한 상태 정보(점유 및 UUID)를 검색합니다.
이 작업에는 Node.js(>= 18)와 npm( https://nodejs.org/ )이 필요합니다. npx 자동으로 최신 MCP 서버를 가져와서 실행합니다.
필수 조건
Node.js(>= 18) 및 npm
MCP를 지원하는 커서 IDE
(선택 사항) 라이브 예제를 위한 PubNub 계정 및 API 키
설치
PubNub MCP 서버를 로컬에서 실행하거나 npx를 통해 Cursor IDE에 추가하는 가장 좋은 방법은 다음과 같습니다.
지엑스피1
구성
MCP 서버를 사용하려면 커서가 에이전트 모드에 있어야 합니다.
커서 IDE는 JSON 구성 파일을 통해 MCP 서버를 검색합니다. PubNub MCP 서버를 전역 또는 프로젝트별로 구성하세요.
글로벌 구성
~/.cursor/mcp.json 편집하거나 생성합니다.
{
"mcpServers": {
"pubnub": {
"command": "npx",
"args": ["-y", "@pubnub/mcp"],
"env": {
"PUBNUB_PUBLISH_KEY": "YOUR_PUBLISH_KEY",
"PUBNUB_SUBSCRIBE_KEY": "YOUR_SUBSCRIBE_KEY"
}
}
}
}프로젝트 구성
프로젝트 디렉토리에 .cursor/mcp.json 만듭니다.
{
"mcpServers": {
"pubnub": {
"command": "npx",
"args": ["-y", "@pubnub/mcp"],
"env": {
"PUBNUB_PUBLISH_KEY": "YOUR_PUBLISH_KEY",
"PUBNUB_SUBSCRIBE_KEY": "YOUR_SUBSCRIBE_KEY"
}
}
}
}Docker 기반 구성
Docker를 통해 MCP 서버를 실행하려면 PubNub 키를 환경 변수로 설정하세요.
export PUBNUB_PUBLISH_KEY=YOUR_PUBLISH_KEY
export PUBNUB_SUBSCRIBE_KEY=YOUR_SUBSCRIBE_KEY그런 다음 ~/.cursor/mcp.json (또는 프로젝트에서 .cursor/mcp.json )을 구성합니다.
{
"mcpServers": {
"pubnub": {
"command": "docker",
"args": [
"run",
"-i",
"-e",
"PUBNUB_PUBLISH_KEY",
"-e",
"PUBNUB_SUBSCRIBE_KEY",
"pubnub/pubnub-mcp-server"
]
}
}
}commandMCP 서버를 시작하기 위한 실행 파일을 지정합니다.args명령에 전달할 인수를 지정합니다.env서버 프로세스에 대한 환경 변수를 설정합니다.
커서 IDE에서 사용
커서 IDE를 다시 시작하거나 새로운 세션을 엽니다.
MCP 설정 창을 열고 pubnub 서버가 사용 가능한 도구 및 리소스 에 나열되어 있는지 확인하세요.
채팅에서 사용 가능한 리소스를 호출합니다.
pubnub://docs/javascript— PubNub JavaScript SDK 설명서 가져오기pubnub://docs/python— PubNub Python SDK 문서 가져오기pubnub://docs/java— PubNub Java SDK 문서 가져오기pubnub://functions— PubNub 함수 목록(resources/pubnub_functions.md의 정적 콘텐츠)
메시지가 표시되면 리소스 실행을 승인하거나 신뢰할 수 있는 리소스에 대한 설정에서 자동 실행을 활성화합니다.
클로드 코드
## Install the MCP server if you have node >= 18
claude mcp add pubnub -e PUBNUB_PUBLISH_KEY=your_publish_key -e PUBNUB_SUBSCRIBE_KEY=your_subscribe_key -- npx -y @pubnub/mcp
## Install the MCP server if you have node < 18 and need to point to the full path of node
claude mcp add pubnub -e PUBNUB_PUBLISH_KEY=your_publish_key -e PUBNUB_SUBSCRIBE_KEY=your_subscribe_key -- /Users/stephen/.nvm/versions/node/v22.14.0/bin/node /Users/stephen/Projects/mcp-pubnub/index.js
## Install the MCP server using Docker
# Ensure your PubNub keys are set as environment variables:
export PUBNUB_PUBLISH_KEY=your_publish_key
export PUBNUB_SUBSCRIBE_KEY=your_subscribe_key
# Depending on your machine’s CPU architecture, you may need to specify the target platform.
# For example:
# docker run --platform linux/arm64 -i pubnub/pubnub-mcp-server
# docker run --platform linux/amd64 -i pubnub/pubnub-mcp-server
claude mcp add pubnub -- docker run -i \
-e PUBNUB_PUBLISH_KEY=$PUBNUB_PUBLISH_KEY \
-e PUBNUB_SUBSCRIBE_KEY=$PUBNUB_SUBSCRIBE_KEY \
pubnub/pubnub-mcp-server출력은 다음과 같습니다.
Added stdio MCP server pubnub with command: npx -y @pubnub/mcp to local config예시 프롬프트
claude "publish a message 'hi' to the 'my_channel' pubnub channel."claude "publish a message 'hi' to the 'my_channel' pubnub channel."
╭───────────────────────────────────────────────────╮
│ ✻ Welcome to Claude Code research preview! │
│ │
│ /help for help, /status for your current setup │
│ │
│ cwd: /Users/stephen/Projects/mcp-pubnub │
╰───────────────────────────────────────────────────╯
※ Tip: Press Option+Enter to send a multi-line message
> publish a message 'hi' to the 'my_channel' pubnub channel.
⏺ I'll publish a message to the PubNub channel for you.
⏺ pubnub:publish_pubnub_message (MCP)(channel: "my_channel", message: "hi")…
⎿ Message published successfully. Timetoken: 17467422499409217
⏺ Message published successfully to "my_channel".다음을 사용하여 MCP 서버를 제거합니다.
claude mcp remove pubnubClaude Desktop 사용
Claude Desktop에서 Docker 기반 MCP 서버를 선호하는 경우:
PubNub 키가 셸로 내보내졌는지 확인하세요.
export PUBNUB_PUBLISH_KEY=your_publish_key export PUBNUB_SUBSCRIBE_KEY=your_subscribe_keyClaude Desktop의 도구 섹션에서 pubnub 이라는 이름의 새 도구를 추가합니다.
명령을
docker로 설정합니다.인수 설정:
[ "run", "-i", "-e", "PUBNUB_PUBLISH_KEY", "-e", "PUBNUB_SUBSCRIBE_KEY", "pubnub/pubnub-mcp-server" ]
참고: 일부 머신(예: Apple Silicon)에서는 Docker 플랫폼을 지정해야 할 수 있습니다. Arguments 배열의
"run"바로 뒤에--platform linux/arm64(또는--platform linux/amd64)를 삽입하세요. 예:[ "run", "--platform", "linux/arm64", "-i", "-e", "PUBNUB_PUBLISH_KEY", "-e", "PUBNUB_SUBSCRIBE_KEY", "pubnub/pubnub-mcp-server" ]
구성을 저장합니다.
Claude Desktop은 Docker를 통해 PubNub MCP 서버 컨테이너를 호출합니다.
특허
이 프로젝트는 MIT 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 라이선스 파일을 참조하세요.
문제 해결
MCP 서버를 사용하려면 에이전트 모드에 있어야 합니다.
Node.js와 npm 설치를 확인하세요.
index.js에 실행 권한이 있는지 확인하세요.command,args,env설정이 올바른지 확인하세요.MCP 시작 오류를 확인하려면 Cursor IDE 로그를 검토하세요.
직접 JSON-RPC 명령줄 사용
JSON-RPC v2.0을 사용하여 STDIN/STDOUT을 통해 MCP 서버를 직접 호출할 수 있습니다. PubNub 키가 환경에 설정되어 있는지 확인하세요. 예:
PUBNUB_PUBLISH_KEY=YOUR_PUBLISH_KEY \
PUBNUB_SUBSCRIBE_KEY=YOUR_SUBSCRIBE_KEY \
node index.js서버가 실행 중이거나 일회성 호출을 사용하는 경우 JSON을 node index.js 로 파이프하여 요청을 보냅니다. 예:
# 1) List available tools
echo '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}' \
| node index.js
# 2) Read PubNub JavaScript SDK documentation
echo '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":
{"name":"read_pubnub_sdk_docs","arguments":{"language":"javascript"}}}' \
| node index.js
# 3) Read PubNub Functions Resource docs (static Markdown)
echo '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"read_pubnub_resources","arguments":{"document":"pubnub_functions"}}}' \
| node index.js
빠른 JSON-RPC 예제
아래는 STDIN/STDOUT을 사용하여 PubNub SDK 문서를 가져오고 메시지를 게시하는 간소화된 JSON-RPC v2.0 명령줄 예제입니다.
1) PubNub JavaScript SDK 문서 가져오기
echo '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"read_pubnub_sdk_docs","arguments":{"language":"javascript"}}}' | node index.js2) PubNub 채널에 메시지 게시
PUBNUB_PUBLISH_KEY=demo \
PUBNUB_SUBSCRIBE_KEY=demo \
echo '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"publish_pubnub_message","arguments":{"channel":"my_channel","message":"Hello, PubNub MCP JSON-RPC!"}}}' \
| node index.jsAvailable Tools
16 toolsget_chat_sdk_documentationGet PubNub Chat SDK DocumentationA
Retrieve Chat SDK documentation for building chat/messaging applications.
**When to use:**
- Building ANY chat or messaging application (1:1, group, channels)
- Need typing indicators, read receipts, @mentions, unread counts
- Want message threads, reactions, pinned messages, moderation
- Need user/channel management with chat-specific features
- Prefer rapid development with intuitive methods like sendText(), startTyping(), join()
**Do NOT use for:**
- Non-chat real-time apps (IoT, gaming state, analytics) → use "get_sdk_documentation"
- Conceptual guides → use "how_to"
**Example features:**
- messages-send-receive, messages-threads, messages-reactions
- channels-create, channels-join, channels-typing-indicator
- users-mentions, users-presence
Returns code examples and API references for the specified language/feature.Inputs: language (required), feature (required).
get_general_migration_guideGet PubNub General Migration GuideA
Retrieve general migration guides for cross-cutting PubNub platform changes.
**When to use:**
- Migrating to a new encryption standard (e.g. 256-bit encryption)
- Upgrading push notification setup (e.g. APNs HTTP/2, FCM v1)
- Migrating to new API versions (e.g. Access Manager v3, Objects v2)
- Replacing deprecated features (e.g. legacy webhooks)
**Do NOT use for:**
- SDK version upgrades (e.g. JavaScript v7→v8) → use "get_sdk_migration_guide"
- General SDK documentation → use "get_sdk_documentation"
Returns the migration guide content for the specified slug.Inputs: slug (required).
get_pubnub_messagesGet PubNub Channel HistoryA
Fetches historical messages from one or more PubNub channels. Call this tool whenever you need to access past message history. Provide a list of channel names. Returns message content and metadata in JSON format. Supports pagination with start/end timetokens and count limit.
Inputs: channels (required), publishKey (required), subscribeKey (required), start, +2 more.
get_pubnub_presenceGet Presence Data (HereNow / WhereNow)B
Retrieves real-time presence information. Use 'channels'/'channelGroups' for HereNow (occupancy/users in channel) and/or 'uuid' for WhereNow (channels a user is in). Returns presence data in JSON format. Requires publish and subscribe keys from your PubNub keyset.
Inputs: publishKey (required), subscribeKey (required), channels, channelGroups, +1 more.
get_sdk_documentationGet PubNub Core SDK DocumentationA
Retrieve Core SDK documentation for low-level real-time features.
**When to use:**
- Building NON-CHAT real-time apps (IoT, gaming state sync, live analytics, notifications)
- Need fine-grained control over pub/sub, presence, storage, or access management
- Implementing custom real-time patterns
- Need API reference for specific SDK methods (publish, subscribe, history, etc.)
**Do NOT use for:**
- Chat/messaging apps → use "get_chat_sdk_documentation" instead
- Conceptual guides → use "how_to"
Returns code examples, API references, and implementation guides for the specified language/feature combination.Inputs: language (required), feature (required).
get_sdk_migration_guideGet PubNub SDK Migration GuideA
Retrieve SDK migration guides for upgrading between PubNub SDK versions.
**When to use:**
- Upgrading a PubNub SDK to a newer major version
- Need step-by-step instructions for migrating breaking changes
- Refactoring a codebase after a PubNub SDK version bump
**Do NOT use for:**
- General SDK documentation → use "get_sdk_documentation"
- Chat SDK documentation → use "get_chat_sdk_documentation"
Returns the migration guide content for the specified language and target version.Inputs: language (required), version (required).
get_usage_metricsGet PubNub Usage MetricsB
Fetches usage metrics from the PubNub Admin API for an account, app, or keyset.
**Parameters:**
- entityType: 'account', 'app', or 'keyset'
- entityId: The ID of the entity
- from: Start date (inclusive) in YYYY-MM-DD format
- to: End date (exclusive) in YYYY-MM-DD format
- metrics: Array of metric names to retrieve
**Available Metric Categories:**
- Core transactions: txn_total, mtd_txn_total, replicated, signals, edge
- MAU/UUID: mtd_uuid, uuid, pn_uuid
- Messages: msgs_total, publish, subscribe_msgs, history_msgs, files_msgs, push_msgs
- Storage: bytes_stored, bytes_stored_messages, bytes_stored_files, etc.
- Access Manager: accessmanager_grants_transactions, accessmanager_audits_transactions
- Functions: executions, kv_read_transactions, kv_write_transactions
- History: history_transactions, history_with_actions_transactions
- Message Actions: message_actions_add_transactions, message_actions_get_transactions
- Objects/App Context: objects_create_user_transactions, objects_get_user_transactions, etc.
- Presence: presence_herenow_transactions, presence_wherenow_transactions
- Push Notifications: apns_sent_transactions, gcm_sent_transactions
- Subscribe: subscribe_transactions, subscribe_heartbeats_transactions
- Publish: publish_transactions, publish_bytes
- Signal: signal_transactions
- Files: files_publish_transactions, files_get_file_transactionsInputs: entityType (required), entityId (required), from (required), to (required), +1 more.
how_toGet PubNub How-To GuideA
Retrieve conceptual guides for specific PubNub use cases and integrations. When to use: - Learning how to implement a specific use case (gaming, healthcare, IoT) - Need step-by-step integration guide for a platform (Unity, Unreal etc) - Understanding PubNub features in context (presence, push notifications, functions)
**Do NOT use for:**
- API reference or code samples of a specific PubNub features → use `get_sdk_documentation` or `get_chat_sdk_documentation`
- General best practices → use `write_pubnub_app`
Inputs: slug (required).
insightsQuery PubNub InsightsA
Queries PubNub Insights — read-only aggregated analytics scoped to an account, app, or keyset.
**Entity scoping:** Every query requires an entityType ('account', 'app', or 'keyset') and
an entityId. For 'account' and 'app', the entityId is the numeric ID. For 'keyset', the
entityId is the subscribe key (sub-c-...).
Two endpoints, picked automatically by metric name:
- /v2/insights → aggregated metrics (unique_channels, unique_users, messages, etc.)
- /v2/insights/top → ranked metrics (top_20_channels, top_20_users, top_10_message_types, etc.)
TOOL SELECTION GUIDE — Insights Claude Behavior:
1. Group-aware: Insights metrics are organized into 5 functional groups — Channels, Users,
Messages, User Behavior, Devices. When a user asks an analytic question, pick the right
group first and then the specific metric. See the how-to guides:
how_to(slug="how-to-get-insights-api-access"), channels, users, messages,
user-behavior-and-devices, filters.
2. Period rules (enforced at runtime):
- Duration metrics (avg_user_duration, unique_users_by_duration_timeframe,
top_*_channels_with_user_duration) → period=hourly ONLY.
- Top-N metrics (top_20_*, top_1000_*) → hourly or daily ONLY (no weekly/monthly).
- Country metrics → hourly or daily ONLY.
- new_vs_recurring_users → daily / weekly / monthly only (NOT hourly).
- All other metrics → all four periods supported.
3. Top metrics REQUIRE category. Without it, the call errors. Valid categories:
by_messages, by_chats, by_subscribers, by_users_with_messages,
by_users_with_chats, by_subscribed_channels, all.
4. Top-metric filtering uses `filters` (JSON), not `filter`. Use `filters` on
top_20_* / top_1000_* for thresholds (count_messages gt), allowlists (channel_name
in), and prefixes (uuid startsWith). Use `filter` only on channel_patterns.
5. UTC timestamps. fromDate and toDate are YYYY-MM-DD in UTC. Always frame the response
with the date range and timezone so the user has unambiguous context.
6. Top-N counts CANNOT be summed across periods. If the user asks for "top channels this
week" and you query with period=daily, return one ranking per day, not a weekly sum.
7. Default to period=daily for most queries. It supports the widest set of metrics and
gives a clean trend view. Use hourly only when intra-day granularity is needed or for
duration metrics.
8. Account must be on Insights Premium. Free plan has no API access. Pro existing
customers may need to upgrade from Standard to Premium. If a 403 comes back, surface
this as the likely cause.
9. The tool does not write or store anything. Insights is strictly read-only.
Inputs: entityType (required), entityId (required), metric (required), period (required), +7 more.
manage_app_contextManage PubNub App ContextA
Manages PubNub App Context (Objects API) for users, channels, and memberships. Supports CRUD operations including get, set, remove, and getAll. Use this tool to manage user profiles, channel metadata, and membership relationships in your PubNub application.
Inputs: type (required), operation (required), id (required), publishKey (required), +3 more.
manage_appsManage PubNub AppA
Manages PubNub apps with operations: list, create, update. - 'list': List all apps on your account. - 'create': Create a new app. User must provide data.name. - 'update': Update an existing app name. User must provide data.id and data.name.
Inputs: operation (required), data.
manage_illuminateManage PubNub IlluminateA
Manages PubNub Illuminate resources with operations: list, get, create, update, delete, activate, deactivate, get-fields, execute-adhoc, publish-fake-data, verify-query, check-action-log, raw-snapshot, aggregate, field-health, and custom-query.
Supports full CRUD for: Business Objects, Metrics, Queries, Decisions, and Dashboards.
**Operations:**
- list: GET all resources of a given type
- get: GET one resource by id
- create: POST a new resource (Decisions use automatic 2-step POST→PUT workflow)
- update: PUT/replace a resource
- delete: DELETE a resource (Business Object delete cascades to all associated resources)
- activate / deactivate: toggle isActive (Business Object) or enabled (Decision)
- get-fields: fetch Query output field definitions (required before building a Query Decision)
- execute-adhoc: run a one-off Query pipeline without saving it
- publish-fake-data: generate type-aware fake PubNub messages and publish them to test Decisions. Fetches BO field schema and produces realistic values per field type. Payloads are NESTED to match each field's JSONPath (e.g. `$.message.body.application.user_id` produces `{ application: { user_id: ... } }`, not the flat key `"application.user_id"`), so JSONPath resolution works against nested BO schemas. Pass secret_key when the keyset has Access Manager enabled — initializing with the secret key grants root permissions and bypasses 403 errors. Alternatively pass auth_key with a token from grantToken(). Failures are reported per-message; partial publishes return success with a 'failures' array. NOTE: Illuminate ingests with a 20–30 second delay — wait before querying after publish.
- verify-query: execute a saved Query by id and return results (confirms data is flowing)
- check-action-log: fetch recent Decision action log entries to verify a Decision fired
- raw-snapshot: return the most recent rows from a Business Object via ad-hoc query
- aggregate: group and count BO data by user/channel or custom group_by fields
- field-health: check which BO fields are populated vs empty (reveals JSONPath mismatches)
- custom-query: run a fully custom ad-hoc pipeline
**ID Dependency Chain — always capture before proceeding:**
Business Object → id, fields[*].id
Metric → id, measureId, dimensionIds
Query → id, then call get-fields for output field IDs
Decision → id, inputFields[*].id, outputFields[*].id, actions[*].id
Dashboard → id, charts[*].id
**Critical Decision rules:**
hitType ('SINGLE'|'MATCH_ALL') and executeOnce (boolean) are required — omitting causes HTTP 500.
Handler auto-injects safe defaults (hitType=SINGLE, executeOnce=false, activeFrom=now, activeUntil=now+2yr).
The 2-step create workflow resolves field/action names → UUIDs in: action templates
(both output variable names AND input field names — input names are sentinel-substituted
pre-POST and restored post-POST), inputValues.inputFieldId, outputValues.outputFieldId,
outputValues.value (dollar-brace), actionValues.actionId, and
actionValues.executionLimitInputFieldIds. Use names everywhere.
If the PUT step fails the handler deletes the orphaned scaffold automatically.
**CRITICAL — QUERY decision input field naming:**
For sourceType=QUERY decisions, each inputField.name MUST exactly match the source
query's output field alias (case-sensitive, including underscores). Illuminate binds
query result rows to decision inputs by NAME — not by sourceId. If names don't match,
the decision will be created and activated successfully but will silently NEVER fire
even with valid data. Always run get-fields on the source query first and copy the
'field' values verbatim into your decision's inputFields[].name.
**Business Object limits (handler pre-flights and rejects on violation):**
- name: 1-100 characters
- fields[].name: 1-50 characters
- max 100 fields per BO
- **max 5 TEXT_LONG fields per BO** (use TEXT, which holds 256 chars, for shorter strings)
- keep `description` concise — overly long descriptions are rejected with HTTP 400 by the API
**Decision action default:**
When the user doesn't specify what action to fire, default to actionType='PUBNUB_PUBLISH'
with a message body that includes the relevant input/output values via dollar-brace
template references. PUBNUB_PUBLISH requires no external infrastructure and is trivially
verifiable via check-action-log or by subscribing to the target channel. Only use WEBHOOK
when the user has provided a specific URL.
NEVER delete without explicit user confirmation.
TOOL SELECTION GUIDE — Illuminate Claude Behavior:
1. Intent-first: Always start from the user's desired outcome. Ask what they want
to achieve before suggesting Business Objects, Metrics, or Decisions.
2. Preview-first: Before creating any resources, describe automation in 1-2 sentences
and show a conditions → actions decision table. Ask for confirmation before building.
3. Predefined templates: For spam (flooding/cross-posting) and ranking (Top N/Bottom N),
use the Query Builder predefined templates. Never recreate these from scratch.
4. Built-in BO fields: For chat/moderation/ranking, User/Channel/Message/Message Type
are auto-created. Never ask users to define them.
5. Start simple: Minimal decision for the core goal; add complexity only when requested.
6. PubNub extension: For delayed checks, scheduling, or orchestration beyond Illuminate,
suggest PubNub Functions or pub/sub as the first extension path.Inputs: operation (required), resource, id, data, +14 more.
manage_keysetsManage PubNub KeysetA
Manages PubNub keysets with operations: get, list, create, update. - 'get': Get a specific keyset information. User needs to provide the keyset id. - 'list': List all keysets for your account or a specific app. - 'create': Create a new keyset. New keyset is created with Message Persistence, App Context, Files, and Presence enabled by default; the user must provide name, production, and config with nested objects (messagePersistence, appContext, files, presence), and if any required parameter is missing, you must ask the user to provide it. - 'update': Update an existing keyset. User needs to provide the keyset id and the config to update.
Inputs: operation (required), data.
send_pubnub_messageSend Message or Signal to PubNub ChannelA
Send a message or signal to a PubNub channel in real-time. Supports both regular messages and lightweight signals. Plain strings are automatically wrapped in a 'text' field. Requires publish and subscribe keys from your PubNub keyset.
Inputs: channel (required), message (required), publishKey (required), subscribeKey (required), +1 more.
subscribe_and_receive_pubnub_messagesSubscribe to PubNub Channel and Receive MessagesA
Subscribe to a PubNub channel and receive messages in real-time. Specify the number of messages (default 1) and/or a timeout (default 10s, max 30s) to wait for. Requires publish and subscribe keys from your PubNub keyset.
Inputs: channel (required), publishKey (required), subscribeKey (required), messageCount, +1 more.
write_pubnub_appGet PubNub Best PracticesA
Retrieve PubNub best practices guide covering: 1) Architecture & project setup (environments, payload sizes), 2) Security (Access Manager tokens, least privilege, PII hygiene), 3) Channel & data modeling (naming conventions, message schemas), 4) Publish/Subscribe patterns, 5) History usage, 6) Client reliability (reconnect, idempotency, ordering), 7) Functions/edge logic, 8) Presence & state, 9) App Context, 10) Mobile specifics (push notifications, caching), 11) Web specifics (tab lifecycle, Service Workers), 12) Observability & ops, 13) Performance & cost optimization. Call this tool when building PubNub applications to ensure robust, scalable, and secure implementations.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 16 tools
The set includes multiple documentation tools (get_sdk_documentation, get_chat_sdk_documentation, how_to, write_pubnub_app, get_sdk_migration_guide, get_general_migration_guide) with clear usage guidance, so overlap is managed. However, manage_illuminate is an extremely dense mega-tool that conflates many distinct operations (list, create, update, delete, activate, etc.) into one tool, making it hard for an agent to select the right tool vs. sub-operation. Also, get_usage_metrics and insights both query analytics, with overlapping scopes that could confuse selection.
Names mix patterns: some use verb_object (write_pubnub_app, send_pubnub_message, get_pubnub_messages, get_pubnub_presence), some use noun-ish (insights, how_to, manage_app_context, manage_illuminate). The 'manage_' prefix is used for some but not consistently (manage_keysets, manage_app_context, manage_illuminate, manage_apps vs. get_usage_metrics, insights). The documentation tools vary wildly: get_sdk_documentation, get_chat_sdk_documentation, get_sdk_migration_guide, get_general_migration_guide, how_to, write_pubnub_app — there's no common prefix for docs.
16 tools is slightly above the typical ideal range (3-15), but given the broad scope of PubNub (real-time messaging, admin, analytics, docs), it remains reasonable. Each tool covers a distinct domain, though manage_illuminate is overloaded and could arguably be split into multiple tools to reduce the count's weight.
The core real-time messaging lifecycle is covered (publish, subscribe, history, presence), and admin operations (apps, keysets, usage metrics) are present. However, missing common operations like channel management (create/delete channels) or access manager token generation, which are essential for many PubNub applications, represent notable gaps. Illuminate is very comprehensive, but the analytics side is read-only and lacks write/alerting tools.
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
The Telnyx MCP server is an official implementation of the Model Context Protocol that enables AI clients (like Claude Desktop, Cursor, and OpenAI Agents) to interact with Telnyx's telephony, messaging, and AI assistant APIs. It provides comprehensive capabilities including making and managing phone calls, sending SMS/MMS messages, purchasing and configuring phone numbers, creating AI assistants with custom instructions, managing cloud storage buckets, scraping and embedding website content, and handling integration secrets. The server exists as both a local implementation and a remotely hosted version, allowing developers to integrate real-world communication infrastructure directly into AI applications.
Real-time chat hub for AI agents — Claude Code, Cursor, Cline, Codex over MCP or REST.
A Model Context Protocol server for Wix AI tools
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables AI assistants to explore and interact with Cursor IDE's SQLite databases, providing access to project data, chat history, and composer information.26-
- FlicenseNot gradedqualityDmaintenanceA customized MCP server that enables integration between LLM applications and documentation sources, providing AI-assisted access to LangGraph and Model Context Protocol documentation.-
- AlicenseBqualityDmaintenanceA Model Context Protocol server that loads multiple OpenAPI specifications and exposes them to LLM-powered IDE integrations, enabling AI to understand and work with your APIs directly in development tools like Cursor.791MIT
- AlicenseCqualityDmaintenanceA Model Context Protocol server that enables intelligent searching across documentation for 30+ programming libraries and frameworks, fetching relevant information from official sources.238MIT