feat(mcp): add yt mcp service install/uninstall systemd user service #90
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/YT-35-mcp-service-install"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds a
servicesubcommand group toyt mcpthat managesyt mcp serveas a per-user systemd service, mirroringfj mcp service.installwrites~/.config/systemd/user/youtrack-mcp.servicerunningyt mcp serve, plus a 0600~/.config/youtrack-cli/mcp.env, thendaemon-reloadand (unless--no-start)enable --now. It requires the valuesyt mcp servecannot generate (--public-base-url,--hub-issuer,--hub-client-id, and a YouTrack base URL via--youtrack-base-urlor$YOUTRACK_BASE_URL), generates the two 32-byteYOUTRACK_MCP_MASTER_KEY/YOUTRACK_MCP_SESSION_KEYkeys (reusing stored values on re-run so keys are not rotated), and prints generated secrets once to stderr.uninstallis idempotent, removes the unit, reloads, and deletesmcp.envonly with--purge.The real bodies are
#[cfg(target_os = "linux")]; every other target compiles a stub returning a clear "Linux-only" error. Pure helpers (addr / database-url resolution, env-file and unit-file rendering, key generation, key reuse) are platform-agnostic and unit-tested.rand/base64are optional deps gated behind the default-onmcpfeature so the slim--no-default-featuresbuild stays lean.#YT-35
yt mcp service install/uninstallsystemd user service