Skip to content

Releases

v0.8.3

Choose a tag to compare

@akougkas akougkas released this 26 Nov 20:40
aa53b91

Changed

  • Breaking on macOS: the bridge's launchd label is now io.github.panstudio.zulipchat-mcp-agents (was io.github.akougkas.zulipchat-mcp-agents). Before upgrading, run zulipchat-mcp-agents service uninstall with the old version, then service install with 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

Choose a tag to compare

@akougkas akougkas released this 25 Nov 17:22

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

Choose a tag to compare

@akougkas akougkas released this 15 Nov 18:52
cb13ee7

What's Changed

Full Changelog: v0.7.6...v0.8.0

v0.7.6 — Owner-only bot inbox, bot DMs and send-once

Choose a tag to compare

@akougkas akougkas released this 09 Oct 19:04
31d4611

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

Security

  • 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.
    • everyone restores the old behavior.
    • Other senders appear in ignored_unauthorized with 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 includes reply_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_message suppresses an identical repeat of a send that succeeded within the last two minutes and returns the original message_id. Results report sent_as and 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

Choose a tag to compare

@akougkas akougkas released this 09 Oct 18:06
f5e9497

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 ~/.zuliprc

Fixed

  • 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, and ZULIPCHAT_DB_PATH still overrides both.
  • Skill guidance for several organizations. The packaged zulipchat skill no longer assumes the server id zulipchat. It explains one server per organization and tells agents to confirm the organization with server_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 ID names 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

Choose a tag to compare

@akougkas akougkas released this 09 Oct 17:28
3adc1a8

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 ~/.zuliprc

Full details: CHANGELOG · Evidence and limits: v0.7.4 audit

Security

  • Companion commands (zulipchat-mcp-setup, -integrate, -hook) are now documented and templated as uvx --from zulipchat-mcp .... Without --from, uvx infers 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.
  • --force exports 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=True bypass, 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/get on 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 via file_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 answer for questions; bounded waits return status="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 uvx companion-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

Choose a tag to compare

@akougkas akougkas released this 17 Sep 10:47
35ca437

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 --version

Restart 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_ID or /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-host for 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_messages for 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

Choose a tag to compare

@akougkas akougkas released this 09 Aug 13:42
c3cdebb

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 ~/.zuliprc

Highlights

  • 2026-07-28 stateless protocol on fastmcp[tasks]==4.0.0b2, serving both the 2025-11-25 and 2026-07-28 eras.
  • --transport http with --host, --port, and --auth-token (or ZULIPCHAT_HTTP_AUTH_TOKEN) for remote deployments.
  • Server-side LLM analytics (core/llm.py) replacing ctx.sample, which FastMCP 4 removed.
  • SEP-2663 Tasks extension keeping background-task support for teleport_chat, wait_for_response, and listen_events.
  • Ping compatibility patch for upstream python-sdk#3273.

Breaking changes

  • AI analytics tools no longer take an injected ctx: Context parameter.
  • LLM analytics need ANTHROPIC_API_KEY on the server process instead of client sampling support. Without it, tools return status="success" with llm_unavailable=True and a structured data_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

Choose a tag to compare

@akougkas akougkas released this 04 Aug 22:23

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=True on Zulip /events listener requests to set the HTTP timeout to 90s, matching the server's 30s long-poll hold timeout and preventing spurious 15s Read timed out crashes 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, and listen_events now advertise optional background-task support while normal fast tools remain standard calls.
  • Converted teleport_chat(wait_for_reply=True) and wait_for_response to 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 the register_tool / optional_background_task pattern from tools/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.md removed; CHANGELOG.md is the single source of release notes.
  • ROADMAP.md v0.7.1 date corrected to 2026-05-11 to match CHANGELOG.md.

[0.7.0] - 2026-05-01

Added

  • Agent control plane for session-scoped Claude Code workflows. New core tool ensure_agent_session and extended tools list_sessions, close_agent_session, backed by a stable agent profile registered via the rebuilt register_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 the zulip-session-operator subagent.
  • Standalone .claude/ template at integrations/claude-code/.claude/ for users who want to vendor the integration into their own repo without the plugin format.
  • zulipchat-mcp-hook CLI 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-code subcommand 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_agent now accepts optional agent_name, owner_email, stream_name, topic_prefix, metadata keyword 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, and wait_for_response now operate session-scoped against the topic bound by ensure_agent_session. The previous channel-broadcast behavior is replaced.
  • Hook commands in the Claude Code plugin invoke uvx --from zulipchat-mcp zulipchat-mcp-hook so the bridge resolves whether the package is installed persistently or run ephemerally.
  • Setup wizard command corrected to uvx --from zulipchat-mcp zulipchat-mcp-setup across 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 merged afk_mode tool. The session model (ensure_agent_session plus close_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_agent return 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 call uvx --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 /events endpoint regardless of the --enable-listener flag. 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-integrate CLI 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

  • --debug now correctly enables DEBUG-level structured logging in zulipchat-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-tools flag or ZULIPCHAT_EXTENDED_TOOLS=1 enables 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-tools argument to server.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.py no longer calls individual register_*_tools() functions; uses register_core_tools() / register_extended_tools() instead

Added

  • register_core_tools() and register_extended_tools() in tools/__init__.py
  • tests/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.py and scheduler.py to fail fast on missing credentials instead of passing None
  • 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 for database.py singleton flag

Added

  • Auto-publish workflow: publish.yml builds 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.md with step-by-step release runboo...
Read more

v0.7.1 - Cleanup & FastMCP task fix

Choose a tag to compare

@akougkas akougkas released this 11 May 13:35

Full Changelog: v0.7.0...v0.7.1