First-party app
Zulip

Zulip

Send, read, edit and react to Zulip messages, and manage channels, topics, subscriptions and users on a Zulip Cloud organization.

stable CommunicationProductivity

About

Zulip ships in the w6w first-party pack. It declares 25 actions, 3 health checks, and the host runs its code in a sandbox that never sees the credential.

App id
io.w6w.zulip
Version
0.1.0
Author
w6w
Licence
MIT
Categories
Communication · Productivity

Overview

Zulip is open-source team chat organised around channels and topics. This app sends channel and direct messages, reads message history with narrow filters, edits, moves, deletes and flags messages, adds and removes emoji reactions, lists, creates, updates and archives channels, lists a channel’s topics and subscribers, manages the caller’s subscriptions, and looks up users. It targets Zulip Cloud organizations (.zulipchat.com) and authenticates as a user or bot with its email and API key.

Build with Zulip

Three routes to the same 25 actions. The Workflow tab is generated from Zulip's own manifest and carries its real ids, so it is copy-pasteable; the Code and CLI examples are the same call for any action on any app, so every app-specific value in them is a blank you fill in.

Add Reaction

add-reaction

Add an emoji reaction as the connected user (POST /messages/{message_id}/reactions).

Archive Channel

archive-stream

Archive a channel (DELETE /streams/{stream_id}); its messages stay readable. Needs channel-administration permission.

Create Channel

create-channel

Create a channel and optionally subscribe users (POST /channels/create, Zulip 11.0+; Zulip Cloud runs it). Needs permission to create channels.

Delete Message

delete-message

Permanently delete a message (DELETE /messages/{message_id}). Needs the organization's message-deletion permission.

Delete Topic

delete-topic

Delete every message in a topic (POST /streams/{stream_id}/delete_topic). Administrators only. Deletion runs in batches: when `complete` is false, run it again.

Get Message

get-message

Fetch one message, with its raw Markdown source in `raw_content` (GET /messages/{message_id}).

List Messages

get-messages

Fetch messages around an anchor, optionally filtered by a narrow or by channel/topic shortcuts, or fetch specific message IDs (GET /messages). Page backwards by passing the oldest returned id as the anchor.

Get Own User

get-own-user

Fetch the profile of the user or bot the connection signs in as (GET /users/me). It does not include the API key.

Get Channel

get-stream

Fetch one channel by ID (GET /streams/{stream_id}).

Get Channel ID

get-stream-id

Look up a channel's numeric ID from its name (GET /get_stream_id).

List Topics

get-stream-topics

List the topics in a channel the user can access, with each one's latest message id (GET /users/me/{stream_id}/topics).

List Channels

get-streams

List the channels the user can see (GET /streams). Zulip calls them streams in the API.

List Channel Subscribers

get-subscribers

List the user IDs subscribed to a channel (GET /streams/{stream_id}/members).

List Subscriptions

get-subscriptions

List the channels the connected user is subscribed to (GET /users/me/subscriptions).

Get User

get-user

Fetch one user by ID (GET /users/{user_id}).

List Users

get-users

List the active users of the organization (GET /users). Not paginated.

Mark Channel as Read

mark-stream-as-read

Mark every message in a channel as read (POST /mark_stream_as_read).

Mark Topic as Read

mark-topic-as-read

Mark every message in one topic as read (POST /mark_topic_as_read).

Remove Reaction

remove-reaction

Remove an emoji reaction as the connected user (DELETE /messages/{message_id}/reactions).

Send Message

send-message

Send a message to a channel topic or as a direct message (POST /messages).

Subscribe to Channels

subscribe

Subscribe the connected user (or others) to channels, creating any that do not exist (POST /users/me/subscriptions).

Unsubscribe from Channels

unsubscribe

Unsubscribe the connected user (or others) from channels by name (DELETE /users/me/subscriptions).

Edit or Move Message

update-message

Edit a message's content, rename its topic or move it to another channel (PATCH /messages/{message_id}). Subject to the organization's edit and move time limits and permissions.

Update Message Flags

update-message-flags

Add or remove a personal flag (read, starred, collapsed, hide_link_previews) on a list of messages (POST /messages/flags).

