StarHub Kit

MCP开发工具

提供方 未标注

开发工具 stdio · 本地进程 未标注 社区 / 第三方 Claude DesktopClaudeCursorVS Code

零依赖声明式编译器和原生 stdio MCP 服务器,用于 AI 编码代理沙箱防火墙(nftables、macOS pf、Tailscale ACL)以及 Sing-box/Mihomo QUIC 网状路由。 浏览适用于 Claude、Cursor、VS Code 等 AI 智能体的 StarHub Kit...

一句话选型结论

按资料字段整理

StarHub Kit 属于开发工具类 MCP 服务器,stdio · 本地进程,鉴权方式未标注,可直接接入 Claude Desktop、Claude、Cursor 等,没有现成安装命令,需按官方文档接入。接入前先确认权限范围;涉及写入、删除或付款的操作,建议先在测试环境验证。

分类开发工具 传输方式stdio · 本地进程 鉴权未标注 部署方式本地部署
GitHub 星标 未标注 仓库热度,无公开仓库时显示未标注
工具数 未标注 暴露给模型的工具数量
资源 / 提示词 0 / 0 资源与提示词模板数量
维护方 社区 / 第三方 核验等级 仅资料核对

工具与能力

开发工具
数量来自来源目录的标注,具体工具清单以官方文档为准
工具数量未标注暴露给模型可调用的工具个数
资源数量0可读取的资源条目
提示词数量0内置提示词模板数量

能力标签

支持客户端

适用场景

开发

安装与配置

stdio · 本地进程 未标注
客户端在本机拉起子进程,数据不出本机
  1. 1
    准备运行环境

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

  2. 2
    安装服务

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

  3. 3
    写入客户端配置

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

  4. 4
    验证是否可用

    连接成功后随便调一个只读工具,确认能返回结果,再接入正式流程。

典型使用场景

3 类
按分类与标签整理的常见用法,具体以官方文档为准
代码与仓库操作

在对话里直接查代码、提 issue、走 PR,省掉来回切工具。

本地命令与脚本

把构建、测试、格式化这类重复命令交给模型执行。

接口联调与测试

让模型调你的接口、跑一遍用例,快速定位问题。

选择建议

选之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 已适配 Claude Desktop、Claude、Cursor,换客户端不用重新研究配置。

先想清楚的地方

  • stdio 方式要求本地装好运行时(如 Node.js),换机器要重新装一遍。
  • 没有现成安装命令,需要按官方文档自己填启动命令和参数。
  • 资料没标注工具数量,实际能力要装好后确认。
  • 版本更新与行为细节以官方仓库为准。

更适合

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

不太适合

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

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
MCP 服务器工具数传输方式部署方式安装命令最后核验
StarHub Kit当前 未标注 stdio · 本地进程 本地部署 无 2026-11-20
Git 838e2ec1 12 stdio · 本地进程 本地部署 有 2026-05-17
Markitdown MCP 2c653a5f 1 stdio · 本地进程 本地部署 有 2026-05-17
JavaGuide 未标注 stdio · 本地进程 本地部署 有 2026-04-11
awesome-claude-skills 未标注 stdio · 本地进程 本地部署 有 2026-04-26
Context7 831acf40 未标注 stdio · 本地进程 本地部署 有 2026-05-17

服务器档案

开发工具
字段来自项目仓库与公开索引,中文说明由本站标注
提供方未标注上游标注的维护方 未标注
分类开发工具本站按上游分类展示
连接方式stdio · 本地进程客户端在本机拉起子进程,数据不出本机
鉴权方式未标注远程服务建议用最小权限凭据
维护方社区 / 第三方核验等级 仅资料核对
包名 / 运行时未标注 · 未标注本地安装时用到的包标识与运行时
部署类型本地部署上游给出的部署形态
最近核验2026-11-20上游最后核验时间

详细介绍

9.8 KB
来自项目仓库与上游目录的原文,未做删改

StarHub Kit (starhub-kit)

