fix(mcp): pass ingest flag through service CLI

Ensure mcp_service.sh start --enable-ingest actually writes OBSIDIAN_MCP_ENABLE_INGEST=1 by forwarding the parsed flag to start_service.

Also stop the new-token command from referencing the start-only flag, and cover both CLI paths with regression tests.

Validation: python3 -m unittest discover -v; git diff --check
This commit is contained in:
Codex
2026-07-05 14:58:03 +00:00
parent b174df642f
commit 691e5aa8ea
2 changed files with 25 additions and 1 deletions
+1 -1
View File
@@ -406,7 +406,6 @@ def main(argv: Sequence[str] | None = None) -> int:
port=args.port,
path=args.path,
token_bytes=args.token_bytes,
enable_ingest=args.enable_ingest,
),
end="",
)
@@ -420,6 +419,7 @@ def main(argv: Sequence[str] | None = None) -> int:
port=args.port,
path=args.path,
token_bytes=args.token_bytes,
enable_ingest=args.enable_ingest,
),
end="",
)