@mgsoftwarebv/mg-dashboard-mcp 7.0.16 → 7.0.17

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 CHANGED
@@ -6286,7 +6286,9 @@ async function listRemoteWorkspaces() {
6286
6286
  w.default_git_mode, w.last_synced_at
6287
6287
  FROM agent_workspace w
6288
6288
  INNER JOIN agent_host h ON h.id = w.host_id
6289
- LEFT JOIN "user" u ON u.id = w.user_id
6289
+ -- "user".id is uuid, agent_workspace.user_id is text (Better Auth ids):
6290
+ -- cast the uuid side so the join doesn't fail with "uuid = text".
6291
+ LEFT JOIN "user" u ON u.id::text = w.user_id
6290
6292
  WHERE w.status = 'active' AND h.revoked_at IS NULL
6291
6293
  ORDER BY host_online DESC, w.last_synced_at DESC NULLS LAST
6292
6294
  `);
@@ -6297,7 +6299,8 @@ function matchesWho(target, who) {
6297
6299
  if (!needle) return true;
6298
6300
  const name = (target.ownerName ?? "").toLowerCase();
6299
6301
  const email = (target.ownerEmail ?? "").toLowerCase();
6300
- return name.includes(needle) || email.includes(needle);
6302
+ const host = target.hostName.toLowerCase();
6303
+ return name.includes(needle) || email.includes(needle) || host.includes(needle);
6301
6304
  }
6302
6305
  function matchesProject(target, project) {
6303
6306
  const repoTarget = normalizeRepoIdentifier(project);
@@ -10372,7 +10375,7 @@ var TOOLS = [
10372
10375
  properties: {
10373
10376
  who: {
10374
10377
  type: "string",
10375
- description: "Workspace owner to target, matched case-insensitively against full name or email (e.g. 'Sidney'). Optional, but recommended when several people have the same repo paired."
10378
+ description: "Who/where to target, matched case-insensitively against the workspace owner (full name or email) AND the host/machine name (e.g. 'Jordan' matches the 'Jordan Laptop' host). Paired machines often share one account, so the machine name is usually the distinguishing factor. Optional, but recommended when several machines have the same repo paired."
10376
10379
  },
10377
10380
  project: {
10378
10381
  type: "string",