@vheins/local-memory-mcp 0.18.5 → 0.18.6
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.
|
@@ -81,8 +81,8 @@ function loadServerInstructions() {
|
|
|
81
81
|
// src/mcp/capabilities.ts
|
|
82
82
|
var __dirname2 = path2.dirname(fileURLToPath2(import.meta.url));
|
|
83
83
|
var pkgVersion = "0.1.0";
|
|
84
|
-
if ("0.18.
|
|
85
|
-
pkgVersion = "0.18.
|
|
84
|
+
if ("0.18.6") {
|
|
85
|
+
pkgVersion = "0.18.6";
|
|
86
86
|
} else {
|
|
87
87
|
let searchDir = __dirname2;
|
|
88
88
|
for (let i = 0; i < 5; i++) {
|
|
@@ -4070,7 +4070,10 @@ var TOOL_DEFINITIONS = [
|
|
|
4070
4070
|
inputSchema: {
|
|
4071
4071
|
type: "object",
|
|
4072
4072
|
properties: {
|
|
4073
|
-
owner: {
|
|
4073
|
+
owner: {
|
|
4074
|
+
type: "string",
|
|
4075
|
+
description: "GitHub repository owner (username or organization). For repo 'vheins/my-repo', owner='vheins'. CRITICAL: this is the GitHub owner, NOT the agent name. Do NOT use the calling agent's name."
|
|
4076
|
+
},
|
|
4074
4077
|
repo: { type: "string", description: "Repository/project name. Optional when a single MCP root is active." },
|
|
4075
4078
|
objective: { type: "string", minLength: 5, description: "Question or synthesis objective." },
|
|
4076
4079
|
current_file_path: {
|
|
@@ -4119,7 +4122,7 @@ var TOOL_DEFINITIONS = [
|
|
|
4119
4122
|
properties: {
|
|
4120
4123
|
owner: {
|
|
4121
4124
|
type: "string",
|
|
4122
|
-
description: "
|
|
4125
|
+
description: "GitHub repository owner (username or organization). For repo 'vheins/my-repo', owner='vheins'. CRITICAL: this is the GitHub owner, NOT the agent name. Do NOT use the calling agent's name."
|
|
4123
4126
|
},
|
|
4124
4127
|
repo: {
|
|
4125
4128
|
type: "string",
|
|
@@ -4193,7 +4196,10 @@ var TOOL_DEFINITIONS = [
|
|
|
4193
4196
|
inputSchema: {
|
|
4194
4197
|
type: "object",
|
|
4195
4198
|
properties: {
|
|
4196
|
-
owner: {
|
|
4199
|
+
owner: {
|
|
4200
|
+
type: "string",
|
|
4201
|
+
description: "GitHub repository owner (username or organization). For repo 'vheins/my-repo', owner='vheins'. CRITICAL: this is the GitHub owner, NOT the agent name. Do NOT use the calling agent's name."
|
|
4202
|
+
},
|
|
4197
4203
|
repo: { type: "string", description: "Repository name" },
|
|
4198
4204
|
id: { type: "string", format: "uuid", description: "Task ID (optional if task_code is provided)" },
|
|
4199
4205
|
task_code: { type: "string", description: "Task code (e.g. TASK-001) (optional if id is provided)" },
|
|
@@ -4256,7 +4262,10 @@ var TOOL_DEFINITIONS = [
|
|
|
4256
4262
|
scope: {
|
|
4257
4263
|
type: "object",
|
|
4258
4264
|
properties: {
|
|
4259
|
-
owner: {
|
|
4265
|
+
owner: {
|
|
4266
|
+
type: "string",
|
|
4267
|
+
description: "GitHub repository owner (username or organization). For repo 'vheins/my-repo', owner='vheins'. CRITICAL: this is the GitHub owner, NOT the agent name. Do NOT use the calling agent's name."
|
|
4268
|
+
},
|
|
4260
4269
|
repo: { type: "string", description: "Repository/project name" },
|
|
4261
4270
|
branch: { type: "string", description: "Git branch this memory relates to" },
|
|
4262
4271
|
folder: { type: "string", description: "Subdirectory within the repo" },
|
|
@@ -4305,7 +4314,10 @@ var TOOL_DEFINITIONS = [
|
|
|
4305
4314
|
scope: {
|
|
4306
4315
|
type: "object",
|
|
4307
4316
|
properties: {
|
|
4308
|
-
owner: {
|
|
4317
|
+
owner: {
|
|
4318
|
+
type: "string",
|
|
4319
|
+
description: "GitHub repository owner (username or organization). For repo 'vheins/my-repo', owner='vheins'. CRITICAL: this is the GitHub owner, NOT the agent name. Do NOT use the calling agent's name."
|
|
4320
|
+
},
|
|
4309
4321
|
repo: { type: "string", description: "Repository/project name" },
|
|
4310
4322
|
branch: { type: "string", description: "Git branch this memory relates to" },
|
|
4311
4323
|
folder: { type: "string", description: "Subdirectory within the repo" },
|
|
@@ -4446,7 +4458,10 @@ var TOOL_DEFINITIONS = [
|
|
|
4446
4458
|
description: "Search keyword to match against memory titles and content"
|
|
4447
4459
|
},
|
|
4448
4460
|
prompt: { type: "string", description: "Natural language prompt for semantic search" },
|
|
4449
|
-
owner: {
|
|
4461
|
+
owner: {
|
|
4462
|
+
type: "string",
|
|
4463
|
+
description: "GitHub repository owner (username or organization). For repo 'vheins/my-repo', owner='vheins'. CRITICAL: this is the GitHub owner, NOT the agent name. Do NOT use the calling agent's name."
|
|
4464
|
+
},
|
|
4450
4465
|
repo: { type: "string", description: "Repository/project name" },
|
|
4451
4466
|
current_tags: {
|
|
4452
4467
|
type: "array",
|
|
@@ -4474,7 +4489,10 @@ var TOOL_DEFINITIONS = [
|
|
|
4474
4489
|
scope: {
|
|
4475
4490
|
type: "object",
|
|
4476
4491
|
properties: {
|
|
4477
|
-
owner: {
|
|
4492
|
+
owner: {
|
|
4493
|
+
type: "string",
|
|
4494
|
+
description: "GitHub repository owner (username or organization). For repo 'vheins/my-repo', owner='vheins'. CRITICAL: this is the GitHub owner, NOT the agent name. Do NOT use the calling agent's name."
|
|
4495
|
+
},
|
|
4478
4496
|
repo: { type: "string", description: "Repository/project name" },
|
|
4479
4497
|
branch: { type: "string", description: "Git branch filter" },
|
|
4480
4498
|
folder: { type: "string", description: "Subdirectory filter" },
|
|
@@ -4530,7 +4548,10 @@ var TOOL_DEFINITIONS = [
|
|
|
4530
4548
|
inputSchema: {
|
|
4531
4549
|
type: "object",
|
|
4532
4550
|
properties: {
|
|
4533
|
-
owner: {
|
|
4551
|
+
owner: {
|
|
4552
|
+
type: "string",
|
|
4553
|
+
description: "GitHub repository owner (username or organization). For repo 'vheins/my-repo', owner='vheins'. CRITICAL: this is the GitHub owner, NOT the agent name. Do NOT use the calling agent's name."
|
|
4554
|
+
},
|
|
4534
4555
|
repo: { type: "string", description: "Repository/project name" },
|
|
4535
4556
|
signals: {
|
|
4536
4557
|
type: "array",
|
|
@@ -4659,7 +4680,10 @@ var TOOL_DEFINITIONS = [
|
|
|
4659
4680
|
inputSchema: {
|
|
4660
4681
|
type: "object",
|
|
4661
4682
|
properties: {
|
|
4662
|
-
owner: {
|
|
4683
|
+
owner: {
|
|
4684
|
+
type: "string",
|
|
4685
|
+
description: "GitHub repository owner (username or organization). For repo 'vheins/my-repo', owner='vheins'. CRITICAL: this is the GitHub owner, NOT the agent name. Do NOT use the calling agent's name."
|
|
4686
|
+
},
|
|
4663
4687
|
repo: { type: "string", description: "Repository/project name (required)" },
|
|
4664
4688
|
limit: {
|
|
4665
4689
|
type: "number",
|
|
@@ -4733,7 +4757,10 @@ var TOOL_DEFINITIONS = [
|
|
|
4733
4757
|
inputSchema: {
|
|
4734
4758
|
type: "object",
|
|
4735
4759
|
properties: {
|
|
4736
|
-
owner: {
|
|
4760
|
+
owner: {
|
|
4761
|
+
type: "string",
|
|
4762
|
+
description: "GitHub repository owner (username or organization). For repo 'vheins/my-repo', owner='vheins'. CRITICAL: this is the GitHub owner, NOT the agent name. Do NOT use the calling agent's name."
|
|
4763
|
+
},
|
|
4737
4764
|
repo: { type: "string", description: "Repository/project name" },
|
|
4738
4765
|
task_code: { type: "string", description: "Unique task code (e.g. TASK-001) (Required for single task)" },
|
|
4739
4766
|
phase: { type: "string", description: "Project phase (Required for single task)" },
|
|
@@ -4846,7 +4873,10 @@ var TOOL_DEFINITIONS = [
|
|
|
4846
4873
|
inputSchema: {
|
|
4847
4874
|
type: "object",
|
|
4848
4875
|
properties: {
|
|
4849
|
-
owner: {
|
|
4876
|
+
owner: {
|
|
4877
|
+
type: "string",
|
|
4878
|
+
description: "GitHub repository owner (username or organization). For repo 'vheins/my-repo', owner='vheins'. CRITICAL: this is the GitHub owner, NOT the agent name. Do NOT use the calling agent's name."
|
|
4879
|
+
},
|
|
4850
4880
|
repo: { type: "string", description: "Repository name" },
|
|
4851
4881
|
id: { type: "string", format: "uuid", description: "Task ID (for single update)" },
|
|
4852
4882
|
ids: { type: "array", items: { type: "string", format: "uuid" }, description: "Task IDs (for bulk update)" },
|
|
@@ -4939,7 +4969,10 @@ var TOOL_DEFINITIONS = [
|
|
|
4939
4969
|
inputSchema: {
|
|
4940
4970
|
type: "object",
|
|
4941
4971
|
properties: {
|
|
4942
|
-
owner: {
|
|
4972
|
+
owner: {
|
|
4973
|
+
type: "string",
|
|
4974
|
+
description: "GitHub repository owner (username or organization). For repo 'vheins/my-repo', owner='vheins'. CRITICAL: this is the GitHub owner, NOT the agent name. Do NOT use the calling agent's name."
|
|
4975
|
+
},
|
|
4943
4976
|
repo: { type: "string", description: "Repository name" },
|
|
4944
4977
|
id: {
|
|
4945
4978
|
type: "string",
|
|
@@ -4977,7 +5010,10 @@ var TOOL_DEFINITIONS = [
|
|
|
4977
5010
|
inputSchema: {
|
|
4978
5011
|
type: "object",
|
|
4979
5012
|
properties: {
|
|
4980
|
-
owner: {
|
|
5013
|
+
owner: {
|
|
5014
|
+
type: "string",
|
|
5015
|
+
description: "GitHub repository owner (username or organization). For repo 'vheins/my-repo', owner='vheins'. CRITICAL: this is the GitHub owner, NOT the agent name. Do NOT use the calling agent's name."
|
|
5016
|
+
},
|
|
4981
5017
|
repo: {
|
|
4982
5018
|
type: "string",
|
|
4983
5019
|
description: "Repository/project name (required)"
|
|
@@ -5054,7 +5090,10 @@ var TOOL_DEFINITIONS = [
|
|
|
5054
5090
|
inputSchema: {
|
|
5055
5091
|
type: "object",
|
|
5056
5092
|
properties: {
|
|
5057
|
-
owner: {
|
|
5093
|
+
owner: {
|
|
5094
|
+
type: "string",
|
|
5095
|
+
description: "GitHub repository owner (username or organization). For repo 'vheins/my-repo', owner='vheins'. CRITICAL: this is the GitHub owner, NOT the agent name. Do NOT use the calling agent's name."
|
|
5096
|
+
},
|
|
5058
5097
|
repo: { type: "string", description: "Repository/project name" },
|
|
5059
5098
|
query: {
|
|
5060
5099
|
type: "string",
|
|
@@ -5112,7 +5151,10 @@ var TOOL_DEFINITIONS = [
|
|
|
5112
5151
|
inputSchema: {
|
|
5113
5152
|
type: "object",
|
|
5114
5153
|
properties: {
|
|
5115
|
-
owner: {
|
|
5154
|
+
owner: {
|
|
5155
|
+
type: "string",
|
|
5156
|
+
description: "GitHub repository owner (username or organization). For repo 'vheins/my-repo', owner='vheins'. CRITICAL: this is the GitHub owner, NOT the agent name. Do NOT use the calling agent's name."
|
|
5157
|
+
},
|
|
5116
5158
|
repo: { type: "string", description: "Repository/project name" },
|
|
5117
5159
|
from_agent: { type: "string", description: "Agent creating the handoff" },
|
|
5118
5160
|
to_agent: { type: "string", description: "Optional target agent" },
|
|
@@ -5187,7 +5229,10 @@ var TOOL_DEFINITIONS = [
|
|
|
5187
5229
|
inputSchema: {
|
|
5188
5230
|
type: "object",
|
|
5189
5231
|
properties: {
|
|
5190
|
-
owner: {
|
|
5232
|
+
owner: {
|
|
5233
|
+
type: "string",
|
|
5234
|
+
description: "GitHub repository owner (username or organization). For repo 'vheins/my-repo', owner='vheins'. CRITICAL: this is the GitHub owner, NOT the agent name. Do NOT use the calling agent's name."
|
|
5235
|
+
},
|
|
5191
5236
|
repo: { type: "string", description: "Repository/project name" },
|
|
5192
5237
|
status: { type: "string", enum: ["pending", "accepted", "rejected", "expired"] },
|
|
5193
5238
|
from_agent: { type: "string" },
|
|
@@ -5237,7 +5282,10 @@ var TOOL_DEFINITIONS = [
|
|
|
5237
5282
|
inputSchema: {
|
|
5238
5283
|
type: "object",
|
|
5239
5284
|
properties: {
|
|
5240
|
-
owner: {
|
|
5285
|
+
owner: {
|
|
5286
|
+
type: "string",
|
|
5287
|
+
description: "GitHub repository owner (username or organization). For repo 'vheins/my-repo', owner='vheins'. CRITICAL: this is the GitHub owner, NOT the agent name. Do NOT use the calling agent's name."
|
|
5288
|
+
},
|
|
5241
5289
|
repo: { type: "string", description: "Repository/project name" },
|
|
5242
5290
|
task_id: {
|
|
5243
5291
|
type: "string",
|
|
@@ -5281,7 +5329,10 @@ var TOOL_DEFINITIONS = [
|
|
|
5281
5329
|
inputSchema: {
|
|
5282
5330
|
type: "object",
|
|
5283
5331
|
properties: {
|
|
5284
|
-
owner: {
|
|
5332
|
+
owner: {
|
|
5333
|
+
type: "string",
|
|
5334
|
+
description: "GitHub repository owner (username or organization). For repo 'vheins/my-repo', owner='vheins'. CRITICAL: this is the GitHub owner, NOT the agent name. Do NOT use the calling agent's name."
|
|
5335
|
+
},
|
|
5285
5336
|
repo: { type: "string", description: "Repository/project name" },
|
|
5286
5337
|
agent: { type: "string", description: "Optional agent filter" },
|
|
5287
5338
|
active_only: { type: "boolean", description: "When true, return only unreleased claims" },
|
|
@@ -5330,7 +5381,10 @@ var TOOL_DEFINITIONS = [
|
|
|
5330
5381
|
inputSchema: {
|
|
5331
5382
|
type: "object",
|
|
5332
5383
|
properties: {
|
|
5333
|
-
owner: {
|
|
5384
|
+
owner: {
|
|
5385
|
+
type: "string",
|
|
5386
|
+
description: "GitHub repository owner (username or organization). For repo 'vheins/my-repo', owner='vheins'. CRITICAL: this is the GitHub owner, NOT the agent name. Do NOT use the calling agent's name."
|
|
5387
|
+
},
|
|
5334
5388
|
repo: { type: "string", description: "Repository name" },
|
|
5335
5389
|
task_id: {
|
|
5336
5390
|
type: "string",
|
|
@@ -5368,7 +5422,10 @@ var TOOL_DEFINITIONS = [
|
|
|
5368
5422
|
inputSchema: {
|
|
5369
5423
|
type: "object",
|
|
5370
5424
|
properties: {
|
|
5371
|
-
owner: {
|
|
5425
|
+
owner: {
|
|
5426
|
+
type: "string",
|
|
5427
|
+
description: "GitHub repository owner (username or organization). For repo 'vheins/my-repo', owner='vheins'. CRITICAL: this is the GitHub owner, NOT the agent name. Do NOT use the calling agent's name."
|
|
5428
|
+
},
|
|
5372
5429
|
name: { type: "string", minLength: 3, maxLength: 255, description: "Human-readable standard name" },
|
|
5373
5430
|
content: {
|
|
5374
5431
|
type: "string",
|
package/dist/dashboard/server.js
CHANGED
package/dist/mcp/server.js
CHANGED
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
toContextSlug,
|
|
64
64
|
updateSessionFromInitialize,
|
|
65
65
|
updateSessionRoots
|
|
66
|
-
} from "../chunk-
|
|
66
|
+
} from "../chunk-N7K2MMB2.js";
|
|
67
67
|
|
|
68
68
|
// src/mcp/server.ts
|
|
69
69
|
import readline from "readline";
|
|
@@ -2818,6 +2818,11 @@ function normalizeToolArguments(args, session2) {
|
|
|
2818
2818
|
const repoVal2 = nextArgs.repo || "";
|
|
2819
2819
|
const parsed = parseRepoInput(repoVal2, void 0);
|
|
2820
2820
|
nextArgs.owner = parsed.owner || inferOwnerFromSession(session2) || "";
|
|
2821
|
+
if (nextArgs.owner && !repoVal2.includes("/")) {
|
|
2822
|
+
console.warn(
|
|
2823
|
+
`[router] owner inferred from session (${nextArgs.owner}) \u2014 may be incorrect. Agents should pass explicit owner/repo.`
|
|
2824
|
+
);
|
|
2825
|
+
}
|
|
2821
2826
|
}
|
|
2822
2827
|
if (scope && !scope.owner) {
|
|
2823
2828
|
const repoVal2 = scope.repo || nextArgs.repo || "";
|
|
@@ -14,6 +14,19 @@ All data (memories, tasks, handoffs, claims) is scoped by **owner/repo**:
|
|
|
14
14
|
|
|
15
15
|
Pass both `owner` and `repo` whenever a tool requires them. The `owner/repo` pair forms the unique data boundary.
|
|
16
16
|
|
|
17
|
+
### Owner Rule (CRITICAL)
|
|
18
|
+
|
|
19
|
+
The `owner` field MUST be the GitHub username or organization that OWNS the repository. For example:
|
|
20
|
+
|
|
21
|
+
- Repo `vheins/sentinel-agent` → owner=`vheins`
|
|
22
|
+
- Repo `my-org/my-project` → owner=`my-org`
|
|
23
|
+
|
|
24
|
+
NEVER use the agent's name (e.g., `sentinel`, `test-executor`, `claude`) as the owner.
|
|
25
|
+
NEVER guess the owner from the working directory path.
|
|
26
|
+
If unsure, use `owner/repo` format for the `repo` parameter (e.g., `repo='vheins/sentinel-agent'`) — the server will extract the owner automatically.
|
|
27
|
+
|
|
28
|
+
Violation: tasks created with a wrong owner will be invisible to other agents querying with the correct owner.
|
|
29
|
+
|
|
17
30
|
## Session Start Mode
|
|
18
31
|
|
|
19
32
|
Entry=orient → hydrate → ready Guard: S(N) req S(N-1)✅
|