PJ

promptexecution/just-mcp

部署与 DevOps

本页由 AI 翻译,技术细节请以原文为准。 查看原文

60 stars 10 forks 质量 76 趋势 4MIT

promptexecution/just-mcp 是从 https://github.com/promptexecution/just-mcp. 导入的 MCP 候选服务器

概览

promptexecution/just-mcp 是从 https://github.com/promptexecution/just-mcp. 导入的 MCP 候选服务器

概述(AI 翻译)

** 👋 让大型语言模型自然表达的方式

一台生产准备的MCP服务器,实现与Just command runner无缝集成,使AI助手能够通过标准化MCP协议发现、执行并内省Justfile配方。

🎯 为什么只是 + MCP = 更好的特工执行

保存上下文的抽象

如果不明显,LLM用Just Just而不是bash的好处是,运行Just 명령(通过MCP)提供了上下文保存的抽象,不用浪费上下文去打开/读取bash文件、Python脚本或其他构建伪物。LLM通过MCP直接获取命令、参数和提示——它们的内存中显示“这些是你可用的命令”。

消除Justfile的学习曲线

不再看着大型语言模型执行just -l获取命令列表,最终开始读取justfile,然后尝试写入justfile语法(就像Makefile那样),破坏justfile,造成糟糕体验。Just不断演变的语法在前沿模型中语料库数量不够大——我们需要更多带justfile的流行仓库训练数据集。

比原始猛击更安全

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

just-mcp

👋 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
在 GitHub 查看完整 README

安装

npx -y just-mcp --stdio
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "just-mcp": { "command": "npx", "args": ["-y", "just-mcp", "--stdio"] } } }