Update Channel

update-stream

Rename a channel, change its description or privacy (PATCH /streams/{stream_id}). Needs channel-administration permission.

A workflow step names the app and the action, and the editor fills in the connection when you pick one. This is the Step shape from the workflow spec, carrying Zulip's real ids.

{
  "manifestVersion": "2",
  "name": "zulip-example",
  "steps": [
    {
      "id": "add-reaction",
      "uses": {
        "app": "io.w6w.zulip",
        "action": "add-reaction",
        "connection": "conn_YOUR_CONNECTION_ID"
      },
      "with": {
        "message_id": "<message_id>",
        "emoji_name": "<emoji_name>"
      }
    }
  ]
}

Here are some of the things you can do

  • Add Reaction

    perform
    add-reaction
  • Create Channel

    perform
    create-channel
  • Get Message

    read
    get-message
  • List Messages

    search
    get-messages
  • Get Own User

    read
    get-own-user

+20 more actions available

Every app-specific value here is a blank you have to fill in. An app action is reached through the connection that authenticates it, so the address is a connection id, not the app id — and connections belong to your account, so a public page cannot know yours. Create one for Zulip, then fill in the three blanks: conn_YOUR_CONNECTION_ID, the action key, and the parameters that action declares. The call itself is real — the shape is transcribed from the studio's own snippet builder, which prints the same kind of blanks — but nothing in it is specific to Zulip. The Workflow tab is where this app's real ids are.

Install
npm install @w6w/sdk
yarn add @w6w/sdk
pnpm add @w6w/sdk
deno add npm:@w6w/sdk
Code
import { W6wClient, isActionRun } from "@w6w/sdk";

// Reads W6W_BASE_URL and W6W_TOKEN from the environment when omitted.
const client = new W6wClient();

const envelope = await client.run({
  urn: "conn_YOUR_CONNECTION_ID",
  action: "add-reaction",
  payload: {
    message_id: "<value>",
    emoji_name: "<value>",
    // emoji_code: "<value>",
    // reaction_type: "<value>",
  },
});

if (isActionRun(envelope)) console.log(envelope.value);
Install the CLI
npm install -g @w6w/cli
CLI
w6w run conn_YOUR_CONNECTION_ID --action add-reaction --payload '{"message_id":"<value>","emoji_name":"<value>"}'

Give an AI agent Zulip — without giving it Zulip's credentials. One MCP endpoint exposes every app, function and workflow the caller is entitled to, as tools it can discover and run. Access is granted per team while we onboard.

One tool call
{
  "name": "w6w_invoke",
  "arguments": {
    "ref": "app:io.w6w.zulip#add-reaction",
    "input": {
      "message_id": "<message_id>",
      "emoji_name": "<emoji_name>"
    }
  }
}

Every tool names its target with a single ref. The app: form above doesn't name a connection at all — the host resolves which of the caller's Zulip connections to sign with, and refuses rather than guesses when the answer is ambiguous.

What the agent gets

Credentials it can't read

The token is attached host-side, at the moment of the call. It is never a tool argument, never in the model's context, and never in a transcript — so a prompt injection has nothing to exfiltrate.

A tool surface scoped to the caller

Tools are derived per end user from what that person has actually connected and is entitled to — not one shared bot identity carrying the union of everyone's access.

A durable workflow in one call

Multi-step work runs on the workflow engine and returns a run handle the agent can poll — retries, branching and state survive the conversation that started them.

Health-aware discovery

Zulip's declared health checks are on the surface too, so an agent can tell "the vendor is down" from "your credential expired" before it burns a retry on either.

The MCP surface is part of the hosted platform. Zulip itself is MIT, and the runtime that executes it is source-available (FSL).

Request MCP access

Health checks

Zulip declares its own checks, so its health is a property of the app rather than something the host guesses at.

service

Zulip Cloud status

The "Zulip Cloud" component of status.zulip.com decides; supporting components are shown as detail.

dependency

Organization reachable

Unauthenticated GET of this organization's /api/v1/server_settings. Credential validity is the `auth:basic` check's job.

quota

API rate-limit headroom

Requests remaining, read off the X-RateLimit-* headers of a GET /users/me.