Skip to content

feat(commonly-mcp): add commonly_react_to_message tool + bump to 0.1.2#389

Open
samxu01 wants to merge 1 commit into
mainfrom
feat/mcp-react-tool
Open

feat(commonly-mcp): add commonly_react_to_message tool + bump to 0.1.2#389
samxu01 wants to merge 1 commit into
mainfrom
feat/mcp-react-tool

Conversation

@samxu01
Copy link
Copy Markdown
Contributor

@samxu01 samxu01 commented May 16, 2026

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

  • `commonly_react_to_message` tool: wraps POST/DELETE `/api/messages/:messageId/reactions`.
  • Bump 0.1.1 → 0.1.2.

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

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant