@mgsoftwarebv/mg-dashboard-mcp 7.0.18 → 7.0.19
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 +3 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6207,7 +6207,6 @@ function normalizeRepoIdentifier(value) {
|
|
|
6207
6207
|
var HANDOFF_PROMPT_CHARS = 4e3;
|
|
6208
6208
|
async function queueAgentRun(args2) {
|
|
6209
6209
|
const db2 = getDb();
|
|
6210
|
-
const model = args2.model ?? null;
|
|
6211
6210
|
const handoffPrompt = args2.prompt.trim().slice(0, HANDOFF_PROMPT_CHARS);
|
|
6212
6211
|
const metadata = { ...args2.metadata ?? {}, source: args2.source };
|
|
6213
6212
|
await db2.execute(sql`
|
|
@@ -6216,8 +6215,7 @@ async function queueAgentRun(args2) {
|
|
|
6216
6215
|
${args2.workspace.host_id}, ${args2.userId}, 'open_chat_in_ide',
|
|
6217
6216
|
${JSON.stringify({
|
|
6218
6217
|
workspacePath: args2.workspace.path,
|
|
6219
|
-
prompt: handoffPrompt
|
|
6220
|
-
model
|
|
6218
|
+
prompt: handoffPrompt
|
|
6221
6219
|
})}::jsonb
|
|
6222
6220
|
)
|
|
6223
6221
|
`);
|
|
@@ -6227,7 +6225,7 @@ async function queueAgentRun(args2) {
|
|
|
6227
6225
|
local_conversation_id, title, status, model, last_message_at, metadata
|
|
6228
6226
|
) VALUES (
|
|
6229
6227
|
${args2.userId}, ${args2.workspace.host_id}, ${args2.workspace.id}, 'ide',
|
|
6230
|
-
'ide_import', NULL, ${args2.title}, 'idle',
|
|
6228
|
+
'ide_import', NULL, ${args2.title}, 'idle', NULL, now(),
|
|
6231
6229
|
${JSON.stringify(metadata)}::jsonb
|
|
6232
6230
|
)
|
|
6233
6231
|
RETURNING id
|
|
@@ -10359,7 +10357,7 @@ var TOOLS = [
|
|
|
10359
10357
|
},
|
|
10360
10358
|
{
|
|
10361
10359
|
name: "cursor-remote-run",
|
|
10362
|
-
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. Returns the conversationId and a dashboard link to follow the chat. Call cursor-remote-list first if unsure about who/project.",
|
|
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.",
|
|
10363
10361
|
inputSchema: {
|
|
10364
10362
|
type: "object",
|
|
10365
10363
|
properties: {
|
|
@@ -10375,10 +10373,6 @@ var TOOLS = [
|
|
|
10375
10373
|
type: "string",
|
|
10376
10374
|
description: "The full, self-contained instruction for the agent. Write it as an optimized, scoped task: what to change, relevant files/areas, and acceptance criteria. The agent has no other context."
|
|
10377
10375
|
},
|
|
10378
|
-
model: {
|
|
10379
|
-
type: "string",
|
|
10380
|
-
description: "Optional Cursor model slug to run with (e.g. a Sonnet-tier model). Omit to use the host default."
|
|
10381
|
-
},
|
|
10382
10376
|
branch: {
|
|
10383
10377
|
type: "string",
|
|
10384
10378
|
description: "Optional: prefer a workspace already checked out on this branch when several match."
|
|
@@ -10677,7 +10671,6 @@ ${facets.join(", ")}` : ""),
|
|
|
10677
10671
|
}
|
|
10678
10672
|
const who = typeof a.who === "string" ? a.who.trim() : null;
|
|
10679
10673
|
const branch = typeof a.branch === "string" ? a.branch.trim() : null;
|
|
10680
|
-
const model = typeof a.model === "string" ? a.model.trim() : null;
|
|
10681
10674
|
const resolution = await resolveRemoteTarget({ who, project, branch });
|
|
10682
10675
|
if (!resolution.ok) {
|
|
10683
10676
|
const describe = (c) => ` - ${c.ownerName ?? c.ownerEmail ?? c.ownerUserId} \xB7 ${c.name}${c.gitRepository ? ` (${c.gitRepository}${c.gitBranch ? `@${c.gitBranch}` : ""})` : ""}`;
|
|
@@ -10707,7 +10700,6 @@ ${candidates || " (none online \u2014 start the MG Agent Host)"}`
|
|
|
10707
10700
|
prompt,
|
|
10708
10701
|
title,
|
|
10709
10702
|
source: "mcp_remote",
|
|
10710
|
-
model,
|
|
10711
10703
|
metadata: {
|
|
10712
10704
|
requestedBy: ctx.userId,
|
|
10713
10705
|
who: who ?? null,
|