Skip to content

docs: mcp project override, VS Code/WSL, EXDEV, topic_key guide, Task Scheduler#456

Merged
Alan-TheGentleman merged 3 commits into
mainfrom
docs/backlog-docs-batch
May 29, 2026
Merged

docs: mcp project override, VS Code/WSL, EXDEV, topic_key guide, Task Scheduler#456
Alan-TheGentleman merged 3 commits into
mainfrom
docs/backlog-docs-batch

Conversation

@Alan-TheGentleman
Copy link
Copy Markdown
Collaborator

Summary

Documentation batch. Closes #394, Closes #109, Closes #158, Closes #419. Refs #421 (adds the Windows Task Scheduler template; the code portion ships in its own PR — do not auto-close #421 until both merge).

Changes

Test plan

Docs only. go build ./... clean after the printUsage edit. Facts in #394/#419 verified against cmd/engram/main.go (cmdMCP reads ENGRAM_PROJECT/--project into MCPConfig.DefaultProject).

…394)

The stale comment at DOCS.md:~1041 falsely claimed engram mcp did not
support --project or ENGRAM_PROJECT. Commit b094052 wired both into
MCPConfig.DefaultProject. Update DOCS.md body text, env-var table,
README CLI table, and printUsage() help string to reflect current behavior.
…EXDEV fix (#419, #109)

Hosts that don't inherit cwd (VS Code, WSL, CI, Docker) need an explicit
--project flag or ENGRAM_PROJECT env var to avoid wrong project detection.
Add a worked example with both forms and explain when to use each.

Also document the EXDEV cross-device link error that appears on Linux when
/tmp and /home are on separate filesystems, with a one-shot TMPDIR workaround
and a permanent shell-rc fix.
…158, #421)

#158: Rewrite the Topic Key Workflow section in ARCHITECTURE.md into a
complete guide covering the upsert semantics, format convention with
FTS5 rationale, anti-patterns, decision table, mem_suggest_topic_key
workflow, hierarchy limit, lifecycle/pruning, and scope interaction.

#421: Add a Windows Task Scheduler template to the Running as a Service
section in DOCS.md, parallel to the existing systemd and launchd blocks.
Includes PowerShell setup snippet, note on persistent env vars for cloud
token, UTF-8 log guidance, and stop/remove instructions.
Copilot AI review requested due to automatic review settings May 29, 2026 12:15
@Alan-TheGentleman Alan-TheGentleman added the type:docs Documentation only label May 29, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Documentation-only batch addressing four issues: corrects misleading docs about MCP --project/ENGRAM_PROJECT overrides (#394), adds a VS Code/WSL/CI .mcp.json pinning example (#419), documents the Linux EXDEV TMPDIR workaround for Claude Code plugin install (#109), expands the topic_key guide with format, decision table, hierarchy, lifecycle, and scope interaction (#158), and adds a Windows Task Scheduler service template (#421).

Changes:

  • Update DOCS.md env-var table, MCP project resolution paragraph, README CLI table, and printUsage CLI help to reflect that engram mcp supports --project/ENGRAM_PROJECT.
  • Add VS Code/WSL/CI MCP setup guidance and a Linux EXDEV troubleshooting section in docs/AGENT-SETUP.md; expand the topic_key guide in docs/ARCHITECTURE.md.
  • Add a Windows Task Scheduler service template to the "Running as a Service" section of DOCS.md.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
README.md Updates CLI command table to include [--project NAME] for engram mcp.
DOCS.md Rewrites ENGRAM_PROJECT env-var row, corrects MCP project resolution paragraph, and adds Windows Task Scheduler template.
docs/AGENT-SETUP.md Adds Linux EXDEV troubleshooting and VS Code/WSL/CI project-pinning guidance for MCP.
docs/ARCHITECTURE.md Expands topic_key guide: format, anti-patterns, decision table, suggest-first workflow, hierarchy, lifecycle, scope interaction.
cmd/engram/main.go Updates printUsage to document the --project flag and the new ENGRAM_PROJECT semantics for engram mcp.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/AGENT-SETUP.md

Both `--project=my-project` and `ENGRAM_PROJECT=my-project` set `MCPConfig.DefaultProject`, which takes precedence over cwd detection for every read and write tool for the lifetime of that MCP process.

> The `--project` flag and `ENGRAM_PROJECT` env var are the same mechanism. If both are supplied, the flag wins. The value must match an existing project name in your Engram store; unknown names are rejected so typos fail loudly instead of silently creating a new project bucket.
@Alan-TheGentleman Alan-TheGentleman merged commit b625d77 into main May 29, 2026
9 checks passed
@Alan-TheGentleman Alan-TheGentleman deleted the docs/backlog-docs-batch branch May 29, 2026 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment