Developer tools / messaging integrations
Zulip MCP
A topic-aware MCP server for Zulip search, triage, drafts, and approval-gated writes.
MCP tool design, Zulip REST integration, and approval controls
TypeScript · Node.js · MCP SDK · Zod · Zulip REST API · Vitest
Open-source developer tool
OVERVIEW
Zulip MCP exposes conversation and triage tools to MCP clients. Its workflows preserve streams and topics so summaries and drafts retain the conversation context. Sending messages and adding reactions use a separate write path.
Architecture
- 01TOOL CALL
The MCP server accepts a request with structured arguments.
- 02READ CONTEXT
The REST client fetches messages with stream and topic context.
- 03DRAFT
Workflows produce a summary or draft for review.
- 04CHECK WRITE
Outbound actions pass the configured approval check.
BOUNDARYDrafting stays separate from outbound writes. The server applies its write policy before calling Zulip.
The server registers narrow read, draft, and write tools using shared Zod schemas. A Zulip REST client handles the API calls. Deterministic workflows combine the lower-level calls into topic digests, mention triage, and reply drafts.
Key decisions & trade-offs
A Zulip stream and topic identify the conversation, so the tools preserve both when fetching context or composing a reply. Separating drafting from sending gives the caller time to review the content.
Verification / results
The repository includes Vitest coverage for input validation, approval checks, content sanitization, configuration, and the Zulip client.
Limitations
The integration requires a configured Zulip account and uses that account’s permissions. The server’s write controls depend on its configuration and caller-supplied approval.