Token导航 LogoToken导航TokenDH.com
makefilehub (Fuabioo) logo
开发工具未说明官方级别未说明来源级核验

makefilehub (Fuabioo)

MCP Server

makefilehub是一个通用的MCP服务器,为Claude Code提供跨不同构建系统的统一任务运行接口。

工具数

0

提示词数

0

GitHub Stars

0

资源数

0
开发工具RustClaudeClaude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

Fuabioo

提供方

Fuabioo

最后核验

2026/5/17 20:19

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

makefilehub

用于跨不同构建系统运行任务的通用MCP(模型上下文协议)服务器。

makefilehub 为Claude Code提供了一个统一的交互界面:

  • Makefile -GNU制造
  • justfile -just命令运行器
  • 自定义脚本 -run.sh、build.sh等。

特性

  • 自动检测 按可配置优先级构建系统
  • 符合XDG标准 分层配置
  • 环境变量插值 ($VAR, ${VAR})
  • Shell命令插值 ($(command))
  • 服务依赖性管理 用于复杂的重建编排
  • MCP工具 用于无缝集成Claude代码

安装

来源

cargo install --path .

使用货物

cargo install makefilehub

MCP集成

将makefilehub添加到Claude代码中:

claude mcp add --transport stdio --scope user makefilehub makefilehub mcp

CLI使用情况

# Start MCP server (for Claude Code)
makefilehub mcp

# Run a task in the current directory
makefilehub run build
makefilehub run test

# Run a task in a specific project
makefilehub run build -p /path/to/project
makefilehub run build -p my-service  # uses configured service

# Force a specific runner
makefilehub run build -r just
makefilehub run build -r make
makefilehub run build -r ./run.sh

# Pass arguments
makefilehub run build -a TARGET=release -a DEBUG=0
makefilehub run test -- --verbose --filter pattern

# List available tasks
makefilehub list
makefilehub list -f json

# Detect build system
makefilehub detect
makefilehub detect -p /path/to/project

# Show project configuration
makefilehub config my-service

# Rebuild service with dependencies
makefilehub rebuild web-api
makefilehub rebuild web-api -s frontend --skip-deps

MCP工具

run_task

在项目中运行任务/目标。自动检测构建系统。

{
  "task": "build",
  "project": "/path/to/project",
  "runner": "make",
  "args": {"TARGET": "release"},
  "positional_args": ["--verbose"]
}

list_tasks

列出项目中可用的任务/目标。

{
  "project": "/path/to/project",
  "runner": "just"
}

检测轮

检测项目使用的构建系统。

{
  "project": "/path/to/project"
}

get_project_config

获取项目/服务的解析配置。

{
  "project": "my-service"
}

重建服务

使用依赖关系处理构建服务。

{
  "service": "web-api",
  "services": ["frontend"],
  "skip_deps": false,
  "skip_recreate": false
}

配置

配置文件按顺序加载(从低到高优先级):

  1. /etc/makefilehub/config.toml
  2. ~/.config/makefilehub/config.toml
  3. ~/.makefilehub.toml
  4. ./.makefilehub.toml (项目根)

示例配置

[defaults]
runner_priority = ["make", "just", "script"]
default_script = "./run.sh"
timeout = 300

[defaults.task_aliases]
build = ["build", "compile"]
test = ["test", "check"]

[runners.make]
command = "make"

[runners.just]
command = "just"

[runners.script]
scripts = ["./run.sh", "./build.sh"]

[services.web-api]
project_dir = "$HOME/projects/web-api"
runner = "script"
depends_on = ["frontend"]
force_recreate = ["nginx"]

[services.web-api.tasks]
build = "build"
up = "up"

插值

  • $VAR${VAR} -环境变量
安全说明:Shell命令插值($(command))出于安全考虑,已将其删除。 来自不受信任的源(例如克隆的存储库)的配置文件可以执行任意代码。

例子:

[services.dynamic]
project_dir = "${PROJECTS_DIR}/my-project"

[services.home-based]
project_dir = "$HOME/projects/my-app"

构建系统优先级

当没有配置显式运行器时,makefilehub会按以下顺序自动检测:

  1. Makefile - Makefile, makefile, GNUmakefile
  2. justfile - justfile, Justfile, .justfile
  3. 脚本 - ./run.sh, ./build.sh等等。(可配置)

发展

# Install development tools
just setup

# Run tests
just test

# Run linter
just lint

# Run all checks
just check

# Build release
just release

许可证

麻省理工学院

目录标签

目录标签

开发工具RustClaude构建系统本地部署任务运行MCP集成自动化构建

支持客户端

Claude

接入字段

传输方式(transport,传输协议)

未说明

鉴权方式(authType,认证方式)

none

工具数量(toolCount,工具数)

0

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

未说明none部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

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

仍需确认:installCommand

来源信息

继续浏览同类 MCP