Just MCP Server

io.github.PromptExecution由 GitHub 账号 PromptExecution 发布v0.1.5更新于 Oct 24, 2026

Expose curated Justfile recipes via MCP for safe deterministic automation.

已验证STDIO仅桌面效率与工作流开发者工具

概览

AI 生成的概览

本地 MCP 服务器,让助手通过 Just 命令运行器列出、查看、校验并执行 Justfile 中的配方。

可以做什么
  • 列出 Justfile 中定义的所有配方
  • 按名称执行配方并可传入参数,捕获结构化输出
  • 查询单个配方的详细信息,包括参数与说明
  • 校验 Justfile 的语法与语义错误
  • 支持 .env 文件与变量展开,供配方执行使用
适用场景
适合项目已把构建、测试或部署步骤写成 Justfile 配方,并希望智能体直接调用这些配方、而不是阅读脚本或自行拼凑 shell 命令的场景。也适合上下文较小的模型做智能体执行,以及希望比裸 bash 更可控、更可复现的团队。
运行要求
以本地 stdio 进程在用户机器上运行,仅限桌面端。可通过 npm/npx、pip/uvx、cargo、pkgx、预编译二进制或已发布的容器镜像安装,并在客户端配置 just-mcp 命令与 --stdio 参数,可选指定工作目录。需要目标项目中有 Just 命令运行器和 Justfile。
安装前请注意
run_recipe 会执行 Justfile 中定义的命令,配方所做的任何操作(构建、删除、部署)都以用户权限发生,授权前应先审阅配方。它会读取 .env 文件做变量展开,其中的密钥可能暴露给该进程。README 也指出安全性取决于配方是否经过筛选且具备幂等性。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Just MCP Server,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

just-mcp

[CI] [Release] [Crates.io] [License: MIT]

[Trust Score]

👋 A way to let LLMs speak Just

A production-ready MCP server that provides seamless integration with Just command runner, enabling AI assistants to discover, execute, and introspect Justfile recipes through the standardized MCP protocol.

🎯 Why Just + MCP = Better Agent Execution

Context-Saving Abstraction

If it isn't immediately obvious, the benefit of having LLMs use Just vs. bash is that running Just commands (via MCP) provides a context-saving abstraction where they don't need to waste context opening/reading bash files, Python scripts, or other build artifacts. The LLM via MCP simply gets the command, parameters, and hints - it's in their memory as "these are commands available to you."

Eliminates the Justfile Learning Curve

