Repository avatar
Developer Tools
v1.0.0
active

just-mcp-work

io.github.palchukovsky/just-mcp-work

Discover and run Just, Go, Make, CMake and Docker tasks in one local workspace, with logs on demand.

Documentation

just-mcp-work

Verify Release Latest release Go License: MIT Just MCP Work on Glama

Just work with your workspace - over MCP.

Your coding agent spends context reading build files and re-reading logs it already ran. just-mcp-work is a small local MCP server that gives it one way to find and run everything a workspace can run, and answers with a short receipt instead of a wall of output.

  • No build files in context. Go modules, Just, CMake, Docker, GNU Make, and Git repositories for fixed CLI coding-agent tasks nested anywhere in the workspace are discovered on demand. The agent asks for one task and gets that one task.
  • Output only when it is wanted. A run answers with its status, exit code, and short output tails. The full stdout and stderr stay one call away - for the failures where they matter.
  • Long runs stay out of the way. Anything slow moves to the background with a run ID the agent can follow, wait on, or stop.
  • Genuinely ad-hoc commands still run. A plain shell command is only for work outside both the discovered tasks and any task surface withheld by a runner mode. The workspace owner can switch the shell tools off.
  • Writes can be bounded per launch. On macOS, a caller can declare the paths a run may write; JMW refuses a scoped launch where it cannot enforce that boundary.

The agent gets the usage rules from the server itself, so there is nothing here you have to teach it.

Each runner has a default mode and exposes the following task surface:

RunnerDefaultsafeall
gosafebuild, test, vet, mod download; no args+fmt, mod tidy; go:any: any Go argv
justsafePublic; no [confirm], + or required params; no argsEvery recipe; positional recipe values
agentsafeFixed agent CLI tasks; declared args-
cmakesafePresets; targets of configured Ninja trees except install and clean; no args+install and clean targets; args passed to cmake, ctest, cpack
dockersafebuild, compose up, compose up <service>, compose down; no argsSame tasks; caller arguments as docker build / docker compose options
makesafeListed literal targets; no argsSame targets; args after the target as goals or assignments

Every runner also has disabled, which constructs and exposes nothing.

Tasks and shell commands otherwise run with your privileges and unrestricted filesystem access: runner modes reduce the task surface but are not a sandbox, and the shell tools bypass them unless the workspace policy switches them off. Read SECURITY.md before pointing this at a workspace.

Install

Download an archive from the latest GitHub Release:

PlatformDownload
Linux x86_64just-mcp-work_linux_amd64.tar.gz
Linux arm64just-mcp-work_linux_arm64.tar.gz
macOS Apple Siliconjust-mcp-work_darwin_arm64.tar.gz (opening notes)
Windows x86_64just-mcp-work_windows_amd64.zip

Extract it and put just-mcp-work (or just-mcp-work.exe) on PATH. The release checksums.txt verifies the archive. From source:

go install github.com/palchukovsky/just-mcp-work/cmd/just-mcp-work@latest

The Go toolchain, just 1.39.0 or newer, CMake, Docker with the Compose v2 plugin, GNU Make, codex, and claude are needed only for the project types you actually have. A tool missing on this host is reported as a warning, and everything else in the workspace keeps working.

Set it up

Run this once in the workspace:

just-mcp-work init

It asks whether the workspace takes part in the JMW beta test, where the managed instruction block goes, what mode each runner gets, which directories project discovery skips, which AI families to declare, whether the shell tools are offered at all and, when they are, whether they may run without a client confirmation. Then it writes those surfaces, the runner policy, and the generated agent guide. A terminal that can draw it shows the questions as one keyboard-driven form; anywhere else they come one at a time as text. Every question has a flag for a scripted run; init --help lists them.

A workspace whose policy predates the shell member must rerun init with --keep-recorded --shell enabled|disabled; see After an update for the other flags to pass.

Set up a workspace covers the questions, the files init owns, and when a later release asks you to run it again.

Clients configured by init start serve from the generated entry. For Cline CLI, register the server in Cline.

serve accepts these options:

FlagEnvironmentDefault
--rootJMW_ROOTCurrent directory
--ai-None
--timeoutJMW_TIMEOUT15m (0 disables the timeout)
--sync-deadlineJMW_SYNC_DEADLINE1m
--retentionJMW_RETENTION72h
--exclude-None

--sync-deadline and --retention must be positive, including when set through their environment variables.

Run data is kept under .just-mcp-work/log/ in the selected workspace.

Build and release

With Just:

just setup
just verify
just build-all
just package

just setup installs the pinned verification tools into ignored directories in this checkout: golangci-lint under .tmp/bin/ and Semgrep under .venv/. just verify checks formatting, dependencies, strict lint, vet, race-enabled tests, build, and the MCP smoke flow. just build-all produces the Linux, macOS, and Windows binaries; just package creates the release archives and checksums. just build-run <arguments> builds the command for this machine and runs it, for example just build-run init --dir ~/work/my-project.

just release <patch|minor|major> <notes_file> verifies the project, commits the release notes from an absolute path and pushes the current branch, then creates and pushes the next tag. GitHub Actions then builds and publishes the release. just release-dry [patch|minor|major] runs the same checks and starts a pipeline dry run without creating a tag; it needs authenticated GitHub CLI access.

Documentation

docs/ is the documentation index. Start with the agent guide: the object model, discovery rules, task IDs per runner, the run lifecycle, and the MCP tool reference.

License

MIT

No installation packages available.