@mgsoftwarebv/mg-dashboard-mcp 7.0.19 → 7.0.20
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/dist/index.js +23 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6215,7 +6215,12 @@ async function queueAgentRun(args2) {
|
|
|
6215
6215
|
${args2.workspace.host_id}, ${args2.userId}, 'open_chat_in_ide',
|
|
6216
6216
|
${JSON.stringify({
|
|
6217
6217
|
workspacePath: args2.workspace.path,
|
|
6218
|
-
prompt: handoffPrompt
|
|
6218
|
+
prompt: handoffPrompt,
|
|
6219
|
+
...args2.autoCommit ? {
|
|
6220
|
+
autoCommit: true,
|
|
6221
|
+
commitBranch: args2.commitBranch ?? null,
|
|
6222
|
+
commitMessage: args2.commitMessage ?? null
|
|
6223
|
+
} : {}
|
|
6219
6224
|
})}::jsonb
|
|
6220
6225
|
)
|
|
6221
6226
|
`);
|
|
@@ -10357,7 +10362,7 @@ var TOOLS = [
|
|
|
10357
10362
|
},
|
|
10358
10363
|
{
|
|
10359
10364
|
name: "cursor-remote-run",
|
|
10360
|
-
description: "Open a Cursor agent chat in a teammate's real IDE to make a code change. Resolve `who` (workspace owner name/email or machine name) + `project` (repo 'org/repo', URL, or workspace name) to a single online workspace, then hand off via the agent-host daemon: it opens that workspace's Cursor window, prefills the prompt and auto-submits it, so the developer sees the agent working live in their IDE. Use this when an AI (e.g. a ticket assistant) should hand a self-contained, well-scoped fix prompt to a developer's PC. There is no headless run and no diff-approval step \u2014 the developer reviews and commits in the IDE itself. The chat runs on the developer's default Cursor model (no model override). Returns the conversationId and a dashboard link to follow the chat. Call cursor-remote-list first if unsure about who/project.",
|
|
10365
|
+
description: "Open a Cursor agent chat in a teammate's real IDE to make a code change. Resolve `who` (workspace owner name/email or machine name) + `project` (repo 'org/repo', URL, or workspace name) to a single online workspace, then hand off via the agent-host daemon: it opens that workspace's Cursor window, prefills the prompt and auto-submits it, so the developer sees the agent working live in their IDE. Use this when an AI (e.g. a ticket assistant) should hand a self-contained, well-scoped fix prompt to a developer's PC. There is no headless run and no diff-approval step \u2014 the developer reviews and commits in the IDE itself, unless autoCommit is set. The chat runs on the developer's default Cursor model (no model override). Optionally set autoCommit to have the daemon wait until the agent stops editing, then pull --rebase + commit + push the changes (clean-only: skipped if the workspace already had uncommitted changes). Returns the conversationId and a dashboard link to follow the chat. Call cursor-remote-list first if unsure about who/project.",
|
|
10361
10366
|
inputSchema: {
|
|
10362
10367
|
type: "object",
|
|
10363
10368
|
properties: {
|
|
@@ -10376,6 +10381,14 @@ var TOOLS = [
|
|
|
10376
10381
|
branch: {
|
|
10377
10382
|
type: "string",
|
|
10378
10383
|
description: "Optional: prefer a workspace already checked out on this branch when several match."
|
|
10384
|
+
},
|
|
10385
|
+
autoCommit: {
|
|
10386
|
+
type: "boolean",
|
|
10387
|
+
description: "When true, after the agent finishes editing the daemon runs pull --rebase + commit + push automatically. Clean-only: skipped if the workspace already had uncommitted changes at handoff time, so pre-existing work-in-progress is never committed. Default false (developer commits manually in the IDE)."
|
|
10388
|
+
},
|
|
10389
|
+
commitBranch: {
|
|
10390
|
+
type: "string",
|
|
10391
|
+
description: "Only with autoCommit. Branch to commit + push the agent's changes to (e.g. a ticket number like '2025-REFRO-119'); created from the current HEAD if it doesn't exist. Omit to commit on the workspace's current branch."
|
|
10379
10392
|
}
|
|
10380
10393
|
},
|
|
10381
10394
|
required: ["project", "prompt"]
|
|
@@ -10671,6 +10684,8 @@ ${facets.join(", ")}` : ""),
|
|
|
10671
10684
|
}
|
|
10672
10685
|
const who = typeof a.who === "string" ? a.who.trim() : null;
|
|
10673
10686
|
const branch = typeof a.branch === "string" ? a.branch.trim() : null;
|
|
10687
|
+
const autoCommit = a.autoCommit === true;
|
|
10688
|
+
const commitBranch = typeof a.commitBranch === "string" && a.commitBranch.trim() ? a.commitBranch.trim() : null;
|
|
10674
10689
|
const resolution = await resolveRemoteTarget({ who, project, branch });
|
|
10675
10690
|
if (!resolution.ok) {
|
|
10676
10691
|
const describe = (c) => ` - ${c.ownerName ?? c.ownerEmail ?? c.ownerUserId} \xB7 ${c.name}${c.gitRepository ? ` (${c.gitRepository}${c.gitBranch ? `@${c.gitBranch}` : ""})` : ""}`;
|
|
@@ -10700,6 +10715,9 @@ ${candidates || " (none online \u2014 start the MG Agent Host)"}`
|
|
|
10700
10715
|
prompt,
|
|
10701
10716
|
title,
|
|
10702
10717
|
source: "mcp_remote",
|
|
10718
|
+
autoCommit,
|
|
10719
|
+
commitBranch,
|
|
10720
|
+
commitMessage: autoCommit ? `agent: ${title}` : null,
|
|
10703
10721
|
metadata: {
|
|
10704
10722
|
requestedBy: ctx.userId,
|
|
10705
10723
|
who: who ?? null,
|
|
@@ -10726,7 +10744,9 @@ ${candidates || " (none online \u2014 start the MG Agent Host)"}`
|
|
|
10726
10744
|
branch: target.gitBranch,
|
|
10727
10745
|
conversationId: queued.conversationId,
|
|
10728
10746
|
conversationUrl,
|
|
10729
|
-
|
|
10747
|
+
autoCommit,
|
|
10748
|
+
commitBranch: autoCommit ? commitBranch ?? "(current branch)" : null,
|
|
10749
|
+
note: autoCommit ? `Opens the workspace's real Cursor IDE, prefills the prompt and auto-submits it. After the agent stops editing, the daemon will pull --rebase + commit + push to ${commitBranch ?? "the current branch"} (skipped if the workspace had uncommitted changes at start).` : "Opens the workspace's real Cursor IDE, prefills the prompt and auto-submits it. The developer sees the agent working live and reviews/commits in the IDE \u2014 no diff approval step."
|
|
10730
10750
|
},
|
|
10731
10751
|
null,
|
|
10732
10752
|
2
|