
将同一个项目 justfile 任务分享给你的 AI 编码代理。
概览
通过模型上下文协议将 justfile 转换为 AI 可访问的自动化工具 通过将 justfile 的 recipes 作为动态可发现的 MCP 工具,连接了 justfiles 和 Coding Agents。 这使得AI助手能够理解、探索并执行项目的常见开发流程,类似于人类的操作。 它会找到合适的 justfile 任务,作为 MCP 工具执行。 就这些。你的AI现在可以使用你的JustFile任务。 : 启动新会话,勾选 /mcp 中的“just”,查看详细信息以查看加载了多少工具。 : ~/Library/Application Support/Claude/claude_desktop_config.json : %APPDATA%\Claude\claude_desktop_config.json : 重启Claude桌面,检查设置按钮中的自定义连接工具。
概述(AI 翻译)
通过模型上下文协议将justfiles转换为AI可访问的自动化工具
just-mcp 通过将 justfile 配方作为动态可发现的 MCP 工具,连接 justfiles 和 Coding Agents。
这使得AI助手能够理解、探索并执行项目的常见开发流程,类似于人类的操作。
快速启动
1.安装just-mcp
2.配置您的代理(见下方MCP客户端设置)
3.使用斩击命令:
它会找到合适的 justfile 任务,作为 MCP 工具执行。
就这些。你的AI现在可以使用你的JustFile任务。
MCP 客户端设置
克劳德密码
或者手动添加到~/.claude.json:
验证:新开会话,检查 /mcp 是否“just”,查看详细信息以查看加载了多少工具。
Claude Desktop
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
验证:重启Claude Desktop,检查设置按钮中的自定义连接工具。
Cline(VS Code 扩展)
- 点击 Cline 图标→ MCP 服务器 → 配置 MCP 服务器
- 添加配置:
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
just-mcp
Transform justfiles into AI-accessible automation tools through the Model Context Protocol
just-mcp bridges justfiles and Coding Agents by exposing justfile recipes as dynamically discoverable MCP tools.
This enables AI assistants to understand, explore, and execute a project’s common development workflows similar to how a human would.
Quick Start
1. Install just-mcp
# Using cargo-binstall (fastest - downloads pre-built binary)
cargo binstall --git https://github.com/toolprint/just-mcp just-mcp
# Or download latest release
curl -L https://github.com/toolprint/just-mcp/releases/latest/download/just-mcp-$(uname -m)-$(uname -s).tar.gz | tar xz
sudo mv just-mcp /usr/local/bin/
2. Configure your Agent (see MCP Client Setup below)
3. Use the Slash Command:
/just:do-it build the project
It will find the appropriate justfile task to run as an MCP Tool.
That’s it. Your AI can now use your justfile tasks.
MCP Client Setup
- Click Cline icon → MCP Servers → Configure MCP Servers
- Add configuration:
{
"mcpServers": {
"just": {
"disabled": false,
"timeout": 60,
"type": "stdio",
"command": "just-mcp",
"args": [
"-w",
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"just": {
"type": "stdio",
"command": "just-mcp"
}
}
}