Permet aux agents de codage de démarrer, d'arrêter et de lire les logs de serveurs de développement locaux via Claude Code, Cursor et Codex.
Aussi connu sous marcellosso/localhost, localhost, @getlocalhost/cli
- Étoiles
- 4
- Outils
- —
- Téléchargements, 30 jours
- 629
- Dernière version
- 0.2.0
- Dernier commit
- 14 nov. 2026
- Licence
- MIT
Qu'est-ce que localhost app MCP ?
localhost app est un serveur MCP. Permet aux agents de codage de démarrer, d'arrêter et de lire les logs de serveurs de développement locaux via Claude Code, Cursor et Codex.
Résumé généré à partir du README du projet
À propos du MCP server localhost app
La gestion des serveurs de développement locaux via des agents de codage est ce que cet outil permet aux développeurs utilisant Claude Code, Cursor, Claude Desktop ou Codex. En connectant ces agents à l'application localhost, vous leur permettez de démarrer et d'arrêter des services ou de lire des logs directement depuis votre environnement terminal. Le processus de configuration utilise une interface en ligne de commande pour mettre à jour automatiquement les fichiers de configuration tels que claude_desktop_config.json ou ~/.cursor/mcp.json, garantissant que vos paramètres et commentaires existants restent intacts.
Pour utiliser ce serveur, vous devez avoir l'application localhost installée sur votre machine. Le CLI gère l'installation du skill localhost-mcp, qui permet aux agents de comprendre des tâches spécifiques. Vous pouvez exécuter le serveur en mode lecture seule en utilisant le flag --read-only si vous souhaitez empêcher l'agent d'ajouter, de modifier ou de supprimer des projets et des services. Cette configuration fonctionne localement via stdio, créant un pont direct entre votre assistant de codage IA et vos processus locaux en cours d'exécution.
Ce que vous pouvez faire avec
- 1Configurer plusieurs agents IA à la foisUtilisez le CLI pour ajouter le serveur localhost à chaque agent compatible trouvé sur votre ordinateur.
Extrait du README du projet. Chaque cas d'utilisation est vérifié par rapport à une citation du document.
Comment installer localhost app MCP
Formats vérifiés le 10 nov. 2026Installer localhost app MCP dans Claude Code
$ claude mcp add localhost -- npx -y @getlocalhost/cliInstaller localhost app MCP dans Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"localhost": {
"command": "npx",
"args": [
"-y",
"@getlocalhost/cli"
]
}
}
}Installer localhost app MCP dans VS Code
.vscode/mcp.json
{
"servers": {
"localhost": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@getlocalhost/cli"
]
}
}
}Installer localhost app MCP dans Claude Desktop
claude_desktop_config.json
{
"mcpServers": {
"localhost": {
"command": "npx",
"args": [
"-y",
"@getlocalhost/cli"
]
}
}
}Installer localhost app MCP dans Codex
~/.codex/config.toml
[mcp_servers.localhost] command = "npx" args = ["-y", "@getlocalhost/cli"]
Installer localhost app MCP dans Gemini CLI
~/.gemini/settings.json
{
"mcpServers": {
"localhost": {
"command": "npx",
"args": [
"-y",
"@getlocalhost/cli"
]
}
}
}Vérifications automatisées
Exécuté le 14 nov. 2026Rapport complet →A passé nos vérifications automatisées. Il ne s'agit pas d'un audit de sécurité : lisez le code et donnez au serveur l'accès le plus restreint dont il a besoin. Fonctionnement des vérifications
- Dépôt source lié et accessiblemarcellosso/localhost is public and reachablegithub.com/marcellosso/localhost ↗Réussi
- Le paquet cite ce dépôt comme source@getlocalhost/cli names marcellosso/localhost as sourcenpmjs.com/package/@getlocalhost/cli ↗Réussi
- Provenance du build (attestation Sigstore)Sigstore attestation for @getlocalhost/clinpmjs.com/package/@getlocalhost/cli/v/0.2.0#provenance ↗Réussi
- Licence open source (OSI)MITspdx.org/licenses/MIT.html ↗Réussi
- Commit ou version publiée au cours de l'année écouléeLast commit or release 2026-11-12github.com/marcellosso/localhost ↗Réussi
- OpenSSF ScorecardNon vérifié
- Nom du package non proche d'un package populaireNo popular package one edit away from @getlocalhost/cliRéussi
- Aucun avis critique dans le paquet ni ses dépendances1 resolved dependencies checked; no critical advisoryosv.dev ↗Réussi
- Aucune instruction cachée destinée au modèle0 tool descriptions and the README read; no override phrases, credential paths or hidden charactersRéussi
- Les outils destructifs sont étiquetésNon vérifié
- L'endpoint distant répond au handshake MCPNon vérifié
README
Voir sur GitHub@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.
Questions sur localhost app MCP
Comment ajouter localhost app MCP à Claude Code ?
Exécutez claude mcp add localhost -- npx -y @getlocalhost/cli dans votre terminal. Ajoutez --scope user pour le rendre disponible dans tous les projets.
Comment ajouter localhost app MCP à Cursor ?
Ouvrez ~/.cursor/mcp.json et ajoutez le serveur sous mcpServers, avec la configuration Cursor indiquée dans la section d'installation ci-dessus.
Quels agents de codage peuvent utiliser ce serveur ?
Le serveur peut être ajouté à Claude Code, Claude Desktop, Cursor et Codex.
Dois-je installer autre chose pour que cela fonctionne ?
Oui, l'application localhost doit être installée sur votre système pour que le serveur puisse fonctionner.
Le processus d'installation modifie-t-il mes configurations d'agent existantes ?
Il modifie uniquement ses propres entrées et crée une sauvegarde dans le dossier agent-backups avant d'apporter des modifications.