diff --git a/CHANGELOG.md b/CHANGELOG.md index b663575..31950e7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## Unreleased + +### Changed + +- **The `watch` skill without the plugin:** `npx skills add hookdeck/mcp-events-bridge` also installs the plugin's `watch` skill, and without the plugin its `events-bridge` commands fail with `command not found`. The skill now tells the agent to stop and explain how to install the plugin, or what to use outside Claude Code. To install only the setup skill, add `--skill mcp-events-bridge`. + ## 0.9.0 (2026-11-05) Breaking, for agents that call `create_callback_url` again for an existing URL with a different `port` or `path`: that's now an error. diff --git a/plugins/mcp-events-bridge/skills/watch/SKILL.md b/plugins/mcp-events-bridge/skills/watch/SKILL.md index 10f93f3..6f45d6d 100644 --- a/plugins/mcp-events-bridge/skills/watch/SKILL.md +++ b/plugins/mcp-events-bridge/skills/watch/SKILL.md @@ -1,6 +1,6 @@ --- name: watch -description: Watch for events from the MCP Events bridge in the background, such as GitHub issues, comments, pull requests, reviews, pushes, releases and workflow runs, inbound email, or other webhooks, and tell the user as each one happens. Use when the user asks to watch, follow or monitor events, to be told when something happens in a repository or inbox, to stop watching, or what is being watched. +description: Watch for events from the MCP Events bridge in the background, such as GitHub issues, comments, pull requests, reviews, pushes, releases and workflow runs, inbound email, or other webhooks, and tell the user as each one happens. Use when the user asks to watch, follow or monitor events, to be told when something happens in a repository or inbox, to stop watching, or what is being watched. Needs the bridge's Claude Code plugin, mcp-events-bridge. allowed-tools: Bash(events-bridge watches *) --- @@ -8,6 +8,16 @@ allowed-tools: Bash(events-bridge watches *) This plugin runs a monitor for the whole session that follows this project's watch list. Each watch is an event name and its filters. When an event happens, you get a monitor notification, and you should tell the user about it, briefly, without being asked. +## Before you start: is the plugin installed? + +This skill is part of the bridge's Claude Code plugin, `mcp-events-bridge`. The plugin provides everything this skill uses: the `events-bridge` command, the `events-bridge` MCP server, and the monitor that tells you about events. + +`npx skills add hookdeck/mcp-events-bridge` can install this skill without the plugin. Then the shell can't find `events-bridge` (`command not found` or `No such file or directory`, exit code 127). If that happens, stop: don't retry, and don't look for another way to run the commands. Tell the user the plugin isn't installed, and what they can do: + +- **No bridge yet:** set one up first. The `mcp-events-bridge` skill (`npx skills add hookdeck/mcp-events-bridge --skill mcp-events-bridge`) or the [README](https://github.com/hookdeck/mcp-events-bridge#readme) walks through it. +- **In Claude Code:** install the plugin with `/plugin install mcp-events-bridge --marketplace hookdeck/mcp-events-bridge` (Claude Code 2.1.275 or later). It asks for the bridge's MCP endpoint and secret. Then start a new session. See the [Claude Code guide](https://github.com/hookdeck/mcp-events-bridge/blob/main/skills/mcp-events-bridge/references/claude-code.md). +- **In another agent:** use the bridge's `wait_for_event` and `poll_events` MCP tools, which wait for events while you work on a request. If you can run a command in the background and act on its output, `npx @hookdeck/mcp-events-bridge watch ` prints one JSON line per event. It reads the bridge's MCP endpoint from `BRIDGE_MCP_URL` and its secret from `BRIDGE_MCP_SECRET`. + ## Find event names and filters Call the `events-bridge` MCP server's `list_sources` tool (`list_providers` on a bridge before 0.6.0). Event names look like `github.issue_comment` or `resend.email.received`, and each event's filters are in its input schema (for GitHub: `repository` as owner/name, `actions` as a list, `sender`).