> Language: English | 简体中文 (Simplified Chinese)
> Version: v1.3.0 · Runtime: Python 3.9+ (Zero Third-Party Dependencies) · MCP: starhub mcp (stdio) · Nix: flake.nix · Assurance: OpenSSF Silver (#16658) + OSPS Baseline L3

StarHub Kit is a zero-dependency AI Agent sandbox firewall & cross-platform network policy compiler for Linux nftables/iptables, macOS Packet Filter (pf), official Tailscale ACL JSON, Sing-box / Mihomo split-DNS & surgical QUIC (UDP/443) governance, and multi-site 100.x + 4via6 mesh routing — with a built-in Model Context Protocol (MCP) server.

Prevent autonomous coding agents (Claude Code, Codex, OpenHands, Cursor, Docker MCP containers) from scanning your RFC 1918 LAN or reaching :22 SSH / :5432 Postgres / :6379 Redis, eliminate hotel Wi-Fi subnet collisions, and cure mobile QUIC blackholes from one declarative JSON topology (STARHUB_GROUND_TRUTH.json).

Try in 10 Seconds (Zero Root, Zero Disk Writes)```bash

Option A — One-command install via official Homebrew tap (macOS & Linuxbrew)

brew install Ziqi/tap/starhub-kit
starhub render --profile ai-sandbox --target tailscale-acl --dry-run
starhub render --profile ai-sandbox --target macos-pf --dry-run
starhub render --profile ai-sandbox --target nftables --dry-run

Option B — Preview Sing-box or Mihomo split-DNS & surgical QUIC rulesets directly to stdout

git clone https://github.com/Ziqi/starhub-kit.git && cd starhub-kit
./bin/starhub render --target singbox --dry-run
./bin/starhub render --profile minimal --only mihomo --dry-run

Option C — Mount directly in Claude Desktop / Cursor / Windsurf as a zero-dependency MCP Server

Add to mcpServers: { "starhub": { "command": "starhub", "args": ["mcp"] } }

nix run github:Ziqi/starhub-kit -- audit --profile ai-sandbox


---

## Why StarHub Kit? (4 Real-World Infrastructure Pain Points Solved)

| **1. Hotel / Coffee-Shop Wi-Fi Subnet Collisions**
Advertising raw `/24` or `/32` RFC 1918 LAN routes over Tailscale breaks local gateway routing whenever remote Wi-Fi shares the same LAN prefix. | **Zero-Collision Native `100.x` + `4via6`**
| **2. Cross-Border Proxy Stalls & QUIC Blackholes**
Blind DNS `fallback:` racing causes hundreds of half-open TLS `context canceled` drops per day; Apple Media DRM and mobile Gmail inline attachments hang 50s on dead XUDP `UDP/443`, while global `UDP/443 REJECT` breaks YouTube Cronet subtitles. | **Deterministic Split-DNS + Top-Ordered (`Section 9a`) QUIC Governance**
Zero `fallback:` racing (`nameserver-policy` only) + top-ordered surgical `UDP/443 REJECT` for Apple Media and mobile Gmail/attachment endpoints (placed above broad Google proxy rules), with automated YouTube Cronet zero-collateral assertions. |
| **3. Cloud AI Agent Split-Brain & Lateral Movement Risk**
Multiple cloud AI sandboxes sharing a Tailscale state file collide on `NodeKey`/`HomeDERP`, or gain dangerous `:22` SSH / Docker access to internal hosts. | **Restricted Cloud Sandbox Guest Pass (`B2` Pattern)**
Per-instance `/tmp/tailscale-` isolation (`agent-tailscale-bootstrap.sh`) + dual-stack `STARHUB-BOT-NOSSH` / `NOSSH6` chains that allow Web APIs (`:3001`/`:8080`) while hard-dropping TCP `:22` SSH. |
| **4. Documentation Sprawl, Drift & Accidental PII / Inventory Leaks**
Dozens of stale `.md` files contradict live firewall/proxy configs, and AI coding agents hallucinate retired IPs or leak personal hardware inventory when open-sourcing. | **Unified Governance (`EGM 3.0`: `1 Core + 6 Books + 2 Ledgers`)**
Unified `AGENTS.md` (`CLAUDE.md` / `GROK.md` symlinks), strict Markdown whitelist, compiler parity gate (`render --check`), and a mathematical Zero-PII & Zero-Inventory Release Sanitizer (`--verify-public-export`). |

---

## Architecture Overview```mermaid
flowchart LR
    subgraph Controllers["Controllers & Cloud Sandboxes"]
        LAP["Primary Controller (laptop)<br/>127.0.0.1:17890 Adaptive Tunnel"]
        WS["Compute Workstation (workstation)<br/>Dedicated VPS2 + Host Firewall Isolation"]
        BOT["Cloud AI Agent Pool (B2)<br/>Isolated /tmp/tailscale-id"]
    end

    subgraph Core["Site-A Core Cluster (Proxmox VE)"]
        GW["gw (LXC 100 · .11 + .12 VIP)<br/>Mihomo gvisor TUN + Split-DNS<br/>Cam-Gate + IPv6 Exit Guard"]
        PAN["panel (LXC 102 · .15:3001)<br/>16 Probes + Zero-Drift Doctor<br/>STARHUB-DASH-ACL + BOT-NOSSH"]
        HOM["home (LXC 103 · .20:8080)<br/>Smart Home & AI Hub<br/>STARHUB-HOME-ACL + BOT-NOSSH"]
    end

    subgraph Relay["Out-of-Band Bastion & Egress"]
        DERP["Custom DERP + Lifeline Bastion<br/>:8443 + STUN :3478 + 127.0.0.1:2201..2204"]
        VPS["VLESS-Reality Egress Fleet<br/>VPS1 / VPS2 / VPS3 (bbr + fq)"]
    end

    LAP & WS -->|"Native 100.x / Dual-Stack Allowlist"| GW & PAN & HOM
    BOT -->|"HTTP :3001/:8080 ONLY (:22 Hard DROP)"| PAN & HOM
    GW & WS -->|"Anti-Loop Direct Exemption"| VPS
    GW & WS -.->|"Reverse SSH Lifeline (:2203/:2204)"| DERP

Choose Your Adoption Tier (30 Seconds to Full Blueprint)

You do not need Proxmox VE, dedicated observability hosts, or three overseas relays to benefit from StarHub Kit. Choose the tier or modular slice (--only mihomo · firewall · ai-sandbox · lifeline) that fits your setup (see docs/ARCHITECTURE-AND-PLAYBOOK-EN.md):

Tier · Hardware Needed · Setup Time · How to Use
Tier AI · Autonomous Agent Firewall (ai-sandbox) · Any Mac / Linux workstation or Tailscale tailnet running Claude Code, Codex, OpenHands, or Docker AI containers · 15 seconds · starhub render --profile ai-sandbox --target nftables\ · macos-pf\ · tailscale-acl --dry-run (profiles/topology.ai-sandbox.json) or run starhub mcp
Tier 0 · Drop-In Ruleset (singbox / mihomo) · Any existing Sing-box / OpenWrt / Clash Verge / Mihomo Party / Stash + Tailscale setup · 30 seconds · Run starhub render --target singbox --dry-run or copy scripts/profiles/standalone-mihomo-tailscale-guardrails.yaml
Tier 1 · StarHub Lite (minimal) · 1 Gateway + 1 Laptop/PC + 1 Egress (no PVE, no custom DERP, no extra VMs) · 3 minutes · Edit 3 items in profiles/topology.minimal.json and run ./bin/starhub render --profile minimal --out-dir ./dist-minimal
Tier 2 · Full Blueprint (full) · Multi-site mesh + isolated compute workstation + cloud AI sandboxes + IoT camera kill-switch · 15 minutes · ./bin/starhub init && ./bin/starhub render --out-dir ./dist (topology.example.json)


3-Minute Full Workflow```bash

1. Initialize STARHUB_GROUND_TRUTH.json (full or --profile minimal)

./bin/starhub init

2. Preview individual subsystems to stdout (zero disk writes) or export a deployment bundle

./bin/starhub render --only firewall --dry-run
./bin/starhub render --out-dir ./dist

3. Run the 7-dimension static harness, bit-for-bit reproducible archive gate & 2,000-iteration fuzz suite

./bin/starhub render --check
./bin/starhub archive --verify
./bin/starhub doctor --local-docs-only
python3 ./tests/fuzz_starhub_ctl.py --iterations 2000

4. Install the Git pre-commit guardrail

cp scripts/pre-commit .git/hooks/pre-commit && chmod +x .git/hooks/pre-commit


---

## Repository Structure (`1 Core + 6 Books + 2 Ledgers`)

| Path | Description |
|---|---|
| STARHUB_GROUND_TRUTH.json / topology.example.json / profiles/topology.minimal.json | **Single Source of Truth (SSOT)**: role-based declarative node inventory, dual-stack allowlists, egress definitions, IoT guardrails, and Markdown whitelist |
| `./bin/starhub`, `scripts/starhub-ctl.py` & flake.nix | **Declarative Compiler & Reproducible Builder**: modular `--only` / `--dry-run` compiler, bit-for-bit PAX tarball builder (`archive --verify`), and Nix Flake entrypoint |
| `scripts/starhub-doctor.py` | **Verification Harness**: 8-dimension drift detector + `--verify-public-export` Zero-PII & Zero-Inventory Release Sanitizer |
| AGENTS.md (`CLAUDE.md` / `GROK.md` symlinks) | **Unified AI & Operator Entrypoint**: Ten Iron Guardrails and zero-hallucination workflow |
| docs/01-架构与IP全景.md – docs/06-AI接力开发与Prompt手册.md | **The 6 Golden Books**: Architecture, Daily Ops & Security Matrix, Troubleshooting & 1-Hour Bare-Metal DR, Audit Index, Smart Home Hub, and Multi-Agent Playbook |
| docs/ROADMAP-v2.md | **StarHub v2.0 Plugin Specification**: declarative `:3001` probe schema and `:8080` Home OS `drivers/*` plugin contract |
| docs/ops/STARHUB-LEDGER.md & docs/incidents/README.md | **Dual Ledgers**: append-only `[UPD]/[BUGFIX]/[WORKSTATION]` master ledger and `5-Why` postmortem template |

---

## Dual-Repo Private/Public Workflow (Zero-PII & Zero-Inventory Sanitizer)

If you run a private production repository alongside a public fork of `starhub-kit`, verify mathematically before every public release that **zero** private IPs, Tailscale addresses, MACs, domains, handles, or private device/vendor identifiers exist anywhere in the public working tree or `.git` commit history:```bash
python3 scripts/starhub-doctor.py \
  --verify-public-export /path/to/starhub-kit \
  --private-gt /path/to/private/STARHUB_GROUND_TRUTH.json

Security, OSPS Baseline L3 & Supply-Chain Assurance

Every release and main build publishes a Sigstore + GitHub OIDC SLSA Build Level 3 provenance certificate, an ISO/IEC 5962 (SPDX-2.3) SBOM, a bit-for-bit reproducible source archive (mtime=0, uid/gid=0), and an offline Ed25519 signature, audited under OpenSSF Best Practices Silver (#16658) and aligned with OpenSSF OSPS Baseline (Level 3):```bash

1. Verify GitHub OIDC / Sigstore SLSA Build Level 3 provenance certificate

gh attestation verify starhub-kit-v1.3.0.tar.gz --repo Ziqi/starhub-kit

2. Verify bit-for-bit reproducible tarball against source tag

./bin/starhub archive --verify-file ./starhub-kit-v1.3.0.tar.gz --prefix starhub-kit-v1.3.0
```

常见问题

8 问
答案由本站依据条目字段整理,不引用上游原文
StarHub Kit 怎么安装?

资料没有给出安装命令,请到官方仓库或文档按说明接入;这类条目多数是生态应用,或尚未发布可安装包。

StarHub Kit 怎么在 Claude Desktop、Claude、Cursor 里配置?

它的传输方式是stdio · 本地进程,在客户端的 MCP 配置里填好启动命令和参数,保存后完全退出客户端再打开,配置才会生效。

StarHub Kit 收费吗?

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

StarHub Kit 需要 API Key 吗?

资料没有标注鉴权方式,是否需要密钥取决于服务本身,接入前按官方文档确认。

StarHub Kit 支持哪些客户端?

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

StarHub Kit 能提供哪些能力?

资料显示能力标签包括 开发。具体工具清单以官方文档为准。

StarHub Kit 需要什么运行环境?

属于本地进程,需要在本机装好运行环境。

StarHub Kit 是本地还是远程?

它是本地进程(stdio),由客户端在本机拉起。传输方式为stdio · 本地进程。

热门专题

按标签挑服务器
全部专题 →

服务器信息以作者仓库与官方文档为准;分类、传输方式与鉴权方式的中文说明为中文整理,最近核验 2026-11-20。