No more watching LLMs execute just -l to get command lists, inevitably start reading the justfile, then try to write justfile syntax (like it's a Makefile), corrupt the justfile, and create a bad experience. Just's evolving syntax simply doesn't have a large enough corpus in frontier models today - we need more popular repos with justfiles in the training dataset.

Safer Than Raw Bash Access

Just-mcp is fundamentally safer than bash. If you read HackerNews, there's a story at least once daily about operators whose LLMs start forgetting, hallucinating, and eventually breaking down - deleting files and doing nasty unwanted things. Giving LLMs unsupervised, unrestricted bash access without carefully monitoring context consumption is a recipe for disaster.

Using Justfile fixes that. Even if the LLM modifies its own justfile, the next context is memoized by the justfile (hopefully in an idempotent git repo). This abstraction shields the llm from the command line complexity where hallucinations or attention tracking the current working directory cause it to go over the rails and off the cliff.

Powerful Agent Execution Tool

Just-mcp is perfect for anybody doing agent execution:

  • Ultra-low overhead - probably better than every other tool
  • Human-friendly - justfiles are easy for humans and low overhead for LLMs
  • Quick and dirty - while some prefer full Python FastAPI servers, just-mcp is just easy-as
  • sm0l model friendly - works great with self-hostable GPU/CPU open source models with 8k-32k context limits

Built-in Safety Patterns

Just has useful patterns for introducing:

  • Transparent logging without distracting the agent
  • Secondary model inspection - use sm0l models to scan commands asking "is this harmful?" before execution
  • Python decorator-like patterns for command validation
  • Idempotent execution backed by git repos

b00t

b00t mcp create just-mcp -- bash just-mcp --stdio "${REPO_ROOT}"b00t mcp export just-mcp

🚀 Current Status: 67% Complete (8/12 core tasks)

✅ Implemented Features

  • 🏗️ Complete MCP Server - Full rmcp 0.3.0 integration with MCP 2024-11-05 protocol
  • 📋 Recipe Discovery - Parse and list all available Justfile recipes
  • ⚡ Recipe Execution - Execute recipes with parameters and capture structured output
  • 🔍 Recipe Introspection - Get detailed recipe information, parameters, and documentation
  • ✅ Justfile Validation - Syntax and semantic validation with error reporting
  • 🌍 Environment Management - Comprehensive .env file support and variable expansion
  • 🧪 Full Test Coverage - 33 passing tests across integration and unit test suites

🎯 MCP Tools Available

  1. list_recipes - List all available recipes in the justfile
  2. run_recipe - Execute a specific recipe with optional arguments
  3. get_recipe_info - Get detailed information about a specific recipe
  4. validate_justfile - Validate the justfile for syntax and semantic errors

🏃 Quick Start

Installation

Choose your preferred installation method:

npm (JavaScript/TypeScript)
bash
# Install globallynpm install -g just-mcp
# Or use with npx (no installation required)npx just-mcp --stdio
pip (Python)
bash
# Install with pippip install just-mcp
# Or use with uvx (recommended)uvx just-mcp --stdio
Cargo (Rust)
bash
# Install from crates.iocargo install just-mcp
# Or build from sourcegit clone https://github.com/promptexecution/just-mcpcd just-mcpcargo build --release
pkgx (pkgxdev)
bash
pkgx just-mcp --stdio

pkgx downloads the platform-specific tarball that GitHub releases expose (just-mcp-*-*.tar.gz), extracts the executable into ${PKGX_DIR:-$HOME/.pkgx}/bin, and runs the CLI with the arguments you pass. Add that bin directory to your shell’s PATH if you need just-mcp available long-term. The packaging manifest lives in pkgx/projects/github.com/promptexecution/just-mcp/package.yml and mirrors the pkgxdev/pantry entry.

Using Docker
bash
# Pull the latest image from GitHub Container Registrydocker pull ghcr.io/promptexecution/just-mcp:latest
# Run with Dockerdocker run --rm -v $(pwd):/workspace ghcr.io/promptexecution/just-mcp:latest --stdio
# Build locallydocker build -t just-mcp:local .docker run --rm -v $(pwd):/workspace just-mcp:local --stdio

Available Docker image tags:

  • latest - Latest stable release
  • X.Y.Z - Specific version (e.g., 0.1.0)
  • X.Y - Latest patch version (e.g., 0.1)
  • X - Latest minor version (e.g., 0)

Claude Desktop Integration

Using npm/npx

Add to your Claude Desktop MCP configuration:

Using Binary
json
{  "mcpServers": {    "just-mcp": {      "command": "npx",      "args": ["-y", "just-mcp", "--stdio"]    }  }}
Using pip/uvx
json
{  "mcpServers": {    "just-mcp": {      "command": "uvx",      "args": ["just-mcp", "--stdio"]    }  }}
Using cargo or manual install
json
{  "mcpServers": {    "just-mcp": {      "command": "/path/to/just-mcp",      "args": ["--stdio"]    }  }}
Using Docker
json
{  "mcpServers": {    "just-mcp": {      "command": "docker",      "args": [        "run",        "--rm",        "-i",        "-v",        "${workspaceFolder}:/workspace",        "ghcr.io/promptexecution/just-mcp:latest",        "--stdio"      ]    }  }}

Usage Examples

bash
# Run as MCP serverjust-mcp --stdio
# Run in specific directory  just-mcp --directory /path/to/project --stdio
# Using Dockerdocker run --rm -v $(pwd):/workspace ghcr.io/promptexecution/just-mcp:latest --stdio

🧪 Testing

Comprehensive Test Suite

bash
# Run all tests (33 tests)cargo test
# Run specific test suitescargo test --test basic_mcp_test      # Protocol compliance testingcargo test --test mcp_integration_working  # SDK integration testing

Test Architecture

  • basic_mcp_test.rs - Direct protocol compliance testing using raw JSON-RPC
  • mcp_integration_working.rs - Type-safe SDK integration testing with rmcp client
  • Unit tests - 25+ tests covering parser, executor, validator, and environment modules

📚 Architecture

Project Structure

just-mcp/├── src/main.rs              # CLI binary├── just-mcp-lib/           # Core library│   ├── parser.rs           # Justfile parsing│   ├── executor.rs         # Recipe execution  │   ├── validator.rs        # Validation logic│   ├── environment.rs      # Environment management│   └── mcp_server.rs       # MCP protocol implementation├── tests/                  # Integration tests└── justfile               # Demo recipes

Tech Stack

  • Rust 1.82+ with async/await support
  • rmcp 0.3.0 - Official MCP SDK for Rust
  • serde/serde_json - JSON serialization
  • snafu - Structured error handling
  • tokio - Async runtime

🔄 Development Roadmap

🎯 Next Priority Tasks (Remaining 33%)

  1. LSP-Style Completion System - Intelligent autocompletion for recipes and parameters
  2. Enhanced Diagnostics - Advanced syntax error reporting and suggestions
  3. Virtual File System - Support for stdin, remote sources, and in-memory buffers
  4. Release Preparation - Documentation, CI/CD, and crate publication

🚀 Future Enhancements

  • Plugin system for custom recipe types
  • Integration with other build tools
  • Performance optimizations for large justfiles
  • Advanced dependency visualization

📖 Usage Patterns

Recipe Execution

javascript
// List available recipesawait client.callTool("list_recipes", {});
// Execute recipe with parameters  await client.callTool("run_recipe", {  "recipe_name": "build",  "args": "[\"--release\"]"});
// Get recipe informationawait client.callTool("get_recipe_info", {  "recipe_name": "test"});

Validation

javascript
// Validate justfileawait client.callTool("validate_justfile", {  "justfile_path": "./custom.justfile"  });

🤝 Contributing

This project follows the b00t development methodology:

  • TDD Approach - Tests first, implementation second
  • Feature Branches - Never work directly on main branch
  • Structured Errors - Use snafu for error management
  • Git Workflow - Clean commits with descriptive messages

Development Commands

bash
just build    # Build the projectjust test     # Run tests  just server   # Start MCP serverjust clean    # Clean build artifacts

📄 License

This project is licensed under LICENSE.

🚀 Release Setup & CI/CD

✅ Completed Setup

Cocogitto & Conventional Commits
  • Installed cocogitto for conventional commit enforcement
  • Configured cog.toml with proper commit types and changelog settings
  • Set up git hooks for commit message linting (commit-msg) and pre-push testing
GitHub Actions CI/CD
  • CI Pipeline (ci.yml): Multi-platform testing (Ubuntu, Windows, macOS), formatting, clippy, commit linting
  • Release Pipeline (release.yml): Automated versioning, changelog generation, GitHub releases, and crates.io publishing
  • Binary Builds (build-binaries.yml): Cross-platform binary compilation for npm and pip packages
  • Container Pipeline (container.yaml): Multi-platform Docker image builds (linux/amd64, linux/arm64) pushed to GitHub Container Registry
Docker Images
  • Multi-platform builds for linux/amd64 and linux/arm64
  • Minimal image size using static musl binaries and scratch base image
  • Automatic tagging with semantic versioning (major, major.minor, major.minor.patch, latest)
  • Published to GitHub Container Registry (ghcr.io)
  • Integrated with release workflow for automatic deployment
Crates.io Preparation
  • Updated both Cargo.toml files with complete metadata (description, keywords, categories, license, etc.)
  • Added proper exclusions for development-only files
  • Verified MIT license is in place
Documentation & Structure
  • README.md is production-ready with installation and usage instructions
  • Created initial CHANGELOG.md for release tracking
  • Updated .gitignore with Rust-specific entries

🚀 Production Deployment

Development Workflow:
  • All commits must follow conventional commit format (enforced by git hooks)
  • Use feat:, fix:, docs:, etc. prefixes for automatic versioning
  • Push to main branch triggers automated releases and crates.io publishing
  • Library tests pass ✅ (25/25) with comprehensive test coverage
Release Process:
  • Automated Versioning: Cocogitto analyzes commit messages for semantic versioning
  • GitHub Releases: Automatic changelog generation and GitHub release creation
  • Binary Distribution: Pre-built binaries for Linux (x86_64, aarch64), macOS (x86_64, aarch64), and Windows (x86_64)
  • Crates.io Publishing: Library crate (just-mcp-lib) publishes first, then binary crate (just-mcp)
  • npm Publishing: Wrapper package for easy Node.js/TypeScript integration
  • PyPI Publishing: Python wrapper package for pip/uvx installation
  • CI/CD Pipeline: Multi-platform testing (Ubuntu, Windows, macOS) with formatting and clippy checks
Installation Methods:
bash
# npm (JavaScript/TypeScript ecosystems)npm install -g just-mcp# ornpx just-mcp --stdio
# pip (Python ecosystems)pip install just-mcp# oruvx just-mcp --stdio
# cargo (Rust ecosystem)cargo install just-mcp
# Download pre-built binarieswget https://github.com/promptexecution/just-mcp/releases/latest/download/just-mcp-x86_64-unknown-linux-gnu.tar.gz# Or use Dockerdocker pull ghcr.io/promptexecution/just-mcp:latest
# Or download from GitHub releaseswget https://github.com/promptexecution/just-mcp/releases/latest/download/just-mcp

🔗 Related Projects

Friends of just-mcp

  • just-vscode - VSCode extension with LSP integration for enhanced Just authoring
  • just-awesome-agents - Collection of patterns and tools for agent execution with Just# Test change to trigger pre-push hook

来源:README.md,提交 26a3063

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.5最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分