Repository navigation
Releases
v0.8.3
Changed
- Breaking on macOS: the bridge's launchd label is now
io.github.panstudio.zulipchat-mcp-agents(wasio.github.akougkas.zulipchat-mcp-agents). Before upgrading, runzulipchat-mcp-agents service uninstallwith the old version, thenservice installwith the new one. The new version does not find or remove the old plist. Linux systemd units are unaffected. - The repository moved to https://github.com/PanStudio/zulipchat-mcp and the MCP registry name is now
io.github.PanStudio/zulipchat-mcp. Security reports go through GitHub private vulnerability reporting.
ZulipChat MCP 0.8.2
The README links the agentic engineering page. The package is otherwise unchanged from 0.8.1.
First release published by the Publish to PyPI workflow through PyPI Trusted Publishing.
Install: uvx zulipchat-mcp@0.8.2. See CHANGELOG.md.
v0.8.0 - Agent bots over ACP
v0.7.6 — Owner-only bot inbox, bot DMs and send-once
Found by running Clio Coder against a real Zulip organization. A local model repeated successful sends and posted as the user while presenting itself as the bot. Anyone in the organization could also steer a watcher on the owner's machine by mentioning the bot.
uv tool install zulipchat-mcp==0.7.6Security
- Owner-only bot inbox. Mention and direct-message polling now returns only senders admitted by
--mention-allow/ZULIPCHAT_MENTION_ALLOW.- The default admits only the configured owner.
- A list of emails and numeric user IDs adds senders.
everyonerestores the old behavior.- Other senders appear in
ignored_unauthorizedwith IDs and no content, and the cursor still advances past them. - Invalid entries fail startup.
- The inbox never returns the bot's own messages, so a reply that mentions the bot cannot become new work.
Added
poll_agent_events(direct_messages=True)reads direct and group-direct messages to the bot, with the same durable inbox and cursor as channel mentions. Each event includesreply_to.send_message(as_bot=True)sends one message as the bot over stdio.- Every tool advertises MCP annotations (
readOnlyHint,destructiveHint,idempotentHint,openWorldHint,title), derived from the read-only profile.
Fixed
send_messagesuppresses an identical repeat of a send that succeeded within the last two minutes and returns the originalmessage_id. Results reportsent_asand a UTC timestamp.- Link-preview updates no longer delete a stored mention or direct message before the host reads it.
- The packaged skill teaches sending once, speaking as the bot, and polling once per turn with a cursor.
Verified live
Verified against a real organization with Clio Coder. Owner-only filtering held on real direct messages, a non-owner's question was withheld, and a channel mention got exactly one reply as the bot with an advancing cursor.
Full notes: CHANGELOG
v0.7.5 — Shared account state and multi-organization exports
A small follow-up to 0.7.4 from setting it up for real across several Zulip organizations in one coding host.
uv tool install zulipchat-mcp==0.7.5 # or: uvx zulipchat-mcp --zulip-config-file ~/.zuliprcFixed
- One database per account, not per project. Default account state now lives under
$XDG_STATE_HOME/zulipchat-mcp/accounts/<fingerprint>/(normally~/.local/state) in a private directory. Previously it was created under the server's working directory, so a host configured once for every project created a separate database, snapshot cache, and mention inbox in each project. An existing 0.7.4 database in.mcp/zulipchat/accounts/<fingerprint>/under the working directory keeps being used, andZULIPCHAT_DB_PATHstill overrides both. - Skill guidance for several organizations. The packaged
zulipchatskill no longer assumes the server idzulipchat. It explains one server per organization and tells agents to confirm the organization withserver_info. - Stale repository templates. Skill copies checked in under
integrations/had missed the 0.7.4 skill updates. The published package was unaffected. A sync script now regenerates them and a test fails on drift.
Added
-
zulipchat-mcp-integrate print|export --server-id IDnames the host's server entry. Export once per organization and the results merge into one host configuration:for org in grc chronolog; do uvx --from zulipchat-mcp zulipchat-mcp-integrate export --client clio-coder \ --output-dir . --server-id "zulipchat-$org" \ --zulip-config-file "$HOME/.zuliprc-$org" --extended-tools done
Claude Code exports keep one account per project because their hooks bind one credential set.
Named organization profiles inside a single server process remain on the roadmap.
Full notes: CHANGELOG
v0.7.4 — Account-bound state, bot mention inbox, Agent Skills and host exports
ZulipChat MCP 0.7.4 hardens credential and session handling, adds a durable bot-mention inbox, packages four Agent Skills, and exports native configuration for seven host families. The 20-tool core and 60-tool extended surfaces are unchanged.
uvx zulipchat-mcp --zulip-config-file ~/.zuliprcFull details: CHANGELOG · Evidence and limits: v0.7.4 audit
Security
- Companion commands (
zulipchat-mcp-setup,-integrate,-hook) are now documented and templated asuvx --from zulipchat-mcp .... Without--from,uvxinfers a package from the executable name, which could resolve to an unrelated package. CI and release preflight now reject unsourced companion commands. - Environment-based bot credentials resolve against the selected user's realm, not an unrelated ambient
ZULIP_SITE. - Persistent state is bound to a fingerprint of the effective realm and principals. Default databases are account-scoped and mismatched explicit paths fail startup.
--forceexports replace exporter-owned Claude hooks that referenced old credentials.
Added
- Bot mention inbox.
poll_agent_events(mentions_stream=...)reads an event-fed, durable local inbox of Generic-bot mentions with message-ID recovery, numeric bot verification, and a single-producer lease. The server is the transport. It does not ship a host adapter, launch coding processes, or provide an autonomous runner. - Efficient reads. Identity-scoped 15-second message snapshots with hashes and UTC freshness metadata,
fresh=Truebypass, and a shared per-principal request budget that honors Zulip rate-limit headers. Writes are never transparently retried. --tool-profile read-only: 9 core or 23 extended reads, with filtered discovery and enforced denials.- Agent Skills. Four bundled skills served as MCP Resources and through SEP-2640
skills/list/skills/geton MCP 2026-07-28. - Integration exports for Claude Code, Codex, OpenCode, Copilot CLI, VS Code Copilot, Antigravity CLI, Clio Coder, and generic hosts, plus an Agent Plugins 1.0.0 package. Exported files do not change host trust.
- Replay-safe scoped event acknowledgement (
auto_ack=False,ack_event_ids) and bounded binary uploads viafile_content_base64.
Fixed
- Listener recovery uses Zulip's date anchor (feature level 445+) or message-ID paging, registers the replacement queue before backfill, and deduplicates overlap.
- Same-account owner replies are accepted; outbound echoes are suppressed across MCP and hook processes.
/reply REQUEST_ID answerfor questions; bounded waits returnstatus="timeout"with the request still pending.- Application failures set MCP
isError; partial deliveries keep their message IDs and unsafe-retry guidance. - Corrected stream lookup, subscription-property, and topic-mute endpoints; paginated message flags; raw-Markdown cross-posting; task-local client binding for compound operations.
Migration
Fresh default state lives under .mcp/zulipchat/accounts/<fingerprint>/. Existing legacy state is not adopted automatically. To keep a verified legacy database, set ZULIPCHAT_DB_PATH to it and pass --associate-existing-db once. See configuration.
Dependencies
FastMCP range relaxed to fastmcp[tasks]>=4.0.4,<5; lock refreshed to FastMCP 4.1.0, mcp-types 2.3.0, Anthropic 1.12.1, DuckDB 1.5.6. Python 3.10–3.14 are tested, with a weekly minimum/latest FastMCP matrix.
Validation and limits
938 deterministic tests pass on Python 3.10/FastMCP 4.0.4 and Python 3.14/FastMCP 4.1.0 (74% branch coverage). Source and installed-wheel stdio smokes cover legacy and 2026-07-28 protocols across both tool tiers and both profiles. Clio Coder's actual config parser, plugin validator, and stdio client were exercised with fake credentials.
Live testing was deliberately narrow: read-only Clio sessions, and four real mention-to-reply round trips through a private, unshipped Clio adapter, including a bounded five-message summary on the final wheel. Other hosts were validated through export formats and schemas, not live sessions. Sessions and the mention inbox remain single-instance.
Thanks
- Olivier Durif (@odurif0) relaxed the FastMCP pin in #22. That commit is merged with original authorship. Thank you, and sorry it waited as long as it did.
- The private reporter of the
uvxcompanion-command issue. - Earlier community work from @lloydhazlett (#13, #14) and @aurelien-eveil (#15) carries forward.
v0.7.3 — Security and reliability fixes, MCP 2026-07-28
ZulipChat MCP 0.7.3 is a stable bug-fix and security release that completes the transition to MCP 2026-07-28. It uses FastMCP 4.0.4 and MCP SDK/types 2.2.0, preserves legacy-client support, and retains 20 core tools, 60 extended tools, and opt-in background tasks.
The two audit passes addressed credential and cache isolation, owner/request-bound approvals, shell quoting, command-expression execution, HTTP authentication and file boundaries, listener persistence and shutdown, async responsiveness, search ordering and time windows, pagination, workflow rollback, scheduling, and installer output.
Upgrade
uvx --refresh-package zulipchat-mcp zulipchat-mcp --versionRestart your MCP client/server after updating. For a persistent installation, use your package manager to upgrade to zulipchat-mcp==0.7.3.
Behavior changes to review
- Approvals must name their request:
/approve REQUEST_IDor/deny REQUEST_ID. Bare approvals no longer select a pending request implicitly. - A selected zuliprc file supplies its email, key, and site together, ahead of ambient credential variables. Restart after changing credential files.
- Public HTTP binds require a bearer token. Configure
--allowed-hostfor a public hostname. HTTP rejects local filesystem paths, event callbacks, and process-wide identity switching; those local capabilities remain available over stdio. - SDK automatic retries of ambiguous failed writes are disabled. Check whether Zulip accepted a send before retrying it.
- Use
search_messagesfor time filters. Timestamp narrow helpers now reject unsupported filters explicitly. Some date-anchor queries require Zulip 12 / feature level 445. - Server-side analytics use
ANTHROPIC_API_KEY, with structured-data fallback when no provider is configured. Sampling is deprecated in the new MCP specification. Modern MCP omits ping; legacy ping remains covered. - Use a single instance per trusted account for persisted agent sessions, approvals, listener cursors, and task state.
Verification and acknowledgments
The audit suite passes 711 tests with three opt-in live tests skipped, reaching 70.69% branch-aware coverage. Source and clean-wheel smoke tests cover both protocol eras and both tool tiers. See the full changelog and audit report for findings, evidence, and limits.
Thanks to @aurelien-eveil for the native drafts contribution (#15) and @lloydhazlett for the listener timeout contribution (#14). Both are preserved in this release, together with the previously unpublished beta.1 fixes. This release resolves migration trackers #17 and #18.
The generated changes since stable v0.7.2 follow below.
What's Changed
- v0.7.3-beta: MCP 2026-07-28 stateless protocol, HTTP transport, server-side LLM analytics by @akougkas in #16
- fix: prepare v0.7.3-beta.1 prerelease by @akougkas in #19
- release: v0.7.3 security and reliability fixes with MCP migration by @akougkas in #21
New Contributors
Full Changelog: v0.7.2...v0.7.3
v0.7.3-beta — MCP 2026-07-28 stateless protocol, HTTP transport, server-side LLM analytics
Prerelease. Migrates ZulipChat MCP to the MCP 2026-07-28 stateless protocol on FastMCP 4, adds a streamable-HTTP transport with bearer auth, and replaces MCP sampling with a server-side LLM provider.
Install:
uvx --prerelease=allow zulipchat-mcp --zulip-config-file ~/.zuliprcHighlights
- 2026-07-28 stateless protocol on
fastmcp[tasks]==4.0.0b2, serving both the 2025-11-25 and 2026-07-28 eras. --transport httpwith--host,--port, and--auth-token(orZULIPCHAT_HTTP_AUTH_TOKEN) for remote deployments.- Server-side LLM analytics (
core/llm.py) replacingctx.sample, which FastMCP 4 removed. - SEP-2663 Tasks extension keeping background-task support for
teleport_chat,wait_for_response, andlisten_events. - Ping compatibility patch for upstream python-sdk#3273.
Breaking changes
- AI analytics tools no longer take an injected
ctx: Contextparameter. - LLM analytics need
ANTHROPIC_API_KEYon the server process instead of client sampling support. Without it, tools returnstatus="success"withllm_unavailable=Trueand a structureddata_summary.
Multi-replica note
DuckDB persistence is single-writer. When running several HTTP replicas, give each its own DuckDB path.
Credits
Includes the v0.7.2 work from @aurelien-eveil (native drafts tools, #15) and @lloydhazlett (listener long-polling fix #14, line-ending normalization #13).
What's Changed
- v0.7.3-beta: MCP 2026-07-28 stateless protocol, HTTP transport, server-side LLM analytics by @akougkas in #16
New Contributors
Full Changelog: v0.7.2...v0.7.3-beta
v0.7.2 - Native Drafts Tools & Listener Longpolling Fix
Changelog
All notable changes to ZulipChat MCP are documented in this file.
[Unreleased]
[0.7.2] - 2026-08-04
Added
- Native Zulip Drafts Tools: Added extended tools for listing (
get_drafts), creating (create_draft), editing (edit_draft), and deleting (delete_draft) drafts through Zulip's native drafts API (/drafts), bringing the extended tool count to 60. (PR #15, credit: @aurelien-eveil)
Fixed
- Listener Long-polling Read Timeout: Enabled
longpolling=Trueon Zulip/eventslistener requests to set the HTTP timeout to 90s, matching the server's 30s long-poll hold timeout and preventing spurious 15sRead timed outcrashes and exponential backoff loops during idle periods. (PR #14, credit: @lloydhazlett)
Chore
- Repo-wide Line Ending Normalization: Added
.gitattributes(* text=auto eol=lf) and normalized line endings from CRLF to LF across 25 repository files to prevent noisy line-ending diffs across platforms. (PR #13, credit: @lloydhazlett)
Fixed
- Restored v0.7.x startup under FastMCP 3 by installing the task extra (
fastmcp[anthropic,tasks]) and disabling accidental server-wide task advertisement. Reported by @jessealama in #10 and addressed by @jessealama's PR #11, with additional confirmation from @peteWT and @jpuritz in #12. - Made MCP task support explicit and opt-in for long-running tools only:
teleport_chat,wait_for_response, andlisten_eventsnow advertise optional background-task support while normal fast tools remain standard calls. - Converted
teleport_chat(wait_for_reply=True)andwait_for_responseto async-safe implementations so task-enabled calls do not block the server event loop. - Moved background service startup and shutdown into the FastMCP lifespan, giving the Zulip listener a managed teardown path instead of process-lifetime threads.
Tests
- Added real FastMCP registration coverage for core and extended tools, including a regression guard that prevents reintroducing server-wide
tasks=True.
Docs
- Modernized
CLAUDE.md: removed stale v0.4 import patterns, fixed the local connection-test snippet to use installed-package imports, documented theregister_tool/optional_background_taskpattern fromtools/registration.py, the 20-core / 56-extended tool modes (--extended-tools/ZULIPCHAT_EXTENDED_TOOLS=1), and the three project skills under.claude/skills/. - Switched GitHub releases to
gh release create --generate-notes.RELEASE.mdremoved;CHANGELOG.mdis the single source of release notes. ROADMAP.mdv0.7.1 date corrected to 2026-05-11 to matchCHANGELOG.md.
[0.7.0] - 2026-05-01
Added
- Agent control plane for session-scoped Claude Code workflows. New core tool
ensure_agent_sessionand extended toolslist_sessions,close_agent_session, backed by a stable agent profile registered via the rebuiltregister_agent. - Claude Code plugin at
integrations/claude-code/plugin/with.claude-plugin/plugin.json, hook bridge, three skills (zulipchat-session-operator,zulipchat-notifyme,zulipchat-loop), and thezulip-session-operatorsubagent. - Standalone
.claude/template atintegrations/claude-code/.claude/for users who want to vendor the integration into their own repo without the plugin format. zulipchat-mcp-hookCLI that bridges Claude Code lifecycle events (SessionStart,PermissionRequest,PostToolUseFailure,Notification idle_prompt,StopFailure,TaskCompleted,SessionEnd) into the bound Zulip topic.zulipchat-mcp-integrate export --client claude-codesubcommand to generate the plugin or standalone scaffold into a target directory, with bot-config and extended-tools modes.- DuckDB tables
agent_profiles,agent_sessions,agent_requests,session_events. Migration is additive; existing tables and rows are untouched.
Changed
register_agentnow accepts optionalagent_name,owner_email,stream_name,topic_prefix,metadatakeyword arguments. Existing calls without arguments still work. The return shape is new:agent_id,agent_name,agent_type,owner_email,stream,topic_prefix.agent_message,request_user_input, andwait_for_responsenow operate session-scoped against the topic bound byensure_agent_session. The previous channel-broadcast behavior is replaced.- Hook commands in the Claude Code plugin invoke
uvx --from zulipchat-mcp zulipchat-mcp-hookso the bridge resolves whether the package is installed persistently or run ephemerally. - Setup wizard command corrected to
uvx --from zulipchat-mcp zulipchat-mcp-setupacross README, troubleshooting, installation, quick-start, and setup-wizard docs. (PR #9, credit: @odurif0)
Removed
- AFK mode tools
enable_afk_mode,disable_afk_mode,get_afk_status, and the mergedafk_modetool. The session model (ensure_agent_sessionplusclose_agent_session) replaces them.
Upgrading from 0.6.x
- DuckDB schema upgrade runs automatically on first start of v0.7.0. No manual migration is required.
- Scripts that called the AFK tools must be updated to the session model.
- Scripts that parsed the previous
register_agentreturn keys must read from the new keys (agent_id,stream,topic_prefix). - For the new Claude Code plugin, install via Claude Code's plugin command and ensure
~/.zuliprc(and optionally~/.zuliprc-bot) exist. Hooks calluvx --from zulipchat-mcp zulipchat-mcp-hook, so no global package install is required.
[0.6.2] - 2026-03-03
Fixed
- Critical: Rate limit exhaustion — Message listener was hardcoded to start on every server boot, long-polling Zulip's
/eventsendpoint regardless of the--enable-listenerflag. Multiple MCP client sessions would all poll simultaneously, exhausting the per-user rate limit. Listener is now off by default and lazy-started only when an agent tool that needs it is invoked. (PR #8, credit: @klutchell) - Tight-loop on API errors — When the listener received a 429 or other error response, it returned an empty list and immediately retried with no delay, generating thousands of requests per minute. Now returns a sentinel on error and applies exponential backoff (2s base, 120s cap).
- Stale DuckDB lock after unclean shutdown — When a server process died without closing the database, the WAL file persisted and blocked all new connections permanently. The database layer now extracts the locking PID from DuckDB's error message, checks if the process is alive, and removes the stale WAL file if the process is dead. (Fixes #7, reported by: @JaimeCernuda)
[0.6.1] - 2026-02-23
Added
zulipchat-mcp-integrateCLI for generating copy-paste integration snippets across MCP clients.- Integration package templates under
integrations/for Claude Code, Gemini CLI, Codex, OpenCode, VS Code/Copilot, Cursor, Windsurf, Antigravity, and generic MCP clients. - Automated release preflight checklist:
scripts/release_preflight.py. - Automated pre-release smoke runner:
scripts/pre_release_smoke.sh. - New setup wizard and integration docs:
docs/user-guide/setup-wizard.md,docs/integrations/*.
Changed
- Setup wizard (
zulipchat-mcp-setup) now supports core vs extended tool mode, additional client targets, and config-file output paths. - Publish workflow hardened with stricter version checks and wheel-installed entrypoint smoke tests before PyPI publish.
- Documentation refreshed and expanded for v0.6.x across user guide, API reference, integration pages, security/support/community docs, and contributor guides.
- Packaging metadata and source distribution contents aligned with public docs/integrations assets.
Fixed
--debugnow correctly enables DEBUG-level structured logging inzulipchat-mcp.- Setup wizard exits cleanly in non-interactive terminals and better prioritizes user vs bot zuliprc selection defaults.
- Release smoke script now installs the exact wheel for the target version, avoiding multi-wheel conflicts in
dist/.
[0.6.0] - 2026-02-22
Changed
- Two-tier tool registration: Default mode registers 19 core tools (~87% token reduction);
--extended-toolsflag orZULIPCHAT_EXTENDED_TOOLS=1enables full set (~55 tools) - 7 merged tools:
manage_message_flags(replaces 7 flag tools),get_user(replaces by-id + by-email),manage_user_mute,toggle_reaction,manage_task,afk_mode,manage_scheduled_message - CLI: Added
--extended-toolsargument toserver.py - Concise descriptions: Core and extended tool descriptions optimized for token efficiency
Removed
- events.py stub: Dead code that delegated to agents.py removed
- Legacy registration path:
server.pyno longer calls individualregister_*_tools()functions; usesregister_core_tools()/register_extended_tools()instead
Added
register_core_tools()andregister_extended_tools()intools/__init__.pytests/tools/test_tool_tiers.py: 36 tests covering registration counts, merged tool dispatch, error paths
[0.5.3] - 2026-02-22
Fixed
- CI fully green: Resolved all CI failures across Python 3.10/3.11/3.12 — 10 mypy errors, 1 test failure, 2 ruff lint errors
- Null credential guards: Added validation in
identity.pyandscheduler.pyto fail fast on missing credentials instead of passingNone - Test compatibility: Fixed enum
str()rendering difference between Python 3.10 and 3.11+ in narrow filter tests - Type annotations: Added missing return types in
config.py, type annotation fordatabase.pysingleton flag
Added
- Auto-publish workflow:
publish.ymlbuilds and uploads to PyPI via trusted publisher when a GitHub release is published - Issue templates: Bug report and feature request templates with structured fields
- PR template: Checklist matching CONTRIBUTING.md standards
- Release checklist:
RELEASING.mdwith step-by-step release runboo...
v0.7.1 - Cleanup & FastMCP task fix
Full Changelog: v0.7.0...v0.7.1