@vheins/local-memory-mcp 0.19.6 → 0.19.8

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.
@@ -3498,6 +3498,11 @@ function inferRepoFromSession(session) {
3498
3498
  if (roots.length === 1) {
3499
3499
  return path3.basename(roots[0]);
3500
3500
  }
3501
+ if (roots.length === 0) {
3502
+ if (!session) return void 0;
3503
+ const cwd = process.cwd();
3504
+ return path3.basename(cwd);
3505
+ }
3501
3506
  return void 0;
3502
3507
  }
3503
3508
  function inferOwnerFromSession(session) {
@@ -3508,6 +3513,14 @@ function inferOwnerFromSession(session) {
3508
3513
  return parts[parts.length - 2];
3509
3514
  }
3510
3515
  }
3516
+ if (roots.length === 0) {
3517
+ if (!session) return void 0;
3518
+ const cwd = process.cwd();
3519
+ const parts = cwd.split(path3.sep).filter(Boolean);
3520
+ if (parts.length >= 2) {
3521
+ return parts[parts.length - 2];
3522
+ }
3523
+ }
3511
3524
  return void 0;
3512
3525
  }
3513
3526
 
@@ -3614,9 +3627,12 @@ var MEMORY_TOOL_DEFINITIONS = [
3614
3627
  properties: {
3615
3628
  owner: {
3616
3629
  type: "string",
3617
- description: "Organization/namespace (e.g., GitHub org or username)"
3630
+ description: "Organization/namespace (e.g., GitHub org or username)."
3631
+ },
3632
+ repo: {
3633
+ type: "string",
3634
+ description: "Repository/project name (e.g., 'local-memory-mcp'). Optional when a single MCP root is active."
3618
3635
  },
3619
- repo: { type: "string", description: "Repository/project name. Optional when a single MCP root is active." },
3620
3636
  objective: { type: "string", minLength: 5, description: "Question or synthesis objective." },
3621
3637
  current_file_path: {
3622
3638
  type: "string",
@@ -3670,7 +3686,7 @@ var MEMORY_TOOL_DEFINITIONS = [
3670
3686
  properties: {
3671
3687
  code: { type: "string", description: "Short memory code." },
3672
3688
  owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)." },
3673
- repo: { type: "string", description: "Repository/project name." },
3689
+ repo: { type: "string", description: "Repository/project name (e.g., 'local-memory-mcp')." },
3674
3690
  structured: { type: "boolean", default: false, description: "If true, returns structured JSON details." }
3675
3691
  }
3676
3692
  }
@@ -3732,7 +3748,7 @@ var MEMORY_TOOL_DEFINITIONS = [
3732
3748
  type: "object",
3733
3749
  properties: {
3734
3750
  owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)" },
3735
- repo: { type: "string", description: "Repository/project name" },
3751
+ repo: { type: "string", description: "Repository/project name (e.g., 'local-memory-mcp')" },
3736
3752
  branch: { type: "string", description: "Git branch this memory relates to" },
3737
3753
  folder: { type: "string", description: "Subdirectory within the repo" },
3738
3754
  language: { type: "string", description: "Programming language (e.g., 'typescript', 'python')" }
@@ -3790,7 +3806,7 @@ var MEMORY_TOOL_DEFINITIONS = [
3790
3806
  type: "object",
3791
3807
  properties: {
3792
3808
  owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)" },
3793
- repo: { type: "string", description: "Repository/project name" },
3809
+ repo: { type: "string", description: "Repository/project name (e.g., 'local-memory-mcp')" },
3794
3810
  branch: { type: "string", description: "Git branch this memory relates to" },
3795
3811
  folder: { type: "string", description: "Subdirectory within the repo" },
3796
3812
  language: { type: "string", description: "Programming language" }
@@ -3879,8 +3895,8 @@ var MEMORY_TOOL_DEFINITIONS = [
3879
3895
  title: "By ID",
3880
3896
  required: ["owner", "repo", "id"],
3881
3897
  properties: {
3882
- owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)" },
3883
- repo: { type: "string", description: "Repository name" },
3898
+ owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)." },
3899
+ repo: { type: "string", description: "Repository/project name (e.g., 'local-memory-mcp')." },
3884
3900
  id: { type: "string", format: "uuid", description: "Memory entry ID." },
3885
3901
  type: { type: "string", enum: ["code_fact", "decision", "mistake", "pattern", "task_archive"] },
3886
3902
  title: { type: "string", minLength: 3, maxLength: 100 },
@@ -3905,8 +3921,8 @@ var MEMORY_TOOL_DEFINITIONS = [
3905
3921
  title: "By code",
3906
3922
  required: ["owner", "repo", "code"],
3907
3923
  properties: {
3908
- owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)" },
3909
- repo: { type: "string", description: "Repository name" },
3924
+ owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)." },
3925
+ repo: { type: "string", description: "Repository/project name (e.g., 'local-memory-mcp')." },
3910
3926
  code: { type: "string", maxLength: 20, description: "Short memory code." },
3911
3927
  type: { type: "string", enum: ["code_fact", "decision", "mistake", "pattern", "task_archive"] },
3912
3928
  title: { type: "string", minLength: 3, maxLength: 100 },
@@ -3962,8 +3978,8 @@ var MEMORY_TOOL_DEFINITIONS = [
3962
3978
  description: "Search keyword to match against memory titles and content"
3963
3979
  },
3964
3980
  prompt: { type: "string", description: "Natural language prompt for semantic search" },
3965
- owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)" },
3966
- repo: { type: "string", description: "Repository/project name" },
3981
+ owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)." },
3982
+ repo: { type: "string", description: "Repository/project name (e.g., 'local-memory-mcp')." },
3967
3983
  current_tags: {
3968
3984
  type: "array",
3969
3985
  items: { type: "string" },
@@ -3991,7 +4007,7 @@ var MEMORY_TOOL_DEFINITIONS = [
3991
4007
  type: "object",
3992
4008
  properties: {
3993
4009
  owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)" },
3994
- repo: { type: "string", description: "Repository/project name" },
4010
+ repo: { type: "string", description: "Repository/project name (e.g., 'local-memory-mcp')" },
3995
4011
  branch: { type: "string", description: "Git branch filter" },
3996
4012
  folder: { type: "string", description: "Subdirectory filter" },
3997
4013
  language: { type: "string", description: "Programming language filter" }
@@ -4046,8 +4062,8 @@ var MEMORY_TOOL_DEFINITIONS = [
4046
4062
  inputSchema: {
4047
4063
  type: "object",
4048
4064
  properties: {
4049
- owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)" },
4050
- repo: { type: "string", description: "Repository/project name" },
4065
+ owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)." },
4066
+ repo: { type: "string", description: "Repository/project name (e.g., 'local-memory-mcp')." },
4051
4067
  signals: {
4052
4068
  type: "array",
4053
4069
  items: { type: "string", maxLength: 200 },
@@ -4086,8 +4102,8 @@ var MEMORY_TOOL_DEFINITIONS = [
4086
4102
  title: "By single ID",
4087
4103
  required: ["owner", "repo", "id"],
4088
4104
  properties: {
4089
- owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)" },
4090
- repo: { type: "string", description: "Repository name." },
4105
+ owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)." },
4106
+ repo: { type: "string", description: "Repository/project name (e.g., 'local-memory-mcp')." },
4091
4107
  id: { type: "string", format: "uuid", description: "Memory entry ID to delete." },
4092
4108
  structured: { type: "boolean", default: false, description: "If true, returns structured JSON result." }
4093
4109
  }
@@ -4096,8 +4112,8 @@ var MEMORY_TOOL_DEFINITIONS = [
4096
4112
  title: "By bulk IDs",
4097
4113
  required: ["owner", "repo", "ids"],
4098
4114
  properties: {
4099
- owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)" },
4100
- repo: { type: "string", description: "Repository name." },
4115
+ owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)." },
4116
+ repo: { type: "string", description: "Repository/project name (e.g., 'local-memory-mcp')." },
4101
4117
  ids: {
4102
4118
  type: "array",
4103
4119
  items: { type: "string", format: "uuid" },
@@ -4111,8 +4127,8 @@ var MEMORY_TOOL_DEFINITIONS = [
4111
4127
  title: "By single code",
4112
4128
  required: ["owner", "repo", "code"],
4113
4129
  properties: {
4114
- owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)" },
4115
- repo: { type: "string", description: "Repository name." },
4130
+ owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)." },
4131
+ repo: { type: "string", description: "Repository/project name (e.g., 'local-memory-mcp')." },
4116
4132
  code: { type: "string", maxLength: 20, description: "Short memory code." },
4117
4133
  structured: { type: "boolean", default: false, description: "If true, returns structured JSON result." }
4118
4134
  }
@@ -4121,8 +4137,8 @@ var MEMORY_TOOL_DEFINITIONS = [
4121
4137
  title: "By bulk codes",
4122
4138
  required: ["owner", "repo", "codes"],
4123
4139
  properties: {
4124
- owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)" },
4125
- repo: { type: "string", description: "Repository name." },
4140
+ owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)." },
4141
+ repo: { type: "string", description: "Repository/project name (e.g., 'local-memory-mcp')." },
4126
4142
  codes: {
4127
4143
  type: "array",
4128
4144
  items: { type: "string", maxLength: 20 },
@@ -4160,8 +4176,8 @@ var MEMORY_TOOL_DEFINITIONS = [
4160
4176
  inputSchema: {
4161
4177
  type: "object",
4162
4178
  properties: {
4163
- owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)" },
4164
- repo: { type: "string", description: "Repository/project name (required)" },
4179
+ owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)." },
4180
+ repo: { type: "string", description: "Repository/project name (e.g., 'local-memory-mcp')." },
4165
4181
  limit: {
4166
4182
  type: "number",
4167
4183
  minimum: 1,
@@ -4239,10 +4255,13 @@ var TASK_TOOL_DEFINITIONS = [
4239
4255
  inputSchema: {
4240
4256
  type: "object",
4241
4257
  properties: {
4242
- owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)" },
4258
+ owner: {
4259
+ type: "string",
4260
+ description: "Organization/namespace (e.g., GitHub org or username). Auto-inferred from session when omitted."
4261
+ },
4243
4262
  repo: {
4244
4263
  type: "string",
4245
- description: "Repository name. Optional when it can be inferred from MCP roots or elicited from the user."
4264
+ description: "Repository/project name (e.g., 'local-memory-mcp'). Auto-inferred from session when omitted."
4246
4265
  },
4247
4266
  task_code: { type: "string" },
4248
4267
  phase: { type: "string" },
@@ -4265,7 +4284,7 @@ var TASK_TOOL_DEFINITIONS = [
4265
4284
  doc_path: { type: "string" },
4266
4285
  structured: { type: "boolean", default: false, description: "If true, returns structured JSON result." }
4267
4286
  },
4268
- required: ["owner"]
4287
+ required: []
4269
4288
  },
4270
4289
  outputSchema: {
4271
4290
  type: "object",
@@ -4289,10 +4308,16 @@ var TASK_TOOL_DEFINITIONS = [
4289
4308
  oneOf: [
4290
4309
  {
4291
4310
  title: "By ID",
4292
- required: ["owner", "repo", "id"],
4311
+ required: ["id"],
4293
4312
  properties: {
4294
- owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)" },
4295
- repo: { type: "string", description: "Repository name" },
4313
+ owner: {
4314
+ type: "string",
4315
+ description: "Organization/namespace (e.g., GitHub org or username). Auto-inferred from session when omitted."
4316
+ },
4317
+ repo: {
4318
+ type: "string",
4319
+ description: "Repository/project name (e.g., 'local-memory-mcp'). Auto-inferred from session when omitted."
4320
+ },
4296
4321
  id: { type: "string", format: "uuid", description: "Task ID" },
4297
4322
  structured: {
4298
4323
  type: "boolean",
@@ -4303,10 +4328,16 @@ var TASK_TOOL_DEFINITIONS = [
4303
4328
  },
4304
4329
  {
4305
4330
  title: "By task_code",
4306
- required: ["owner", "repo", "task_code"],
4331
+ required: ["task_code"],
4307
4332
  properties: {
4308
- owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)" },
4309
- repo: { type: "string", description: "Repository name" },
4333
+ owner: {
4334
+ type: "string",
4335
+ description: "Organization/namespace (e.g., GitHub org or username). Auto-inferred from session when omitted."
4336
+ },
4337
+ repo: {
4338
+ type: "string",
4339
+ description: "Repository/project name (e.g., 'local-memory-mcp'). Auto-inferred from session when omitted."
4340
+ },
4310
4341
  task_code: {
4311
4342
  type: "string",
4312
4343
  description: "Task code (e.g. PERF-1, TASK-001). Use instead of 'id' for string code lookup."
@@ -4320,10 +4351,16 @@ var TASK_TOOL_DEFINITIONS = [
4320
4351
  },
4321
4352
  {
4322
4353
  title: "By task_codes",
4323
- required: ["owner", "repo", "task_codes"],
4354
+ required: ["task_codes"],
4324
4355
  properties: {
4325
- owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)" },
4326
- repo: { type: "string", description: "Repository name" },
4356
+ owner: {
4357
+ type: "string",
4358
+ description: "Organization/namespace (e.g., GitHub org or username). Auto-inferred from session when omitted."
4359
+ },
4360
+ repo: {
4361
+ type: "string",
4362
+ description: "Repository/project name (e.g., 'local-memory-mcp'). Auto-inferred from session when omitted."
4363
+ },
4327
4364
  task_codes: {
4328
4365
  type: "array",
4329
4366
  items: { type: "string" },
@@ -4352,8 +4389,14 @@ var TASK_TOOL_DEFINITIONS = [
4352
4389
  inputSchema: {
4353
4390
  type: "object",
4354
4391
  properties: {
4355
- owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)" },
4356
- repo: { type: "string", description: "Repository/project name" },
4392
+ owner: {
4393
+ type: "string",
4394
+ description: "Organization/namespace (e.g., GitHub org or username). Auto-inferred from session when omitted."
4395
+ },
4396
+ repo: {
4397
+ type: "string",
4398
+ description: "Repository/project name (e.g., 'local-memory-mcp'). Auto-inferred from session when omitted."
4399
+ },
4357
4400
  task_code: { type: "string", description: "Unique task code (e.g. TASK-001) (Required for single task)" },
4358
4401
  phase: { type: "string", description: "Project phase (Required for single task)" },
4359
4402
  title: {
@@ -4434,7 +4477,7 @@ var TASK_TOOL_DEFINITIONS = [
4434
4477
  },
4435
4478
  structured: { type: "boolean", default: false, description: "If true, returns structured JSON result." }
4436
4479
  },
4437
- required: ["owner", "repo"]
4480
+ required: []
4438
4481
  },
4439
4482
  outputSchema: {
4440
4483
  type: "object",
@@ -4467,10 +4510,16 @@ var TASK_TOOL_DEFINITIONS = [
4467
4510
  oneOf: [
4468
4511
  {
4469
4512
  title: "By ID",
4470
- required: ["owner", "repo", "id"],
4513
+ required: ["id"],
4471
4514
  properties: {
4472
- owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)" },
4473
- repo: { type: "string", description: "Repository name" },
4515
+ owner: {
4516
+ type: "string",
4517
+ description: "Organization/namespace (e.g., GitHub org or username). Auto-inferred from session when omitted."
4518
+ },
4519
+ repo: {
4520
+ type: "string",
4521
+ description: "Repository/project name (e.g., 'local-memory-mcp'). Auto-inferred from session when omitted."
4522
+ },
4474
4523
  id: { type: "string", format: "uuid", description: "Task ID (for single update)" },
4475
4524
  phase: { type: "string" },
4476
4525
  title: { type: "string", minLength: 3, maxLength: 100 },
@@ -4530,10 +4579,16 @@ var TASK_TOOL_DEFINITIONS = [
4530
4579
  },
4531
4580
  {
4532
4581
  title: "By IDs",
4533
- required: ["owner", "repo", "ids"],
4582
+ required: ["ids"],
4534
4583
  properties: {
4535
- owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)" },
4536
- repo: { type: "string", description: "Repository name" },
4584
+ owner: {
4585
+ type: "string",
4586
+ description: "Organization/namespace (e.g., GitHub org or username). Auto-inferred from session when omitted."
4587
+ },
4588
+ repo: {
4589
+ type: "string",
4590
+ description: "Repository/project name (e.g., 'local-memory-mcp'). Auto-inferred from session when omitted."
4591
+ },
4537
4592
  ids: {
4538
4593
  type: "array",
4539
4594
  items: { type: "string", format: "uuid" },
@@ -4597,10 +4652,16 @@ var TASK_TOOL_DEFINITIONS = [
4597
4652
  },
4598
4653
  {
4599
4654
  title: "By task_code",
4600
- required: ["owner", "repo", "task_code"],
4655
+ required: ["task_code"],
4601
4656
  properties: {
4602
- owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)" },
4603
- repo: { type: "string", description: "Repository name" },
4657
+ owner: {
4658
+ type: "string",
4659
+ description: "Organization/namespace (e.g., GitHub org or username). Auto-inferred from session when omitted."
4660
+ },
4661
+ repo: {
4662
+ type: "string",
4663
+ description: "Repository/project name (e.g., 'local-memory-mcp'). Auto-inferred from session when omitted."
4664
+ },
4604
4665
  task_code: { type: "string" },
4605
4666
  phase: { type: "string" },
4606
4667
  title: { type: "string", minLength: 3, maxLength: 100 },
@@ -4660,10 +4721,16 @@ var TASK_TOOL_DEFINITIONS = [
4660
4721
  },
4661
4722
  {
4662
4723
  title: "By task_codes",
4663
- required: ["owner", "repo", "task_codes"],
4724
+ required: ["task_codes"],
4664
4725
  properties: {
4665
- owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)" },
4666
- repo: { type: "string", description: "Repository name" },
4726
+ owner: {
4727
+ type: "string",
4728
+ description: "Organization/namespace (e.g., GitHub org or username). Auto-inferred from session when omitted."
4729
+ },
4730
+ repo: {
4731
+ type: "string",
4732
+ description: "Repository/project name (e.g., 'local-memory-mcp'). Auto-inferred from session when omitted."
4733
+ },
4667
4734
  task_codes: {
4668
4735
  type: "array",
4669
4736
  items: { type: "string" },
@@ -4761,20 +4828,32 @@ var TASK_TOOL_DEFINITIONS = [
4761
4828
  oneOf: [
4762
4829
  {
4763
4830
  title: "By ID",
4764
- required: ["owner", "repo", "id"],
4831
+ required: ["id"],
4765
4832
  properties: {
4766
- owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)" },
4767
- repo: { type: "string", description: "Repository name" },
4833
+ owner: {
4834
+ type: "string",
4835
+ description: "Organization/namespace (e.g., GitHub org or username). Auto-inferred from session when omitted."
4836
+ },
4837
+ repo: {
4838
+ type: "string",
4839
+ description: "Repository/project name (e.g., 'local-memory-mcp'). Auto-inferred from session when omitted."
4840
+ },
4768
4841
  id: { type: "string", format: "uuid", description: "Task ID (for single deletion)" },
4769
4842
  structured: { type: "boolean", default: false, description: "If true, returns structured JSON result." }
4770
4843
  }
4771
4844
  },
4772
4845
  {
4773
4846
  title: "By IDs",
4774
- required: ["owner", "repo", "ids"],
4847
+ required: ["ids"],
4775
4848
  properties: {
4776
- owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)" },
4777
- repo: { type: "string", description: "Repository name" },
4849
+ owner: {
4850
+ type: "string",
4851
+ description: "Organization/namespace (e.g., GitHub org or username). Auto-inferred from session when omitted."
4852
+ },
4853
+ repo: {
4854
+ type: "string",
4855
+ description: "Repository/project name (e.g., 'local-memory-mcp'). Auto-inferred from session when omitted."
4856
+ },
4778
4857
  ids: {
4779
4858
  type: "array",
4780
4859
  items: { type: "string", format: "uuid" },
@@ -4785,10 +4864,16 @@ var TASK_TOOL_DEFINITIONS = [
4785
4864
  },
4786
4865
  {
4787
4866
  title: "By task_code",
4788
- required: ["owner", "repo", "task_code"],
4867
+ required: ["task_code"],
4789
4868
  properties: {
4790
- owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)" },
4791
- repo: { type: "string", description: "Repository name" },
4869
+ owner: {
4870
+ type: "string",
4871
+ description: "Organization/namespace (e.g., GitHub org or username). Auto-inferred from session when omitted."
4872
+ },
4873
+ repo: {
4874
+ type: "string",
4875
+ description: "Repository/project name (e.g., 'local-memory-mcp'). Auto-inferred from session when omitted."
4876
+ },
4792
4877
  task_code: {
4793
4878
  type: "string",
4794
4879
  description: "Task code (e.g. PERF-1, TASK-001). Use instead of 'id' for string code lookup."
@@ -4798,10 +4883,16 @@ var TASK_TOOL_DEFINITIONS = [
4798
4883
  },
4799
4884
  {
4800
4885
  title: "By task_codes",
4801
- required: ["owner", "repo", "task_codes"],
4886
+ required: ["task_codes"],
4802
4887
  properties: {
4803
- owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)" },
4804
- repo: { type: "string", description: "Repository name" },
4888
+ owner: {
4889
+ type: "string",
4890
+ description: "Organization/namespace (e.g., GitHub org or username). Auto-inferred from session when omitted."
4891
+ },
4892
+ repo: {
4893
+ type: "string",
4894
+ description: "Repository/project name (e.g., 'local-memory-mcp'). Auto-inferred from session when omitted."
4895
+ },
4805
4896
  task_codes: {
4806
4897
  type: "array",
4807
4898
  items: { type: "string" },
@@ -4838,10 +4929,13 @@ var TASK_TOOL_DEFINITIONS = [
4838
4929
  inputSchema: {
4839
4930
  type: "object",
4840
4931
  properties: {
4841
- owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)" },
4932
+ owner: {
4933
+ type: "string",
4934
+ description: "Organization/namespace (e.g., GitHub org or username). Auto-inferred from session when omitted."
4935
+ },
4842
4936
  repo: {
4843
4937
  type: "string",
4844
- description: "Repository/project name (required)"
4938
+ description: "Repository/project name (e.g., 'local-memory-mcp'). Auto-inferred from session when omitted."
4845
4939
  },
4846
4940
  status: {
4847
4941
  type: "string",
@@ -4875,7 +4969,7 @@ var TASK_TOOL_DEFINITIONS = [
4875
4969
  description: "If true, returns structured JSON without the text content summary."
4876
4970
  }
4877
4971
  },
4878
- required: ["owner", "repo"]
4972
+ required: []
4879
4973
  },
4880
4974
  outputSchema: {
4881
4975
  type: "object",
@@ -4915,8 +5009,14 @@ var TASK_TOOL_DEFINITIONS = [
4915
5009
  inputSchema: {
4916
5010
  type: "object",
4917
5011
  properties: {
4918
- owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)" },
4919
- repo: { type: "string", description: "Repository/project name" },
5012
+ owner: {
5013
+ type: "string",
5014
+ description: "Organization/namespace (e.g., GitHub org or username). Auto-inferred from session when omitted."
5015
+ },
5016
+ repo: {
5017
+ type: "string",
5018
+ description: "Repository/project name (e.g., 'local-memory-mcp'). Auto-inferred from session when omitted."
5019
+ },
4920
5020
  query: {
4921
5021
  type: "string",
4922
5022
  minLength: 1,
@@ -4929,7 +5029,7 @@ var TASK_TOOL_DEFINITIONS = [
4929
5029
  offset: { type: "number", minimum: 0, default: 0 },
4930
5030
  structured: { type: "boolean", default: false, description: "If true, returns structured JSON result." }
4931
5031
  },
4932
- required: ["owner", "repo", "query"]
5032
+ required: ["query"]
4933
5033
  },
4934
5034
  outputSchema: {
4935
5035
  type: "object",
@@ -4977,8 +5077,8 @@ var HANDOFF_TOOL_DEFINITIONS = [
4977
5077
  inputSchema: {
4978
5078
  type: "object",
4979
5079
  properties: {
4980
- owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)" },
4981
- repo: { type: "string", description: "Repository/project name" },
5080
+ owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)." },
5081
+ repo: { type: "string", description: "Repository/project name (e.g., 'local-memory-mcp')." },
4982
5082
  from_agent: { type: "string", description: "Agent creating the handoff" },
4983
5083
  to_agent: { type: "string", description: "Optional target agent" },
4984
5084
  task_id: { type: "string", format: "uuid", description: "Optional task id to associate" },
@@ -5052,8 +5152,8 @@ var HANDOFF_TOOL_DEFINITIONS = [
5052
5152
  inputSchema: {
5053
5153
  type: "object",
5054
5154
  properties: {
5055
- owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)" },
5056
- repo: { type: "string", description: "Repository/project name" },
5155
+ owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)." },
5156
+ repo: { type: "string", description: "Repository/project name (e.g., 'local-memory-mcp')." },
5057
5157
  status: { type: "string", enum: ["pending", "accepted", "rejected", "expired"] },
5058
5158
  from_agent: { type: "string" },
5059
5159
  to_agent: { type: "string" },
@@ -5102,8 +5202,8 @@ var HANDOFF_TOOL_DEFINITIONS = [
5102
5202
  inputSchema: {
5103
5203
  type: "object",
5104
5204
  properties: {
5105
- owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)" },
5106
- repo: { type: "string", description: "Repository/project name" },
5205
+ owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)." },
5206
+ repo: { type: "string", description: "Repository/project name (e.g., 'local-memory-mcp')." },
5107
5207
  task_id: {
5108
5208
  type: "string",
5109
5209
  format: "uuid",
@@ -5146,8 +5246,8 @@ var HANDOFF_TOOL_DEFINITIONS = [
5146
5246
  inputSchema: {
5147
5247
  type: "object",
5148
5248
  properties: {
5149
- owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)" },
5150
- repo: { type: "string", description: "Repository/project name" },
5249
+ owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)." },
5250
+ repo: { type: "string", description: "Repository/project name (e.g., 'local-memory-mcp')." },
5151
5251
  agent: { type: "string", description: "Optional agent filter" },
5152
5252
  active_only: { type: "boolean", description: "When true, return only unreleased claims" },
5153
5253
  limit: { type: "number", minimum: 1, maximum: 100, default: 20 },
@@ -5195,8 +5295,8 @@ var HANDOFF_TOOL_DEFINITIONS = [
5195
5295
  inputSchema: {
5196
5296
  type: "object",
5197
5297
  properties: {
5198
- owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)" },
5199
- repo: { type: "string", description: "Repository name" },
5298
+ owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)." },
5299
+ repo: { type: "string", description: "Repository/project name (e.g., 'local-memory-mcp')." },
5200
5300
  task_id: {
5201
5301
  type: "string",
5202
5302
  format: "uuid",
@@ -5245,7 +5345,7 @@ var STANDARD_TOOL_DEFINITIONS = [
5245
5345
  properties: {
5246
5346
  code: { type: "string", description: "Short standard code (e.g. 'A3KPQ2')." },
5247
5347
  owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)." },
5248
- repo: { type: "string", description: "Repository/project name." },
5348
+ repo: { type: "string", description: "Repository/project name (e.g., 'local-memory-mcp')." },
5249
5349
  structured: { type: "boolean", default: false, description: "If true, returns structured JSON details." }
5250
5350
  }
5251
5351
  }
@@ -5269,8 +5369,8 @@ var STANDARD_TOOL_DEFINITIONS = [
5269
5369
  title: "By single ID",
5270
5370
  required: ["owner", "repo", "id"],
5271
5371
  properties: {
5272
- owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)" },
5273
- repo: { type: "string", description: "Repository name." },
5372
+ owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)." },
5373
+ repo: { type: "string", description: "Repository/project name (e.g., 'local-memory-mcp')." },
5274
5374
  id: { type: "string", format: "uuid", description: "Coding standard ID to delete." },
5275
5375
  structured: { type: "boolean", default: false, description: "If true, returns structured JSON result." }
5276
5376
  }
@@ -5279,8 +5379,8 @@ var STANDARD_TOOL_DEFINITIONS = [
5279
5379
  title: "By bulk IDs",
5280
5380
  required: ["owner", "repo", "ids"],
5281
5381
  properties: {
5282
- owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)" },
5283
- repo: { type: "string", description: "Repository name." },
5382
+ owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)." },
5383
+ repo: { type: "string", description: "Repository/project name (e.g., 'local-memory-mcp')." },
5284
5384
  ids: {
5285
5385
  type: "array",
5286
5386
  items: { type: "string", format: "uuid" },
@@ -5294,8 +5394,8 @@ var STANDARD_TOOL_DEFINITIONS = [
5294
5394
  title: "By single code",
5295
5395
  required: ["owner", "repo", "code"],
5296
5396
  properties: {
5297
- owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)" },
5298
- repo: { type: "string", description: "Repository name." },
5397
+ owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)." },
5398
+ repo: { type: "string", description: "Repository/project name (e.g., 'local-memory-mcp')." },
5299
5399
  code: { type: "string", maxLength: 20, description: "Short standard code." },
5300
5400
  structured: { type: "boolean", default: false, description: "If true, returns structured JSON result." }
5301
5401
  }
@@ -5304,8 +5404,8 @@ var STANDARD_TOOL_DEFINITIONS = [
5304
5404
  title: "By bulk codes",
5305
5405
  required: ["owner", "repo", "codes"],
5306
5406
  properties: {
5307
- owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)" },
5308
- repo: { type: "string", description: "Repository name." },
5407
+ owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)." },
5408
+ repo: { type: "string", description: "Repository/project name (e.g., 'local-memory-mcp')." },
5309
5409
  codes: {
5310
5410
  type: "array",
5311
5411
  items: { type: "string", maxLength: 20 },
@@ -5344,7 +5444,7 @@ var STANDARD_TOOL_DEFINITIONS = [
5344
5444
  inputSchema: {
5345
5445
  type: "object",
5346
5446
  properties: {
5347
- owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)" },
5447
+ owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)." },
5348
5448
  name: { type: "string", minLength: 3, maxLength: 255, description: "Human-readable standard name" },
5349
5449
  content: {
5350
5450
  type: "string",
@@ -5365,7 +5465,7 @@ var STANDARD_TOOL_DEFINITIONS = [
5365
5465
  },
5366
5466
  repo: {
5367
5467
  type: "string",
5368
- description: "Repository name for repo-specific standards. Omit only for global standards."
5468
+ description: "Repository/project name (e.g., 'local-memory-mcp'). Required for repo-specific standards. Omit only for global standards."
5369
5469
  },
5370
5470
  is_global: { type: "boolean", description: "Whether standard applies globally or repo-specific" },
5371
5471
  tags: {
@@ -5468,8 +5568,8 @@ var STANDARD_TOOL_DEFINITIONS = [
5468
5568
  title: "By ID",
5469
5569
  required: ["owner", "repo", "id"],
5470
5570
  properties: {
5471
- owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)" },
5472
- repo: { type: "string", description: "Repository name" },
5571
+ owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)." },
5572
+ repo: { type: "string", description: "Repository/project name (e.g., 'local-memory-mcp')." },
5473
5573
  id: { type: "string", format: "uuid", description: "Standard ID to update." },
5474
5574
  code: { type: "string", maxLength: 20, description: "Short standard code." },
5475
5575
  name: { type: "string", minLength: 3, maxLength: 255 },
@@ -5491,8 +5591,8 @@ var STANDARD_TOOL_DEFINITIONS = [
5491
5591
  title: "By code",
5492
5592
  required: ["owner", "repo", "code"],
5493
5593
  properties: {
5494
- owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)" },
5495
- repo: { type: "string", description: "Repository name" },
5594
+ owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)." },
5595
+ repo: { type: "string", description: "Repository/project name (e.g., 'local-memory-mcp')." },
5496
5596
  code: { type: "string", maxLength: 20, description: "Short standard code." },
5497
5597
  id: { type: "string", format: "uuid", description: "Standard ID." },
5498
5598
  name: { type: "string", minLength: 3, maxLength: 255 },
@@ -5534,6 +5634,7 @@ var STANDARD_TOOL_DEFINITIONS = [
5534
5634
  inputSchema: {
5535
5635
  type: "object",
5536
5636
  properties: {
5637
+ owner: { type: "string", description: "Organization/namespace (e.g., GitHub org or username)." },
5537
5638
  query: { type: "string", description: "Search query (optional, searches title/content)" },
5538
5639
  stack: {
5539
5640
  type: "array",
@@ -5548,7 +5649,7 @@ var STANDARD_TOOL_DEFINITIONS = [
5548
5649
  language: { type: "string", description: "Programming language filter" },
5549
5650
  context: { type: "string", description: "Context/category filter" },
5550
5651
  version: { type: "string", description: "Version filter" },
5551
- repo: { type: "string", description: "Repository filter (optional)" },
5652
+ repo: { type: "string", description: "Repository/project name (e.g., 'local-memory-mcp'). Optional filter." },
5552
5653
  is_global: { type: "boolean", description: "Filter by global/repo-specific" },
5553
5654
  limit: { type: "number", minimum: 1, maximum: 100, default: 20 },
5554
5655
  offset: { type: "number", minimum: 0, default: 0 },
@@ -5602,11 +5703,11 @@ var AGENT_TOOL_DEFINITIONS = [
5602
5703
  properties: {
5603
5704
  owner: {
5604
5705
  type: "string",
5605
- description: "Organization/namespace (e.g., GitHub org or username). Auto-detected from session when omitted."
5706
+ description: "Organization/namespace (e.g., GitHub org or username). Auto-inferred from session when omitted."
5606
5707
  },
5607
5708
  repo: {
5608
5709
  type: "string",
5609
- description: "Repository/project name. Auto-detected from session when omitted."
5710
+ description: "Repository/project name (e.g., 'local-memory-mcp'). Auto-inferred from session when omitted."
5610
5711
  },
5611
5712
  objective: {
5612
5713
  type: "string",
@@ -5713,11 +5814,11 @@ var AGENT_TOOL_DEFINITIONS = [
5713
5814
  },
5714
5815
  owner: {
5715
5816
  type: "string",
5716
- description: "Organization/namespace. Auto-detected from session when omitted."
5817
+ description: "Organization/namespace (e.g., GitHub org or username). Auto-inferred from session when omitted."
5717
5818
  },
5718
5819
  repo: {
5719
5820
  type: "string",
5720
- description: "Repository/project name. Auto-detected from session when omitted."
5821
+ description: "Repository/project name (e.g., 'local-memory-mcp'). Auto-inferred from session when omitted."
5721
5822
  },
5722
5823
  structured: {
5723
5824
  type: "boolean",
@@ -5772,11 +5873,11 @@ var AGENT_TOOL_DEFINITIONS = [
5772
5873
  },
5773
5874
  owner: {
5774
5875
  type: "string",
5775
- description: "Organization/namespace. Auto-detected from session when omitted."
5876
+ description: "Organization/namespace (e.g., GitHub org or username). Auto-inferred from session when omitted."
5776
5877
  },
5777
5878
  repo: {
5778
5879
  type: "string",
5779
- description: "Repository/project name. Auto-detected from session when omitted."
5880
+ description: "Repository/project name (e.g., 'local-memory-mcp'). Auto-inferred from session when omitted."
5780
5881
  },
5781
5882
  structured: {
5782
5883
  type: "boolean",
@@ -5807,8 +5908,14 @@ var AGENT_TOOL_DEFINITIONS = [
5807
5908
  inputSchema: {
5808
5909
  type: "object",
5809
5910
  properties: {
5810
- owner: { type: "string", description: "Auto-detected from session." },
5811
- repo: { type: "string", description: "Auto-detected from session." },
5911
+ owner: {
5912
+ type: "string",
5913
+ description: "Organization/namespace (e.g., GitHub org or username). Auto-inferred from session when omitted."
5914
+ },
5915
+ repo: {
5916
+ type: "string",
5917
+ description: "Repository/project name (e.g., 'local-memory-mcp'). Auto-inferred from session when omitted."
5918
+ },
5812
5919
  title: { type: "string", description: "Title for the fact/memory." },
5813
5920
  content: { type: "string", description: "The fact content to store." },
5814
5921
  type: { type: "string", default: "code_fact" },
@@ -5830,8 +5937,14 @@ var AGENT_TOOL_DEFINITIONS = [
5830
5937
  inputSchema: {
5831
5938
  type: "object",
5832
5939
  properties: {
5833
- owner: { type: "string" },
5834
- repo: { type: "string" },
5940
+ owner: {
5941
+ type: "string",
5942
+ description: "Organization/namespace (e.g., GitHub org or username). Auto-inferred from session when omitted."
5943
+ },
5944
+ repo: {
5945
+ type: "string",
5946
+ description: "Repository/project name (e.g., 'local-memory-mcp'). Auto-inferred from session when omitted."
5947
+ },
5835
5948
  facts: { type: "array", items: { type: "object" }, description: "Array of fact objects." }
5836
5949
  },
5837
5950
  required: ["facts"]
@@ -5846,8 +5959,14 @@ var AGENT_TOOL_DEFINITIONS = [
5846
5959
  inputSchema: {
5847
5960
  type: "object",
5848
5961
  properties: {
5849
- owner: { type: "string" },
5850
- repo: { type: "string" },
5962
+ owner: {
5963
+ type: "string",
5964
+ description: "Organization/namespace (e.g., GitHub org or username). Auto-inferred from session when omitted."
5965
+ },
5966
+ repo: {
5967
+ type: "string",
5968
+ description: "Repository/project name (e.g., 'local-memory-mcp'). Auto-inferred from session when omitted."
5969
+ },
5851
5970
  query: { type: "string", description: "Search query." },
5852
5971
  type: { type: "string", description: "Filter by memory type." },
5853
5972
  limit: { type: "number", default: 10 }
@@ -5864,8 +5983,14 @@ var AGENT_TOOL_DEFINITIONS = [
5864
5983
  inputSchema: {
5865
5984
  type: "object",
5866
5985
  properties: {
5867
- owner: { type: "string" },
5868
- repo: { type: "string" },
5986
+ owner: {
5987
+ type: "string",
5988
+ description: "Organization/namespace (e.g., GitHub org or username). Auto-inferred from session when omitted."
5989
+ },
5990
+ repo: {
5991
+ type: "string",
5992
+ description: "Repository/project name (e.g., 'local-memory-mcp'). Auto-inferred from session when omitted."
5993
+ },
5869
5994
  id: { type: "string", description: "Memory ID to delete." },
5870
5995
  code: { type: "string", description: "Memory code to delete." }
5871
5996
  },
@@ -5905,11 +6030,11 @@ var KG_TOOL_DEFINITIONS = [
5905
6030
  },
5906
6031
  owner: {
5907
6032
  type: "string",
5908
- description: "Organization/namespace. Auto-detected from session when omitted."
6033
+ description: "Organization/namespace (e.g., GitHub org or username). Auto-inferred from session when omitted."
5909
6034
  },
5910
6035
  repo: {
5911
6036
  type: "string",
5912
- description: "Repository/project name. Auto-detected from session when omitted."
6037
+ description: "Repository/project name (e.g., 'local-memory-mcp'). Auto-inferred from session when omitted."
5913
6038
  },
5914
6039
  structured: {
5915
6040
  type: "boolean",
@@ -5955,11 +6080,11 @@ var KG_TOOL_DEFINITIONS = [
5955
6080
  },
5956
6081
  owner: {
5957
6082
  type: "string",
5958
- description: "Organization/namespace. Auto-detected from session when omitted."
6083
+ description: "Organization/namespace (e.g., GitHub org or username). Auto-inferred from session when omitted."
5959
6084
  },
5960
6085
  repo: {
5961
6086
  type: "string",
5962
- description: "Repository/project name. Auto-detected from session when omitted."
6087
+ description: "Repository/project name (e.g., 'local-memory-mcp'). Auto-inferred from session when omitted."
5963
6088
  },
5964
6089
  structured: {
5965
6090
  type: "boolean",
@@ -6004,11 +6129,11 @@ var KG_TOOL_DEFINITIONS = [
6004
6129
  },
6005
6130
  owner: {
6006
6131
  type: "string",
6007
- description: "Organization/namespace. Auto-detected from session when omitted."
6132
+ description: "Organization/namespace (e.g., GitHub org or username). Auto-inferred from session when omitted."
6008
6133
  },
6009
6134
  repo: {
6010
6135
  type: "string",
6011
- description: "Repository/project name. Auto-detected from session when omitted."
6136
+ description: "Repository/project name (e.g., 'local-memory-mcp'). Auto-inferred from session when omitted."
6012
6137
  },
6013
6138
  structured: {
6014
6139
  type: "boolean",
@@ -6060,11 +6185,11 @@ var KG_TOOL_DEFINITIONS = [
6060
6185
  },
6061
6186
  owner: {
6062
6187
  type: "string",
6063
- description: "Organization/namespace. Auto-detected from session when omitted."
6188
+ description: "Organization/namespace (e.g., GitHub org or username). Auto-inferred from session when omitted."
6064
6189
  },
6065
6190
  repo: {
6066
6191
  type: "string",
6067
- description: "Repository/project name. Auto-detected from session when omitted."
6192
+ description: "Repository/project name (e.g., 'local-memory-mcp'). Auto-inferred from session when omitted."
6068
6193
  },
6069
6194
  structured: {
6070
6195
  type: "boolean",
@@ -6101,11 +6226,11 @@ var KG_TOOL_DEFINITIONS = [
6101
6226
  },
6102
6227
  owner: {
6103
6228
  type: "string",
6104
- description: "Organization/namespace. Auto-detected from session when omitted."
6229
+ description: "Organization/namespace (e.g., GitHub org or username). Auto-inferred from session when omitted."
6105
6230
  },
6106
6231
  repo: {
6107
6232
  type: "string",
6108
- description: "Repository/project name. Auto-detected from session when omitted."
6233
+ description: "Repository/project name (e.g., 'local-memory-mcp'). Auto-inferred from session when omitted."
6109
6234
  },
6110
6235
  structured: {
6111
6236
  type: "boolean",
@@ -15,7 +15,7 @@ import {
15
15
  handleTaskClaim,
16
16
  listResources,
17
17
  logger
18
- } from "../chunk-IT2PAPJ6.js";
18
+ } from "../chunk-QOGYLJYW.js";
19
19
 
20
20
  // src/dashboard/server.ts
21
21
  import express from "express";
@@ -61,7 +61,7 @@ import {
61
61
  parseRepoInput,
62
62
  rankCompletionValues,
63
63
  toContextSlug
64
- } from "../chunk-IT2PAPJ6.js";
64
+ } from "../chunk-QOGYLJYW.js";
65
65
 
66
66
  // src/mcp/server.ts
67
67
  import { serveStdio } from "@modelcontextprotocol/server/stdio";
@@ -74,8 +74,8 @@ import path from "path";
74
74
  import { fileURLToPath } from "url";
75
75
  var __dirname = path.dirname(fileURLToPath(import.meta.url));
76
76
  var pkgVersion = "0.1.0";
77
- if ("0.19.6") {
78
- pkgVersion = "0.19.6";
77
+ if ("0.19.8") {
78
+ pkgVersion = "0.19.8";
79
79
  } else {
80
80
  let searchDir = __dirname;
81
81
  for (let i = 0; i < 5; i++) {
@@ -3566,28 +3566,36 @@ function normalizeToolArgs(args, session) {
3566
3566
  if (!nextArgs.owner) {
3567
3567
  const repoVal2 = nextArgs.repo || "";
3568
3568
  const parsed = parseRepoInput(repoVal2, void 0);
3569
- nextArgs.owner = parsed.owner || inferOwnerFromSession(session) || "";
3570
- if (nextArgs.owner && !repoVal2.includes("/")) {
3571
- logger.warn(
3572
- `[tools] owner inferred from session (${nextArgs.owner}) \u2014 may be incorrect. Agents should pass explicit owner/repo.`
3573
- );
3569
+ const inferredOwner = parsed.owner || inferOwnerFromSession(session);
3570
+ if (inferredOwner !== void 0) {
3571
+ nextArgs.owner = inferredOwner;
3572
+ if (!repoVal2.includes("/")) {
3573
+ logger.warn(
3574
+ `[tools] owner inferred from session (${nextArgs.owner}) \u2014 may be incorrect. Agents should pass explicit owner/repo.`
3575
+ );
3576
+ }
3574
3577
  }
3575
3578
  }
3576
3579
  if (scope && !scope.owner) {
3577
3580
  const repoVal2 = scope.repo || nextArgs.repo || "";
3578
3581
  const parsed = parseRepoInput(repoVal2, void 0);
3579
- scope.owner = parsed.owner || nextArgs.owner || inferOwnerFromSession(session) || "";
3582
+ const inferredOwner = parsed.owner || nextArgs.owner || inferOwnerFromSession(session);
3583
+ if (inferredOwner !== void 0) {
3584
+ scope.owner = inferredOwner;
3585
+ }
3580
3586
  }
3581
- const ownerVal = nextArgs.owner || inferOwnerFromSession(session) || "";
3582
- const repoVal = nextArgs.repo || inferRepoFromSession(session) || "";
3587
+ const ownerVal = nextArgs.owner || inferOwnerFromSession(session) || void 0;
3588
+ const repoVal = nextArgs.repo || inferRepoFromSession(session) || void 0;
3583
3589
  const memories = nextArgs.memories;
3584
3590
  if (memories) {
3585
3591
  for (const mem of memories) {
3586
3592
  const memScope = mem.scope;
3587
3593
  if (memScope) {
3588
- if (!memScope.owner)
3589
- memScope.owner = ownerVal || parseRepoInput(memScope.repo || repoVal, void 0).owner || "";
3590
- if (!memScope.repo) memScope.repo = repoVal;
3594
+ if (!memScope.owner) {
3595
+ const inferredMemOwner = ownerVal || parseRepoInput(memScope.repo || repoVal || "", void 0).owner;
3596
+ if (inferredMemOwner) memScope.owner = inferredMemOwner;
3597
+ }
3598
+ if (!memScope.repo && repoVal) memScope.repo = repoVal;
3591
3599
  }
3592
3600
  }
3593
3601
  }
@@ -3653,7 +3661,7 @@ function logToolAction(toolName, args, result, db2, isWrite) {
3653
3661
  }
3654
3662
  }
3655
3663
  function makePublicSchema() {
3656
- return z.object({}).catchall(z.unknown());
3664
+ return z.any();
3657
3665
  }
3658
3666
  function toCallToolResult(response) {
3659
3667
  const content = Array.isArray(response.content) ? response.content.map((item) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vheins/local-memory-mcp",
3
- "version": "0.19.6",
3
+ "version": "0.19.8",
4
4
  "description": "MCP Local Memory Service for coding copilot agents",
5
5
  "mcpName": "io.github.vheins/local-memory-mcp",
6
6
  "type": "module",