Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
作者提供的说明(英文原文)
Manage your local model machine over MCP: state, model pull/remove, service switch, LoRA training
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
MM_VM_HOST, MM_VM_USER, MM_CONTAINER_ROOT, MM_MAX_TIER, MM_ENABLED_OPERATIONS, MM_VM2_HOST你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"modelmanager": {
"command": "uvx",
"args": [
"mcp-modelmanager"
],
"env": {
"MM_VM_HOST": "your-value",
"MM_VM_USER": "your-value",
"MM_CONTAINER_ROOT": "your-value",
"MM_MAX_TIER": "your-value",
"MM_ENABLED_OPERATIONS": "your-value",
"MM_VM2_HOST": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add modelmanager --env MM_VM_HOST=your-value --env MM_VM_USER=your-value --env MM_CONTAINER_ROOT=your-value --env MM_MAX_TIER=your-value --env MM_ENABLED_OPERATIONS=your-value --env MM_VM2_HOST=your-value -- uvx mcp-modelmanager运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"modelmanager": {
"command": "uvx",
"args": [
"mcp-modelmanager"
],
"env": {
"MM_VM_HOST": "your-value",
"MM_VM_USER": "your-value",
"MM_CONTAINER_ROOT": "your-value",
"MM_MAX_TIER": "your-value",
"MM_ENABLED_OPERATIONS": "your-value",
"MM_VM2_HOST": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"modelmanager": {
"type": "stdio",
"command": "uvx",
"args": [
"mcp-modelmanager"
],
"env": {
"MM_VM_HOST": "your-value",
"MM_VM_USER": "your-value",
"MM_CONTAINER_ROOT": "your-value",
"MM_MAX_TIER": "your-value",
"MM_ENABLED_OPERATIONS": "your-value",
"MM_VM2_HOST": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
MM_MAX_TIER envMM_ENABLED_OPERATIONS envMM_VM2_HOST env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 setheerwagen 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:MM_VM_HOST, MM_VM_USER, MM_CONTAINER_ROOT
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(1.0.6)于15天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
同一分类中有:Spec Driven Development, Remote Desktop Commander, SuperCollider
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
Make sound with SuperCollider: synths, drums, chords, melodies and soundscapes over OSC.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Manage your own local model machine through a language-model tool (Claude, ChatGPT, etc.). The models and their data stay on your hardware; the server is designed so the machine need not be opened to the internet by this software.
This MCP server gives an AI session controlled access to your own Ollama/model machine: read state, pull and remove models, switch the inference service to a different model, build custom Ollama variants and run LoRA training. The models run on your hardware. The server process itself talks only to your own computer or local network, never to a public address, on its own. What it does knowingly reach out to a public address for is a model: calling fetch_model makes the model machine connect to Hugging Face at runtime to download it. That is a deliberate, tool-triggered outbound connection, not something the server does behind your back or only once at setup. switch_service never reaches Hugging Face itself; if the model is not yet on the machine, it refuses and tells you to run fetch_model first.
What that does and does not promise. The inference itself stays local: your prompts to the *managed* models and their answers do not go to any cloud model provider. But the language model you *drive this server with* (Claude, ChatGPT, etc.) is itself a hosted service in the usual case. Your instructions to it and the tool results it sees pass through that provider like any other MCP call. "Local" here means the managed machine and its data; it is not a claim that nothing you type ever reaches a third party. Choose the driving model accordingly, or drive it with a local one.
Operating systems: The plain query path (reading status and models over the tunnel) runs cross-platform. Management and setup (service and training control) require a POSIX system with systemd (systemd user unit, ssh -F /dev/null); Windows is not supported for management.
The server ships with no address of its own and no default values for a machine. You enter where your machine is; without those details the server deliberately does not start (see Required fields and SETUP.md).
It can: query state (GPU memory, disk space, running service, containers), list/pull/remove models, switch the vLLM inference service to a different model (with an up-front estimate of the memory need), build custom Ollama variants (fixed system prompt, parameters, later an adapter) and start/track/cancel LoRA training.
It cannot and deliberately will not: run an arbitrary command on the machine. There is no tool for free remote control. Every operation is a fixed template; every parameter first passes an allowlist (see Security model).
It is not a query bridge. For merely *asking* a model you use a separate, read-only MCP server (e.g. a simple HTTP bridge to Ollama). This server *manages* the machine. Two separate servers ensure that a query call never accidentally holds management rights.
The model machine can be attached in different ways. All three cases are supported; you only enter a different address.
| Case | Where Ollama/vLLM runs | What you enter as MM_VM_HOST |
|---|---|---|
| a) same machine | on the same computer as this server | 127.0.0.1 |
| b) on the local network | on another computer in the same LAN | its LAN address, e.g. 192.168.1.10 |
| c) over tunnel/VPN | on a remote computer, reachable via VPN/tunnel | the address at your own/VPN end, e.g. 127.0.0.1 for a local SSH tunnel, or the VPN address |
Safeguard: the server process's own MCP/SSH/HTTP traffic goes only to the own computer or the local network. Addresses outside (public IPs, foreign hostnames) are rejected as MM_VM_HOST, so the server does not reach out to a public address on its own to talk to your model machine. For case c) this means: the tunnel/VPN ends locally or in a private address range, and you enter that local/private address, not the public address of the far side. This safeguard does not cover model downloads: fetch_model makes the model machine itself reach out to Hugging Face, a public address, whenever you ask it to fetch a model (see the caveat above); switch_service refuses a model that is not already on the machine instead of fetching it. fetch_model(source="ollama") sends the machine to a second, equally deliberate public address: it makes the machine's Ollama daemon pull the model via /api/pull, which reaches out to registry.ollama.ai for plain model names; a prefixed name such as hf.co/user/repo sends it to that other registry instead.
The plain query (state, version, loaded models) runs over HTTP to the service port. Management (pulling models, switching the service, training) runs over a secured SSH control channel. For management you therefore need SSH access to the machine, also in case a) (then SSH to 127.0.0.1).
Requirement: Python 3.11 or newer.
With uv (recommended):
uv venv --seed .venv
.venv/bin/pip install -r requirements.txt
--seed ensures pip is present in the venv.
With Python built-ins (fallback):
python3 -m venv .venv
.venv/bin/pip install -r requirements.txt
Should python3 -m venv produce a venv without pip on your system (missing ensurepip), use the uv path above.
There are only two direct dependencies, both pinned: the MCP SDK (mcp==1.30.0) and an HTTP client (httpx==0.28.1). These two pins live in requirements.txt and pyproject.toml; the full resolved dependency tree (including the transitive packages anyio, pydantic, starlette, uvicorn, jsonschema, pyjwt) is additionally pinned in uv.lock. CI checks with uv lock --check that the lock still matches pyproject.toml, then installs the exact locked tree for the tests, so a drifted lock fails CI. A separate, advisory pip-audit job checks the locked tree for known vulnerabilities on every push to main and pull request and again weekly; it does not block a pull request. The SSH access uses the system's ssh program.
The server reads its configuration exclusively from environment variables. These three you must set, otherwise it does not start:
| Field | Meaning |
|---|---|
MM_VM_HOST | Address of your model machine (127.0.0.1, LAN IP or tunnel/VPN address) |
MM_VM_USER | SSH user name on the machine (only for management over the control channel) |
MM_CONTAINER_ROOT | Root directory on your model machine under which all model, adapter and cache data live |
If one is missing, the start aborts with a clear message that says which field is missing. Example:
$ PYTHONPATH=src .venv/bin/python -m mcp_modelmanager.server
MM_CONTAINER_ROOT is not set. Enter the root directory on your model machine under which all model, adapter and cache data live. Without this value the server does not start. See SETUP.md.
All further fields have sensible defaults (Ollama and vLLM standard ports, key storage in your own ~/.ssh) and are only set when needed; see Environment variables.
The full step-by-step setup from the empty state to the running server (including the secured SSH channels) is in SETUP.md. Building the GPU model machine itself (an Ollama and/or vLLM install reachable under the MM_* variables below) is the machine-side task, and it ships with this repo: the operator-side scripts (setup/, vm_side/), the network fence templates (security/) and the machine-side guides (MACHINE.md, SECURITY.md, SETUP-MACHINE.md) sit next to the server here. Start from MACHINE.md for the machine side.
Register the server with your language-model tool. Replace the placeholders in angle brackets with your values. Two ways to point the command at the server, both supported:
From a checkout (no install step, PYTHONPATH points at src/):
{
"mcpServers": { "modelmanager": { "command": "/path/to/mcp-modelmanager/.venv/bin/python", "args": ["-m", "mcp_modelmanager.server"], "cwd": "/path/to/mcp-modelmanager", "env": { "PYTHONPATH": "src", "MM_ACCESS": "direct", "MM_VM_HOST": " ", "MM_VM_USER": " ", "MM_CONTAINER_ROOT": "/srv/models" } } } }
After `pip install .` (the console entry point, no cwd/PYTHONPATH needed):
{
"mcpServers": { "modelmanager": { "command": "/path/to/mcp-modelmanager/.venv/bin/mcp-modelmanager", "env": { "MM_ACCESS": "direct", "MM_VM_HOST": " ", "MM_VM_USER": " ", "MM_CONTAINER_ROOT": "/srv/models" } } } }
Both blocks follow the plain mcpServers JSON shape most MCP clients read (Claude Code, Claude Desktop and any other MCP client that reads an mcpServers JSON block); consult your client's docs for where this block goes.
MM_ACCESS is direct (the server talks to the service ports under the given address) or tunnel (it talks to 127.0.0.1 and builds an SSH tunnel on demand; only sensible after the isolation, see SETUP.md). The default is tunnel; the example above sets direct because that is what a case a)/b) setup without the level-2 tunnel needs, so set MM_ACCESS=direct explicitly until that tunnel is in place.
There is no tool that runs an arbitrary command. Every operation is a fixed template in operations.py. The caller can only fill named placeholders, and every value must first pass an allowlist (validation.py): permitted is what explicitly matches the agreed form. It is not filtered out, it is allowed in. On substitution it is additionally quoted with shlex.quote; that is the net below the net, not the safeguard.
Checked on both sides: here before sending and, independently again, by a counterpart running on the model machine, which is bound to the control-channel key. So even if that key is stolen, only the closed set of operations is reachable.
Also: only targets on the own computer or the local network, names are resolved and re-checked at each use (no address pinning like the query server; prefer setting MM_VM_HOST to an IP if you use a hostname). No credentials in the code, no .env. The two SSH keys live outside the repo in your ~/.ssh; the .gitignore additionally excludes key patterns.
How the secured two-channel architecture (data channel for the tunnel, control channel for management) is set up and verified is described step by step in SETUP.md.
Every tool has a fixed classification, kept in one place in the code (TOOL_TIER) so this table and the policy cannot drift apart:
| Tier | Meaning | Tools |
|---|---|---|
| READ | only observes, changes nothing | status, models_present, job_status, list_jobs, list_variants, show_variant, list_adapters, training_status, check_training_env, check_isolation |
| CONTROL | changes running state reversibly | fetch_model, create_variant, switch_service, stop_service, start_service, start_training |
| DESTRUCTIVE | removes or cancels | remove_model, remove_variant, cancel_training |
This classification is not an authorization system (see the note in SECURITY.md); it is a coarse operator switch so you can narrow which operations this server will actually run, without editing code. A disabled operation stays listed over MCP but is refused on call, before any machine acces
只显示了开头部分;其余内容请在仓库中阅读