Claude Code, Cursor, Codex를 통해 코딩 에이전트가 로컬 개발 서버를 시작, 중지하고 로그를 읽을 수 있도록 합니다.
다른 이름 marcellosso/localhost, localhost, @getlocalhost/cli
- 스타
- 4
- Tools
- —
- 다운로드, 30일
- 629
- 최신 버전
- 0.2.0
- 마지막 커밋
- 2026년 11월 14일
- 라이선스
- MIT
localhost app MCP란?
localhost app은(는) MCP server입니다. Claude Code, Cursor, Codex를 통해 코딩 에이전트가 로컬 개발 서버를 시작, 중지하고 로그를 읽을 수 있도록 합니다.
프로젝트 README에서 생성된 요약
localhost app MCP server 정보
이 도구는 Claude Code, Cursor, Claude Desktop 또는 Codex를 사용하는 개발자가 코딩 에이전트를 통해 로컬 개발 서버를 관리할 수 있게 해줍니다. 에이전트를 localhost app에 연결하면 터미널 환경에서 직접 서비스를 시작 및 중지하거나 로그를 읽을 수 있습니다. 설정 과정에서는 CLI를 사용하여 claude_desktop_config.json 또는 ~/.cursor/mcp.json과 같은 설정 파일을 자동으로 업데이트하며, 기존 설정과 주석은 그대로 유지됩니다.
이 server를 사용하려면 기기에 localhost app이 설치되어 있어야 합니다. CLI는 에이전트가 특정 작업을 이해할 수 있도록 돕는 localhost-mcp skill 설치를 처리합니다. 에이전트가 프로젝트나 서비스를 추가, 편집 또는 삭제하지 못하도록 제한하려면 --read-only flag를 사용하여 read-only 모드로 server를 실행할 수 있습니다. 이 설정은 stdio를 통해 로컬에서 작동하므로 AI 코딩 어시스턴트와 실행 중인 로컬 프로세스 사이를 직접 연결하는 가교 역할을 합니다.
활용 사례
- 1여러 AI 에이전트 동시 설정CLI를 사용하여 컴퓨터에서 발견된 모든 호환 에이전트에 localhost server를 추가합니다.
프로젝트의 README를 바탕으로 작성되었습니다. 모든 활용 사례는 해당 내용의 인용문과 대조하여 확인합니다.
localhost app MCP 설치 방법
형식 확인: 2026년 11월 10일Claude Code에 localhost app MCP 설치
$ claude mcp add localhost -- npx -y @getlocalhost/cliCursor에 localhost app MCP 설치
~/.cursor/mcp.json
{
"mcpServers": {
"localhost": {
"command": "npx",
"args": [
"-y",
"@getlocalhost/cli"
]
}
}
}VS Code에 localhost app MCP 설치
.vscode/mcp.json
{
"servers": {
"localhost": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@getlocalhost/cli"
]
}
}
}Claude Desktop에 localhost app MCP 설치
claude_desktop_config.json
{
"mcpServers": {
"localhost": {
"command": "npx",
"args": [
"-y",
"@getlocalhost/cli"
]
}
}
}Codex에 localhost app MCP 설치
~/.codex/config.toml
[mcp_servers.localhost] command = "npx" args = ["-y", "@getlocalhost/cli"]
Gemini CLI에 localhost app MCP 설치
~/.gemini/settings.json
{
"mcpServers": {
"localhost": {
"command": "npx",
"args": [
"-y",
"@getlocalhost/cli"
]
}
}
}자동 검사
2026년 11월 14일에 실행됨전체 보고서 →자동 검사를 통과했습니다. 이는 보안 감사가 아닙니다. 코드를 직접 읽고 서버에 필요한 최소한의 권한만 부여하십시오. 검사 방식
- 소스 저장소 연결 및 접근 가능marcellosso/localhost is public and reachablegithub.com/marcellosso/localhost ↗통과
- 패키지가 이 저장소를 소스로 지정@getlocalhost/cli names marcellosso/localhost as sourcenpmjs.com/package/@getlocalhost/cli ↗통과
- 빌드 출처(Sigstore 증명)Sigstore attestation for @getlocalhost/clinpmjs.com/package/@getlocalhost/cli/v/0.2.0#provenance ↗통과
- 오픈 소스 라이선스 (OSI)MITspdx.org/licenses/MIT.html ↗통과
- 최근 1년 내 커밋 또는 릴리스Last commit or release 2026-11-12github.com/marcellosso/localhost ↗통과
- OpenSSF Scorecard검사되지 않음
- 패키지 이름이 인기 패키지와 유사하지 않음No popular package one edit away from @getlocalhost/cli통과
- 패키지와 의존성에 심각한 보안 권고 없음1 resolved dependencies checked; no critical advisoryosv.dev ↗통과
- 모델에 대한 숨겨진 지침 없음0 tool descriptions and the README read; no override phrases, credential paths or hidden characters통과
- 파괴적인 도구에 라벨 표시됨검사되지 않음
- 원격 endpoint가 MCP 핸드셰이크에 응답검사되지 않음
README
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.
localhost app MCP 질문
localhost app MCP를 Claude Code에 추가하려면 어떻게 하나요?
터미널에서 claude mcp add localhost -- npx -y @getlocalhost/cli를 실행합니다. 모든 프로젝트에서 사용할 수 있게 하려면 --scope user를 추가합니다.
localhost app MCP를 Cursor에 추가하려면 어떻게 하나요?
~/.cursor/mcp.json를 열고 mcpServers 아래에 서버를 추가합니다. 위 설치 섹션에 표시된 Cursor 구성을 사용합니다.
어떤 코딩 에이전트에서 이 server를 사용할 수 있나요?
Claude Code, Claude Desktop, Cursor, Codex에 추가하여 사용할 수 있습니다.
작동을 위해 다른 설치 항목이 필요한가요?
네, server가 작동하려면 시스템에 localhost app이 설치되어 있어야 합니다.
설치 과정에서 기존 에이전트 설정이 변경되나요?
자체 항목만 수정하며, 변경 전 agent-backups 폴더에 백업을 생성합니다.