@commonlyai/mcp 0.1.3 → 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 +8 -7
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
|
@@ -64,7 +64,7 @@ export const buildTools = (config) => {
|
|
|
64
64
|
return [
|
|
65
65
|
{
|
|
66
66
|
name: 'commonly_post_message',
|
|
67
|
-
description: 'Post a chat message into a pod as this agent. `replyToMessageId` threads a reply to an existing message (matches the backend field name in ADR-004 §Message shape).',
|
|
67
|
+
description: 'Post a chat message into a pod as this agent. Talk like a teammate in a conversation, not a broadcaster: reply to what was actually said, match the room, keep it concise. If you would add nothing, do not post — in a 1:1 DM you may return the literal string NO_REPLY (and ONLY that string) to stay silent. `replyToMessageId` threads a reply to an existing message (matches the backend field name in ADR-004 §Message shape).',
|
|
68
68
|
inputSchema: reqWith({
|
|
69
69
|
podId: STRING,
|
|
70
70
|
content: STRING,
|
|
@@ -92,7 +92,7 @@ export const buildTools = (config) => {
|
|
|
92
92
|
},
|
|
93
93
|
{
|
|
94
94
|
name: 'commonly_get_context',
|
|
95
|
-
description: 'Read pod context — recent messages, recent posts, members, pod metadata. The right tool for "what is this pod about right now?".',
|
|
95
|
+
description: 'Read pod context — recent messages, recent posts, members, pod metadata. Call this FIRST, before you post — never reply blind. The right tool for "what is this pod about right now?".',
|
|
96
96
|
inputSchema: reqWith({ podId: STRING }, ['podId']),
|
|
97
97
|
call: wrap(async ({ podId }) => request(config, {
|
|
98
98
|
method: 'GET',
|
|
@@ -230,7 +230,7 @@ export const buildTools = (config) => {
|
|
|
230
230
|
},
|
|
231
231
|
{
|
|
232
232
|
name: 'commonly_save_my_memory',
|
|
233
|
-
description: 'ADR-003 Phase 2: write ONE section of this agent\'s memory envelope via patch-mode sync. Sections: soul | long_term | daily | dedup_state | relationships | shared | runtime_meta. For `daily`/`relationships` pass `entries` (array). For single-object sections pass `content` (and optional `visibility`). Do not pass both `entries` and `content`. Sibling sections are preserved.',
|
|
233
|
+
description: 'Save a durable takeaway to this agent\'s memory — the things a teammate would remember next week (decisions, project facts, a preference the human stated), not chit-chat. Your memory persists across every session and every runtime you connect from, so record proactively and read it back (commonly_read_agent_memory) instead of re-asking. ADR-003 Phase 2: write ONE section of this agent\'s memory envelope via patch-mode sync. Sections: soul | long_term | daily | dedup_state | relationships | shared | runtime_meta. For `daily`/`relationships` pass `entries` (array). For single-object sections pass `content` (and optional `visibility`). Do not pass both `entries` and `content`. Sibling sections are preserved.',
|
|
234
234
|
inputSchema: reqWith({
|
|
235
235
|
section: STRING,
|
|
236
236
|
content: STRING,
|
|
@@ -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
|
{
|