Claude Code, Cursor ve Codex aracılığıyla kodlama ajanlarının yerel geliştirme sunucularını başlatmasına, durdurmasına ve günlüklerini (logs) okumasına olanak tanır.
Ayrıca bilinen adı marcellosso/localhost, localhost, @getlocalhost/cli
- Yıldızlar
- 4
- Araçlar
- —
- İndirmeler, 30 gün
- 629
- En son sürüm
- 0.2.0
- Son commit
- 14 Kas 2026
- Lisans
- MIT
localhost app MCP nedir?
localhost app bir MCP sunucusudur. Claude Code, Cursor ve Codex aracılığıyla kodlama ajanlarının yerel geliştirme sunucularını başlatmasına, durdurmasına ve günlüklerini (logs) okumasına olanak tanır.
Özet, projenin README dosyasından oluşturuldu
localhost app MCP sunucusu hakkında
Bu araç, Claude Code, Cursor, Claude Desktop veya Codex kullanan geliştiricilerin yerel geliştirme sunucularını kodlama ajanları üzerinden yönetmesini sağlar. Bu ajanları localhost uygulamasına bağlayarak, servisleri başlatıp durdurmalarına veya günlükleri doğrudan terminal ortamınızdan okumalarına imkan tanırsınız. Kurulum süreci, claude_desktop_config.json veya ~/.cursor/mcp.json gibi yapılandırma dosyalarını otomatik olarak güncellemek için bir CLI kullanır; böylece mevcut ayarlarınızın ve yorumlarınızın bozulmamasını sağlar.
Bu sunucuyu kullanmak için makinenizde localhost uygulamasının kurulu olması gerekir. CLI, ajanların belirli görevleri anlamasını sağlayan localhost-mcp skill kurulumunu gerçekleştirir. Ajanın proje ve servis eklemesini, düzenlemesini veya kaldırmasını kısıtlamak isterseniz, sunucuyu --read-only bayrağını kullanarak salt okunur modda çalıştırabilirsiniz. Bu kurulum stdio üzerinden yerel olarak çalışarak, yapay zeka kodlama asistanınız ile çalışan yerel süreçleriniz arasında doğrudan bir köprü kurar.
Neler yapabilirsiniz
- 1Birden fazla yapay zeka ajanını aynı anda yapılandırınBilgisayarınızda bulunan tüm uyumlu ajanlara localhost sunucusunu eklemek için CLI kullanın.
Projenin README dosyasından alınmıştır. Her kullanım durumu, oradaki bir alıntı ile kontrol edilir.
localhost app MCP nasıl yüklenir
Biçimler 10 Kas 2026 tarihinde doğrulandılocalhost app MCP'yi Claude Code içine yükleyin
$ claude mcp add localhost -- npx -y @getlocalhost/clilocalhost app MCP'yi Cursor içine yükleyin
~/.cursor/mcp.json
{
"mcpServers": {
"localhost": {
"command": "npx",
"args": [
"-y",
"@getlocalhost/cli"
]
}
}
}localhost app MCP'yi VS Code içine yükleyin
.vscode/mcp.json
{
"servers": {
"localhost": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@getlocalhost/cli"
]
}
}
}localhost app MCP'yi Claude Desktop içine yükleyin
claude_desktop_config.json
{
"mcpServers": {
"localhost": {
"command": "npx",
"args": [
"-y",
"@getlocalhost/cli"
]
}
}
}localhost app MCP'yi Codex içine yükleyin
~/.codex/config.toml
[mcp_servers.localhost] command = "npx" args = ["-y", "@getlocalhost/cli"]
localhost app MCP'yi Gemini CLI içine yükleyin
~/.gemini/settings.json
{
"mcpServers": {
"localhost": {
"command": "npx",
"args": [
"-y",
"@getlocalhost/cli"
]
}
}
}Otomatik kontroller
Çalıştırıldı 14 Kas 2026Tam rapor →Otomatik kontrollerimizden geçti. Bu bir güvenlik denetimi değildir: kodu okuyun ve sunucuya ihtiyaç duyduğu en dar erişimi verin. Kontroller nasıl çalışır
- Kaynak deposu bağlantılı ve erişilebilirmarcellosso/localhost is public and reachablegithub.com/marcellosso/localhost ↗Geçti
- Paket bu depoyu kaynak olarak gösteriyor@getlocalhost/cli names marcellosso/localhost as sourcenpmjs.com/package/@getlocalhost/cli ↗Geçti
- Derleme kaynağı (Sigstore onayı)Sigstore attestation for @getlocalhost/clinpmjs.com/package/@getlocalhost/cli/v/0.2.0#provenance ↗Geçti
- Açık kaynak lisansı (OSI)MITspdx.org/licenses/MIT.html ↗Geçti
- Son bir yıl içinde commit veya sürüm mevcutLast commit or release 2026-11-12github.com/marcellosso/localhost ↗Geçti
- OpenSSF ScorecardKontrol edilmedi
- Paket adı popüler bir pakete yakın değilNo popular package one edit away from @getlocalhost/cliGeçti
- Pakette ve bağımlılıklarında kritik uyarı yok1 resolved dependencies checked; no critical advisoryosv.dev ↗Geçti
- Modele yönelik gizli talimat yok0 tool descriptions and the README read; no override phrases, credential paths or hidden charactersGeçti
- Yıkıcı araçlar etiketlenmişKontrol edilmedi
- Uzak endpoint MCP el sıkışmasına yanıt veriyorKontrol edilmedi
@getlocalhost/cli
Connects your coding agents to localhost mcp, the MCP server of localhost app, from a terminal:
npx @getlocalhost/cli mcp install
It adds a server named localhost to Claude Code, Claude Desktop, Cursor and Codex, whichever are on this computer, and installs the localhost-mcp skill where each agent reads skills. The server runs the localhost command that comes with the app, so the app must be installed: without it, this prints how to install it for your OS and changes nothing.
It writes what Settings → Agents in the app writes, and the app shows these agents as connected:
| Agent | MCP server added to | Skill installed in |
|---|---|---|
| Claude Code | ~/.claude.json, through claude mcp add-json --scope user when claude is installed |
~/.claude/skills/localhost-mcp/ |
| Claude Desktop (macOS, Windows) | claude_desktop_config.json in Claude's folder (~/Library/Application Support/Claude, %APPDATA%\Claude) |
none: it has no skills folder |
| Cursor | ~/.cursor/mcp.json |
~/.cursor/skills/localhost-mcp/, unless Claude Code's or Codex's folder has it: Cursor reads those too |
| Codex | ~/.codex/config.toml |
~/.agents/skills/localhost-mcp/ |
- Only its own entries. Every other server and setting in the file stays as it was, comments and order included. A file it can't read is reported and left alone.
- A backup first, in the
agent-backupsfolder of localhost's data folder, before it first changes a file. - Running it again changes nothing.
Commands
npx @getlocalhost/cli mcp install # add the server and the skill
npx @getlocalhost/cli mcp uninstall # remove them, and nothing else
npx @getlocalhost/cli mcp status # where each agent stands
npx @getlocalhost/cli mcp serve # run the server, for an MCP client's configuration
| Option | |
|---|---|
--client <agent> |
claude-code, claude-desktop, cursor or codex; claude for both Claude apps. Repeat it, or separate with commas, for more than one. Without it: every agent found on this computer. |
--read-only |
For mcp install and mcp serve. The server runs localhost mcp --read-only, without the tools that add, edit or remove Projects and Services. Needs a localhost app that has it (0.4.0 or later). Installing again without it keeps a read-only server read-only. |
--dry-run |
Prints what would change, as a diff, and changes nothing. |
Then start a new Claude Code session, quit and reopen Claude Desktop, check Cursor Settings → MCP, or restart Codex.
Any MCP client
mcp serve is the server itself, for any client that starts MCP servers over stdio:
{
"mcpServers": {
"localhost": { "command": "npx", "args": ["-y", "@getlocalhost/cli", "mcp", "serve"] }
}
}
It finds the app's localhost command as mcp install does and runs localhost mcp with the client's stdin and stdout, passing on Ctrl-C and other signals and exiting as the server does. mcp serve --read-only runs localhost mcp --read-only. It writes nothing to stdout itself, since that is the client's channel: without the app, or with an app whose command doesn't run, it says why on stderr and exits with 1. claude mcp add --scope user localhost -- npx -y @getlocalhost/cli mcp serve and codex mcp add localhost -- npx -y @getlocalhost/cli mcp serve add it from a terminal.
More in the MCP docs. Node 18 or later; no dependencies.
Development
cd packages/cli
npm test
node bin/getlocalhost.js mcp status
The JSON and TOML editors are the same as the core's (core/localhost-core/src/agents/), and their tests too: change both together. npm pack copies the skill from skills/localhost-mcp into the package.
localhost app MCP soruları
localhost app MCP'yi Claude Code'a nasıl eklerim?
Terminalinizde claude mcp add localhost -- npx -y @getlocalhost/cli komutunu çalıştırın. Her projede kullanılabilir olması için --scope user ekleyin.
localhost app MCP'yi Cursor'a nasıl eklerim?
~/.cursor/mcp.json dosyasını açın ve yukarıdaki yükleme bölümünde gösterilen Cursor yapılandırmasını kullanarak sunucuyu mcpServers altına ekleyin.
Hangi kodlama ajanları bu sunucuyu kullanabilir?
Sunucu Claude Code, Claude Desktop, Cursor ve Codex'e eklenebilir.
Bunun çalışması için başka bir şey kurmam gerekiyor mu?
Evet, sunucunun çalışabilmesi için sisteminizde localhost uygulamasının kurulu olması gerekir.
Kurulum işlemi mevcut ajan yapılandırmalarımı değiştirir mi?
Sadece kendi girişlerini değiştirir ve herhangi bir değişiklik yapmadan önce agent-backups klasöründe bir yedek oluşturur.