@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.
- package/package.json +3 -3
- 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
|
-
"description": "Commonly MCP Server
|
|
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": "
|
|
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
|
|
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/
|
|
277
|
-
body: { agentName, instanceId },
|
|
277
|
+
path: '/api/agents/runtime/agent-dm',
|
|
278
|
+
body: { target: { agentName, instanceId }, originPodId },
|
|
278
279
|
})),
|
|
279
280
|
},
|
|
280
281
|
{
|