feat(mcp): route MCP env file through shared ProjectDirs config dir #68

Merged
David merged 1 commit from feat/FJ-51-mcp-env-projectdirs-config into main 2026-07-04 20:54:30 +02:00
Owner

Derive the MCP service bearer-token env file path from the shared
directories::ProjectDirs::from("", "Pandoras-box", "forgejo-cli") helper (the
same one used for keys.json and client_ids) instead of a hardcoded
~/.config/fj/mcp.env literal. The env file now lands at
~/.config/forgejo-cli/mcp.env on Linux, so every per-user fj file shares one
directory structure. install, uninstall --purge, the rendered unit's
EnvironmentFile, the doc comments, the render test, and the README are all
updated to the new path. No legacy fallback or migration is added.

#FJ-51

Derive the MCP service bearer-token env file path from the shared `directories::ProjectDirs::from("", "Pandoras-box", "forgejo-cli")` helper (the same one used for `keys.json` and `client_ids`) instead of a hardcoded `~/.config/fj/mcp.env` literal. The env file now lands at `~/.config/forgejo-cli/mcp.env` on Linux, so every per-user `fj` file shares one directory structure. `install`, `uninstall --purge`, the rendered unit's `EnvironmentFile`, the doc comments, the render test, and the README are all updated to the new path. No legacy fallback or migration is added. #FJ-51
feat(mcp): route MCP env file through shared ProjectDirs config dir
All checks were successful
Check / fmt + clippy + build + tests (pull_request) Successful in 31s
Create release / Create release from merged PR (pull_request) Has been skipped
759867f6b7
Derive the MCP service bearer-token env file path from the shared
`directories::ProjectDirs::from("", "Pandoras-box", "forgejo-cli")` helper (the
same one used for `keys.json` and `client_ids`) instead of a hardcoded
`~/.config/fj/mcp.env` literal. The env file now lands at
`~/.config/forgejo-cli/mcp.env` on Linux, so every per-user `fj` file shares one
directory structure. `install`, `uninstall --purge`, the rendered unit's
`EnvironmentFile`, the doc comments, the render test, and the README are all
updated to the new path. No legacy fallback or migration is added.

#FJ-51
David scheduled this pull request to auto merge when all checks succeed 2026-07-04 20:54:00 +02:00
David merged commit cfc6646d5d into main 2026-07-04 20:54:30 +02:00
David deleted branch feat/FJ-51-mcp-env-projectdirs-config 2026-07-04 20:54:30 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
pandoras-box/forgejo-cli!68
No description provided.