Token导航 LogoToken导航

MCP Server · 开发工具

Just Runner MCP

一个将Justfile中的命令作为MCP工具暴露的服务器,允许AI助手发现和执行项目中定义的命令。

stdio官方级别未说明来源级核验工具 4just-runner-mcp
开发工具TypeScriptClaudeClaude Desktop

快速开始

作者 / 组织
millsaj
提供方
millsaj
运行时
Node.js

工具数量

4

来源目录标注

资源数量

0

来源目录标注

提示词数量

0

来源目录标注

GitHub Star

1

仓库热度

收录来源

1 个

MCP World

选型结论

Just Runner MCP 属于开发工具类 MCP Server,公开资料标注 4 个工具,通过stdio 本地进程接入,适配 Claude Desktop、Claude,有可以直接复制的安装命令;接入前先确认权限范围。

分类

开发工具

传输方式

stdio

认证方式

无需认证

部署方式

公开资料未说明

安装与配置

安装命令

npx just-runner-mcp --justfile ./path/to/your/justfile

客户端配置示例

{
  "mcpServers": {
    "just-runner-mcp": {
      "command": "npx",
      "args": [
        "just-runner-mcp",
        "--justfile",
        "./path/to/your/justfile"
      ]
    }
  }
}

按公开安装命令拼出来的示例,字段名和参数以仓库 README 为准;带 YOUR_API_KEY 这类占位符的位置记得换成自己的值。

上手步骤

  1. 1

    准备运行环境

    stdio 服务在本地起进程,需要先装好 Node.js,再按安装命令拉取依赖。

  2. 2

    安装服务

    复制下面的安装命令执行;命令里带占位符的位置换成自己的密钥或路径。

  3. 3

    写入客户端配置

    在客户端的 MCP 配置里填启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4

    验证是否可用

    连接成功后客户端会列出 4 个工具,随便调一个只读工具确认能返回结果。

接入前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

详细介绍

只是一个MCP命令运行器

一个模型上下文协议(MCP)服务器,它公开 就 食谱作为MCP工具,允许AI助手发现和执行Justfiles中定义的项目命令。

快速开始

使用npx安装并运行MCP服务器:

# Install just command runner if not already installed
# See https://github.com/casey/just#installation

# Run the MCP server pointing to a directory with a Justfile
npx just-runner-mcp --justfile ./path/to/your/justfile

# Or run from current directory (will search for Justfile)
npx just-runner-mcp

# Test via MCP inspector web UI
npx -y @modelcontextprotocol/inspector -- npx -y just-runner-mcp --justfile tests/support/basic.justfile

MCP客户端配置

添加到您的MCP客户端配置中(例如,Claude Desktop):

{
  "mcpServers": {
    "just-runner": {
      "command": "npx",
      "args": ["just-runner-mcp", "--justfile", "/path/to/your/project"]
    }
  }
}

为什么只是?

就 是一个命令运行器,用于在 justfile。这是向AI助手公开命令/脚本的有效选择,因为:

  • 语法简单:Justfiles使用干净、易于阅读和编写的灵感语法
  • 跨平台:适用于Linux、macOS、Windows和其他类Unix系统
  • 语言不可知论:食谱可以用任何语言编写(bash、python等)
  • 自我记录:食谱可以包括描述其作用的文档注释
  • 参数化食谱可以接受论点,使其灵活且可重复使用
  • 依赖管理:食谱可以依赖于其他食谱,确保正确的执行顺序

工具生成

