PROJECT 04← All work

Developer tools / messaging integrations

Zulip MCP

A topic-aware MCP server for Zulip search, triage, drafts, and approval-gated writes.

FOCUS

MCP tool design, Zulip REST integration, and approval controls

STACK

TypeScript · Node.js · MCP SDK · Zod · Zulip REST API · Vitest

STATUS

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.

02

Architecture

ZULIP MCP / SYSTEM FLOW
  1. 01TOOL CALL

    The MCP server accepts a request with structured arguments.

  2. 02READ CONTEXT

    The REST client fetches messages with stream and topic context.

  3. 03DRAFT

    Workflows produce a summary or draft for review.

  4. 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.

03

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.

04

Verification / results

The repository includes Vitest coverage for input validation, approval checks, content sanitization, configuration, and the Zulip client.

05

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.

NEXT PROJECT / 05

TOMATO