Skip to main content
Glama

just-mcp-work

Verify Release Latest release Go License: MIT

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:

Runner

Default

safe

all

go

safe

build, test, vet, mod download; no args

+fmt, mod tidy; go:any: any Go argv

just

safe

Public; no [confirm], + or required params; no args

Every recipe; positional recipe values

agent

safe

Fixed agent CLI tasks; declared args

-

cmake

safe

Presets; targets of configured Ninja trees except install and clean; no args

+install and clean targets; args passed to cmake, ctest, cpack

docker

safe

build, compose up, compose up <service>, compose down; no args

Same tasks; caller arguments as docker build / docker compose options

make

safe

Listed literal targets; no args

Same 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:

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.

Related MCP server: AI Knowledge Center MCP

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:

Flag

Environment

Default

--root

JMW_ROOT

Current directory

--ai

-

None

--timeout

JMW_TIMEOUT

15m (0 disables the timeout)

--sync-deadline

JMW_SYNC_DEADLINE

1m

--retention

JMW_RETENTION

72h

--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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      MCP server for task management, project knowledge, workspace trust, runner sandboxes, extension registry, and workflow prompts, enabling AI agents to manage tasks and collaborate locally.
      5,117 npm
      Apache 2.0
    • A
      license
      B
      quality
      D
      maintenance
      A local, evidence-driven MCP runtime and control plane for open-source maintainers that provides workspace-bounded tools including controlled file operations, command execution, validation primitives, durable execution records, and human review workflows via stdio and Streamable HTTP transports.
      33
      MIT
    • A
      license
      C
      quality
      B
      maintenance
      Local-first MCP runtime for coding agents with bounded workspace access, content-preconditioned writes, AST search, LSP navigation and diagnostics, and Git status/diff. Designed to give coding agents useful repository access without treating unrestricted shell access as the default integration boundary.
      13
      3
      MIT