MCP服务器自动解析Justfiles,并为每个配方生成MCP工具。每个工具都以配方命名,包括:

  • 名字:justfile中的配方名称
  • 描述:摘自文件评论(以…开头的行 # 食谱上方)
  • 参数:自动检测配方参数及其默认值和类型

例如,这个justfile配方:

# Compile Latex Document. FILEPATH must be an absolute path
compile-latex FILEPATH:
    tectonic {{FILEPATH}}

# Compile Typst Document. FILEPATH must be an absolute path
compile-typst FILEPATH:
    typst compile --format pdf {{FILEPATH}}
    typst compile --format png {{FILEPATH}} "page-{0p}-of-{t}.png"

将向MCP客户端公开以下工具:

{
  "tools": [
    {
      "name": "compile-latex",
      "description": "Run just recipe: compile-latex\nCompile Latex Document. FILEPATH must be an absolute path",
      "inputSchema": {
        "type": "object",
        "properties": {
          "FILEPATH": {
            "type": "string",
            "description": "Required"
          }
        },
        "required": ["FILEPATH"]
      }
    },
    {
      "name": "compile-typst",
      "description": "Run just recipe: compile-typst\nCompile Typst Document. FILEPATH must be an absolute path",
      "inputSchema": {
        "type": "object",
        "properties": {
          "FILEPATH": {
            "type": "string",
            "description": "Required"
          }
        },
        "required": ["FILEPATH"]
      }
    }
  ]
}

CLI选项

MCP服务器支持多种命令行选项:

Usage: just-mcp [options]

Expose Justfile recipes as MCP tools

Options:
  --justfile 
     Path to Justfile (default: "Justfile")
  --just-binary 
  Path to just binary (default: "just")
  --timeout         Timeout for recipe execution in milliseconds (default: 30000)
  --list-tools          Print available tools and exit
  --help                Show help message
  -h                    display help for command

例子

本节演示了一个开发项目的实用Justfile及其生成的MCP工具。每个食谱都成为AI助手可以发现和执行的工具。

简单开发Justfile

以下是一个典型开发工作流程的justfile:

# Install project dependencies
install:
    npm install

# Start the development server
dev port="3000":
    echo "Starting dev server on port {{port}}"
    npm run dev -- --port {{port}}

# Run all tests
test:
    npm test

# Deploy to staging environment
deploy-staging: build test
    echo "Deploying to staging..."
    ./scripts/deploy.sh staging

MCP工具输出

当你奔跑时 just-runner-mcp --list-tools,您将得到以下JSON响应,显示所有可用工具:

{
  "tools": [
    {
      "name": "install",
      "description": "Run just recipe: install\nInstall project dependencies",
      "inputSchema": {
        "type": "object",
        "properties": {},
        "required": []
      }
    },
    {
      "name": "dev",
      "description": "Run just recipe: dev\nStart the development server",
      "inputSchema": {
        "type": "object",
        "properties": {
          "port": {
            "type": "string",
            "description": "Parameter: port (default: 3000)"
          }
        },
        "required": []
      }
    },
    {
      "name": "test",
      "description": "Run just recipe: test\n",
      "inputSchema": {
        "type": "object",
        "properties": {},
        "required": []
      }
    },
    {
      "name": "deploy-staging",
      "description": "Run just recipe: deploy-staging\nDeploy to staging environment",
      "inputSchema": {
        "type": "object",
        "properties": {},
        "required": []
      }
    }
  ]
}

有了这些工具,人工智能助手可以帮助您完成常见的开发任务,如“安装依赖项”、“在端口8080上启动开发服务器”、“运行测试”或“部署到测试阶段”。

替代方案

还有其他方法可以将Just与MCP集成:

  • 只是mcp -一个基于Rust的MCP服务器,提供更全面的Justfile支持和处理。这个货物包提供了额外的功能,而不仅仅是将食谱作为工具暴露给LLM。

此存储库(just-runner-mcp)采取了一种最小化的方法,专门专注于将Just recipes作为MCP工具公开,供AI助手发现和执行。

发展

# Run all tests
just test

# Run specific test file
just test tests/integration.test.ts

许可证

此项目根据MIT许可证获得许可-请参阅 许可证 文件以获取详细信息。

工具与能力

工具数量

4

资源数量

0

提示词数量

0

能力标签

命令运行器TypeScript本地部署AI助手集成开发工具自动化脚本

支持客户端

Claude DesktopClaude

数量来自来源目录的标注,具体工具清单以官方文档为准。

典型使用场景

让助手直接读代码

把仓库、提交记录和 issue 交给模型检索,补全和重构时不用来回复制文件。

在对话里跑命令

触发构建、测试和脚本,执行结果直接回到上下文,省去切终端。

接进开发流程

把 PR、CI 状态和代码审查接进助手,减少在几个工具之间跳。

选择建议

值得选的地方

  • 只提供 4 个工具,职责集中,接入后不容易误操作。
  • 有现成的安装命令,不用自己找入口,照着跑就能起服务。
  • 已经适配 Claude Desktop、Claude,换客户端不用重新研究配置。

先想清楚的地方

  • stdio 方式要求本地装好 Node.js,换机器要重新装一遍。
  • 公开摘要偏短,具体能力和限制要回到仓库确认。
  • 第三方目录整理,版本更新和行为细节以官方仓库为准。

更适合

  • 需要在开发工具场景里让模型直接调用外部能力的人。
  • 已经在用 Claude Desktop 的用户,接入路径最短。
  • 想先快速试一下、能接受在本地跑服务的人。

不太适合

  • 完全不想在本地装环境的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

5 个同类
MCP Server工具数传输方式安装命令收录来源最后核验
Just Runner MCP

MCP World · 本页

4stdio有1 个2026-05-17
Git 838e2ec1

MCP World

12stdio有2 个2026-05-17
Markitdown MCP 2c653a5f

MCP World

1stdio有1 个2026-05-17
Context7 831acf40

MCP World

0stdio有1 个2026-05-17
Context7 MCP C671e75a

MCP World

0stdio有1 个2026-05-17

按同分类和工具数量挑出最接近的几条,字段以各自详情页为准。

常见问题

5 条

Just Runner MCP 怎么安装?

公开资料给出的安装命令是 npx just-runner-mcp --justfile ./path/to/your/justfile,运行环境为 Node.js。装完后按客户端要求写进 MCP 配置,重启客户端生效。

Just Runner MCP 怎么在 Claude Desktop、Cursor 里配置?

它是stdio 本地进程,客户端配置里要写启动命令和参数,运行环境是 Node.js;保存后完全退出客户端再打开,配置才会生效。

Just Runner MCP 收费吗?

本站只整理公开资料,不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

Just Runner MCP 需要 API Key 吗?

公开资料标注为无需认证,装好就能连;如果实际调用时报鉴权错误,按官方文档补上凭据。

Just Runner MCP 支持哪些客户端?

公开资料标注支持 Claude Desktop、Claude;其他客户端只要能配置 MCP Server,也能用同样的命令或地址接入。

来源信息

继续浏览同类 MCP