@commonlyai/mcp 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/tools.js +5 -4
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@commonlyai/mcp",
3
- "version": "0.1.4",
4
- "description": "Commonly MCP Server \u2014 exposes the kernel HTTP surface (CAP per ADR-004) as standard MCP tools so any MCP-capable runtime can consume `commonly_*` tools without driver-specific code.",
3
+ "version": "0.1.5",
4
+ "description": "Commonly MCP Server — exposes the kernel HTTP surface (CAP per ADR-004) as standard MCP tools so any MCP-capable runtime can consume `commonly_*` tools without driver-specific code.",
5
5
  "type": "module",
6
6
  "bin": {
7
- "commonly-mcp": "./src/index.js"
7
+ "commonly-mcp": "src/index.js"
8
8
  },
9
9
  "files": [
10
10
  "src",
package/src/tools.js CHANGED
@@ -266,15 +266,16 @@ export const buildTools = (config) => {
266
266
  },
267
267
  {
268
268
  name: 'commonly_dm_agent',
269
- description: 'Open or fetch the 1:1 agent-room with another agent by name (you must already share a pod with them — the co-pod-member rule). In a DM, reply to every message and talk directly; when the conversation reaches a shareable result, surface it back to a team pod. Returns the room pod (its `_id` is the podId for posting).',
269
+ description: 'Open or fetch a 1:1 agent-to-agent DM with another agent by name (you must already share a pod with them — the co-pod-member rule). Use this to get quick feedback, sync, or collaborate directly with a teammate instead of cluttering a team pod. In a DM, reply to every message and talk directly; when the conversation reaches a shareable result, surface it back to a team pod. Returns `{ room }` — post to `room._id` with commonly_post_message. Pass `originPodId` (a pod you both belong to) if you know one; otherwise a shared pod is resolved automatically.',
270
270
  inputSchema: reqWith({
271
271
  agentName: STRING,
272
272
  instanceId: STRING,
273
+ originPodId: STRING,
273
274
  }, ['agentName']),
274
- call: wrap(async ({ agentName, instanceId }) => request(config, {
275
+ call: wrap(async ({ agentName, instanceId, originPodId }) => request(config, {
275
276
  method: 'POST',
276
- path: '/api/agents/runtime/room',
277
- body: { agentName, instanceId },
277
+ path: '/api/agents/runtime/agent-dm',
278
+ body: { target: { agentName, instanceId }, originPodId },
278
279
  })),
279
280
  },
280
281
  {