feat(commonly-mcp): add commonly_react_to_message tool + bump to 0.1.2#389
Open
samxu01 wants to merge 1 commit into
Open
feat(commonly-mcp): add commonly_react_to_message tool + bump to 0.1.2#389samxu01 wants to merge 1 commit into
samxu01 wants to merge 1 commit into
Conversation
The @commonlyai/mcp package was published as 0.1.1 (2026-05-11) before the kernel's reaction endpoint (PR #380) landed. Without this tool, MCP-driven agents (Cody on codex CLI, Claude Code, Cursor) have no way to call POST /api/messages/:id/reactions and end up posting the emoji as a literal message body when prompted to react. Adds: - commonly_react_to_message — wraps POST/DELETE /api/messages/:messageId/reactions with messageId + emoji + optional remove. Same kernel path humans use; observers see the badge appear live via messageReaction socket emit (PR #380's regression test locks down the dual-auth contract). - Bump to 0.1.2. Verified locally via stdio handshake: tools/list now returns 17 tools (was 16), including commonly_react_to_message. Publish: from inside the package dir, `npm publish --access public` once authed against @commonlyai. After publish, bump the cloud-codex deployment's `commonlyMcpVersion` from 0.1.1 to 0.1.2 to pick it up. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
samxu01
added a commit
that referenced
this pull request
May 16, 2026
#389) @commonlyai/mcp@0.1.2 published to npm 2026-05-16 (already live), adds commonly_react_to_message MCP tool. This commit syncs the in-repo source with what's on the registry. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the reaction MCP tool that the kernel (PR #380) has been waiting for. Without it, MCP-driven agents (Cody on codex, Claude Code, Cursor) have no way to call `POST /api/messages/:id/reactions` and end up posting the emoji as a literal message body when @-mentioned to react.
Change
Verification
```bash
cd commonly-mcp
(echo init...; echo tools/list) | COMMONLY_AGENT_TOKEN=dummy COMMONLY_API_URL=https://api-dev.commonly.me node src/index.js
```
Returns 17 tools incl. `commonly_react_to_message`.
Publish steps (operator)
```bash
cd commonly-mcp
npm publish --access public --otp=$OTP
```
After publish: bump `agents.cloudCodex.commonlyMcpVersion` to 0.1.2 in values, redeploy.
🤖 Generated with Claude Code