Doramagic.ai English

MCP 工具接入 · 开源项目

localharness

MCP 工具接入项目,用于把外部工具、服务或数据源安全接入 AI 宿主。

MCP工具调用宿主配置权限边界验收清单

最后验证日期:2026-07-21 验证方法:来源证据、语义档案、公开页面门禁和静态构建验收。

快速判断 · 2026-07-21

localharness 项目 是什么?

01

一眼判断

先判断自己是否是目标用户,再决定是否继续。
最适合谁需要让 Claude、Cursor、Codex 或其他支持 MCP 的 AI 宿主安全调用外部工具的开发者。

判断自己是不是目标用户。

核心能力MCP 接入说明、宿主配置检查、工具权限边界、失败恢复和验收清单

不适合不愿修改宿主配置、无法授予工具权限、或不能隔离网络/文件/凭据访问的用户。

第一步验证先在非主力宿主配置中验证 MCP server 命令、权限范围和回滚方式。

未完成验证前保持审慎。

02

它能做什么

把项目翻译成用户能判断的具体能力,而不是 Doramagic 的使用流程。
1

宿主配置

先在非主力配置中检查 MCP server 命令和宿主配置路径。

host-config
2

权限边界

授予权限前明确文件、网络、工具调用和凭据访问范围。

permissions
3

验收检查

定义一个可回滚的最小工具调用,再进入日常工作流。

acceptance

来源:https://github.com/ahwurm/localharness、https://github.com/ahwurm/localharness#readme、项目说明书、踩坑日志。这里只回答“它能帮我做什么”。

03

项目温度与外部声音

站点快照,非实时质量证明;用于开工前背景判断。
星标18
分叉1
贡献者2
许可证未知
状态可发布

04

怎么开始使用

先试、再读项目说明书、再带给 AI,最后按官方quick start验证。
1

先试 Prompt

不安装项目,先体验能力节奏。

预览
2

读项目说明书

理解输入、输出、失败模式和边界。

说明书
3

带给 AI

把上下文交给你的宿主 AI 继续工作。

上下文
4

沙箱验证

进入主力环境前先完成安装入口与风险边界验证。

验证
Python / pip · 官方安装入口pip install localharness

来源:https://github.com/ahwurm/localharness#readme。验证:已通过。

05

项目说明书

每个项目结构不同,Doramagic 保留原项目解释结构,并补充边界与踩坑日志。

草稿 · 项目说明书

localharness 说明书

一个开源、与模型无关的本地 LLM 代理执行框架。使用 YAML 定义代理(工具、记忆、默认拒绝的权限),并通过任意兼容 OpenAI 的端点运行,如 vLLM、Ollama、LM Studio 或 llama.cpp。

打开完整说明书
  1. https://github.com/ahwurm/localharness 项目说明书
  2. 目录
  3. 项目概览与快速上手
  4. 相关页面
  5. 项目定位与目标
  6. 整体架构
  7. 安装与首次启动

06

带给 AI 的上下文包

决定继续后,把项目上下文带给你的宿主 AI。

标准项目包 + 用户可带走资产

这不是营销摘要。它是用户决定继续后,可交给 Claude Code、Codex、Gemini、Cursor 等宿主 AI 的开工前上下文。

07

继续前检查

在复制命令、导入 AI、安装插件前,看清还不能相信什么。
检查 1

不要把试用当真实运行

试用 Prompt 只展示流程,不证明项目已安装或运行。

检查 2

确认宿主兼容

继续前需要复核。

检查 3

先隔离验证

继续完成沙箱验证和证据复核

08

踩坑日志与复核重点

Doramagic 记录的高风险项优先显示,避免用户把候选能力当成已验证能力。
medium · 安装坑

失败模式:installation: Version banner reads stale install metadata on editable installs — shows old version after ev...

需要继续复核。

Developers may fail before the first successful local run: Version banner reads stale install metadata on editable installs — shows old version after every source update

medium · 安装坑

来源证据:Discovery candidate tags never progress past 'proposed' — naming/promotion unobserved for 6+ days

GitHub 社区证据显示该项目存在一个安装相关的待验证问题:Discovery candidate tags never progress past 'proposed' — naming/promotion unobserved for 6+ days

可能增加新用户试用和生产接入成本。

medium · 安装坑

来源证据:Discovery candidates can enter permanent limbo: evidence re-accrual on unchanged clusters defeats staleness pruning

GitHub 社区证据显示该项目存在一个安装相关的待验证问题:Discovery candidates can enter permanent limbo: evidence re-accrual on unchanged clusters defeats staleness pruning

可能增加新用户试用和生产接入成本。

medium · 安装坑

来源证据:Exiting the REPL immediately after an answer skips that turn's end-of-turn bookkeeping

GitHub 社区证据显示该项目存在一个安装相关的待验证问题:Exiting the REPL immediately after an answer skips that turn's end-of-turn bookkeeping

可能增加新用户试用和生产接入成本。

medium · 安装坑

来源证据:Version banner reads stale install metadata on editable installs — shows old version after every source update

GitHub 社区证据显示该项目存在一个安装相关的待验证问题:Version banner reads stale install metadata on editable installs — shows old version after every source update

可能增加新用户试用和生产接入成本。

medium · 安装坑

来源证据:Zombie docker-run client defeats the managed server's dead-process fail-fast

GitHub 社区证据显示该项目存在一个安装相关的待验证问题:Zombie docker-run client defeats the managed server's dead-process fail-fast

可能阻塞安装或首次运行。

medium · 配置坑

可能修改宿主 AI 配置

项目面向 Claude/Cursor/Codex/Gemini/OpenCode 等宿主,或安装命令涉及用户配置目录。

安装可能改变本机 AI 工具行为,用户需要知道写入位置和回滚方法。

medium · 配置坑

失败模式:configuration: Zombie docker-run client defeats the managed server's dead-process fail-fast

需要继续复核。

Developers may misconfigure credentials、environment、or host setup: Zombie docker-run client defeats the managed server's dead-process fail-fast

medium · 能力坑

能力判断依赖假设

README / 文档足够支持第一次验证,但仍需继续核对。

假设不成立时,用户拿不到承诺的能力。

medium · 运行坑

失败模式:runtime: Mid-turn tier-2 input classification is starved by the single-flight inference gate、and its...

需要继续复核。

Developers may hit a documented source-backed failure mode: Mid-turn tier-2 input classification is starved by the single-flight inference gate、and its failure path is silent

medium · 运行坑

来源证据:Agent loop accepts a tool-less reply that announces further work as the turn's final answer

GitHub 社区证据显示该项目存在一个运行相关的待验证问题:Agent loop accepts a tool-less reply that announces further work as the turn's final answer

可能增加新用户试用和生产接入成本。

medium · 运行坑

来源证据:Contradictory sem/ atoms coexist as active — mined facts never supersede on contradiction

GitHub 社区证据显示该项目存在一个运行相关的待验证问题:Contradictory sem/ atoms coexist as active — mined facts never supersede on contradiction

可能增加新用户试用和生产接入成本。

下一步:先在非主力宿主配置中验证 MCP server 命令、权限范围和回滚方式。。