Skip to content

v1.2.3

Choose a tag to compare

@sebyx07 sebyx07 released this 27 Jun 12:35

Admin CLI: jobs, job kill, sessions

Local ops surface over the same SQLite state the server uses — for a shell on the host:

  • mcp-ssh jobs [--all] — list running jobs (or all, newest-first, capped at 200).
  • mcp-ssh job kill <id> — SIGTERM then SIGKILL the job's process group.
  • mcp-ssh sessions — summarise durable OAuth tokens (active/expired counts + next expiry). Never prints token material.

Design

  • New src/admin.rs. Commands read/act on SQLite directly and never construct a JobStore — that would start the reaper + startup reconcile and flip the live server's running rows to failed.
  • Jobs now persist their pgid (new nullable column + idempotent migration) so the CLI can signal a job's group even after a server restart. Reuses the reaper's TERM→KILL escalation.
  • config::db_path() resolves just the DB path, so the admin commands work without auth credentials configured.

No changes to the MCP tool surface. Drop-in upgrade.

Install: sudo dpkg -i mcp-ssh_1.2.3-1_amd64.deb