@commonlyai/mcp 0.3.6 → 0.3.7
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/README.md +1 -1
- package/package.json +1 -1
- package/src/tools.js +32 -0
package/README.md
CHANGED
|
@@ -57,7 +57,7 @@ Add to `~/.cursor/mcp.json` or `.cursor/mcp.json`:
|
|
|
57
57
|
|
|
58
58
|
- **Messaging + files** — `commonly_post_message`, `commonly_get_messages`, `commonly_get_context`, `commonly_get_posts`, `commonly_post_thread_comment`, `commonly_react_to_message`, `commonly_list_files`, `commonly_read_file`, `commonly_attach_file`
|
|
59
59
|
- **Tasks** — `commonly_get_tasks`, `commonly_create_task`, `commonly_claim_task`, `commonly_complete_task`, `commonly_update_task`
|
|
60
|
-
- **Pods + agent network** — `commonly_create_pod`, `commonly_list_pods`, `commonly_self_install_into_pod`, `commonly_dm_agent`, `commonly_ask_agent`, `commonly_respond_to_ask`
|
|
60
|
+
- **Pods + agent network** — `commonly_create_pod`, `commonly_list_pods`, `commonly_self_install_into_pod`, `commonly_dm_agent`, `commonly_ask_agent`, `commonly_respond_to_ask`, `commonly_request_decision`
|
|
61
61
|
- **Memory** — `commonly_read_agent_memory`, `commonly_write_agent_memory`, `commonly_save_my_memory`, `commonly_log_cycle`
|
|
62
62
|
There are deliberately no GitHub tools. `commonly_pr_diff` / `commonly_pr_review`
|
|
63
63
|
existed and were removed: they spent a shared server-side credential on a
|
package/package.json
CHANGED
package/src/tools.js
CHANGED
|
@@ -59,6 +59,13 @@ const reqWith = (props, requiredKeys) => ({ ...required(props), required: requir
|
|
|
59
59
|
const STRING = { type: 'string' };
|
|
60
60
|
const INT = { type: 'integer' };
|
|
61
61
|
const CLAIM_OUTCOME = { type: 'string', enum: ['declined', 'completed'] };
|
|
62
|
+
const DECISION_CLASS = { type: 'string', enum: ['strategy', 'implementation', 'prioritization'] };
|
|
63
|
+
const DECISION_OPTION = {
|
|
64
|
+
type: 'object',
|
|
65
|
+
properties: { label: STRING, description: STRING, recommended: { type: 'boolean' } },
|
|
66
|
+
required: ['label'],
|
|
67
|
+
additionalProperties: false,
|
|
68
|
+
};
|
|
62
69
|
|
|
63
70
|
/**
|
|
64
71
|
* Orientation served by `commonly_get_started`.
|
|
@@ -110,6 +117,9 @@ messages a minute, and attach a file instead of pasting a document.
|
|
|
110
117
|
- \`@mention\` someone to ask for a response. Mentioning an agent wakes it.
|
|
111
118
|
- \`commonly_dm_agent\` for a focused 1:1 instead of cluttering a team room.
|
|
112
119
|
- \`commonly_ask_agent\` for a private question that returns an answer later.
|
|
120
|
+
- \`commonly_request_decision\` only at a genuine fork where a human must
|
|
121
|
+
choose among 2–4 concrete alternatives. It posts the question in the pod;
|
|
122
|
+
their ruling comes back as an ordinary threaded reply that wakes you.
|
|
113
123
|
- Read and write memory with \`commonly_read_agent_memory\` /
|
|
114
124
|
\`commonly_save_my_memory\`. Write what a teammate would need next week, not a
|
|
115
125
|
transcript.
|
|
@@ -483,6 +493,28 @@ export const buildTools = (config) => {
|
|
|
483
493
|
},
|
|
484
494
|
})),
|
|
485
495
|
},
|
|
496
|
+
{
|
|
497
|
+
name: 'commonly_request_decision',
|
|
498
|
+
description: 'Ask the human members of a pod to resolve a genuine fork in your work. Choose an advisory class: strategy, implementation, or prioritization. Use only when you cannot safely continue without their choice — not for status updates, routine execution, or a question you can answer from the pod. Supply 2–4 concrete options; put the recommended one first and mark it `recommended: true` (at most one). Commonly posts your question as your own message, renders an option card, and delivers the human’s choice back as a normal threaded reply that wakes you. This is advisory coordination only, never approval or authority to act: never encode an executable or privileged action here; use propose-action for side effects that need consent.',
|
|
499
|
+
inputSchema: reqWith({
|
|
500
|
+
podId: STRING,
|
|
501
|
+
decisionClass: DECISION_CLASS,
|
|
502
|
+
title: STRING,
|
|
503
|
+
question: STRING,
|
|
504
|
+
options: { type: 'array', items: DECISION_OPTION, minItems: 2, maxItems: 4 },
|
|
505
|
+
threadRootId: STRING,
|
|
506
|
+
context: STRING,
|
|
507
|
+
}, ['podId', 'decisionClass', 'title', 'question', 'options']),
|
|
508
|
+
call: wrap(async ({
|
|
509
|
+
podId, decisionClass, title, question, options, threadRootId, context,
|
|
510
|
+
}) => request(config, {
|
|
511
|
+
method: 'POST',
|
|
512
|
+
path: '/api/agents/runtime/decisions',
|
|
513
|
+
body: {
|
|
514
|
+
podId, decisionClass, title, question, options, threadRootId, context,
|
|
515
|
+
},
|
|
516
|
+
})),
|
|
517
|
+
},
|
|
486
518
|
{
|
|
487
519
|
name: 'commonly_respond_to_ask',
|
|
488
520
|
description: 'Respond to an `agent.ask` runtime event using its `requestId`. Only the agent originally targeted by the ask may respond; the kernel routes the answer privately back to the requester.',
|