
raychao-oao/pty-mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
상호 작용하는 맨끝 회의를 위한 MCP 서버 — 국부적으로 포탄, SSH, 직렬 포트 및 지속적인 먼 회의
개요
MCP (Model Context Protocol) 서버는 AI 에이전트 상호 작용하는 터미널 세션을 제공합니다 - 로컬 쉘, SSH, 직렬 포트 및 지속 가능한 원격 세션은 차단을 생존. 실제 서버 및 장치 관리에 도움이되는 AI를 원한다면 코드 생성이 아닙니다. AI Agent는 비동기 포탄에 있는 명령을 실행합니다. 그들은 할 수 없습니다 : - SSH는 서버로 연결하고 실행 프로세스와 상호 작용 - 시리얼 콘솔을 통해 라우터 또는 스위치에 연결 - 특정 이벤트가 발생했을 때 로그 및 반응 - 여러 명령을 통해 세션 상태를 유지 - 서버가 재부팅하고 감지 할 때까지 기다리십시오. pty-mcp는 MCP를 통해 실제 PTY 세션을 제공함으로써 이러한 모든 것을 해결합니다. pty-mcp없이, AI Agent 리조트는 30 & & & check status 루프를 잠그고 - CPU 사이클과 API 통화를 태우는 것은 일어날 것입니다. wait for, 이벤트가 일어날 때까지 에이전트 블록 서버 측. 더 적은 오염, 더 적은 에너지, 더 나은 폴라 곰.
개요(AI 번역)
MCP (Model Context Protocol) 서버는 AI 에이전트 상호 작용하는 터미널 세션을 제공합니다 - 로컬 쉘, SSH, 직렬 포트 및 지속 가능한 원격 세션은 차단을 생존.
sysadmins 및 Network Engineer에 내장되어 있어 AI가 실제 서버 및 장치 관리에 도움이 되는데, 코드 생성이 되지 않습니다.
왜
AI Agent는 비동기 포탄에 있는 명령을 실행합니다. 그들은 할 수 없습니다:
- SSH를 서버로 연결하고 실행 프로세스와 상호 작용
- 시리얼 콘솔을 통해 라우터 또는 스위치에 연결
- 모니터 로그 및 특정 이벤트가 발생했을 때 반응
- 여러 명령을 통해 세션 상태를 유지
- 다시 부팅하고 감지 할 서버의 대기
pty-mcp는 MCP를 통해 실제 PTY 세션을 제공함으로써 이러한 모든 것을 해결합니다.
pty-mcp없이, AI Agent Resort to sleep 30 && check_status 루프 - CPU 사이클과 API 호출을 태우는 것은 일어날 것입니다. wait_for로, 이벤트가 일어날 때까지 에이전트 블록 서버 측. 더 적은 오염, 더 적은 에너지, 더 나은 폴라 곰. ₢ 킹
사용 케이스
**서버 관리 **
네트웍 장치 관리
로그 모니터링 및 경고
일부로 살아남은 작업
특징
| 특징 | 묘사 |
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
pty-mcp
An MCP (Model Context Protocol) server that gives AI agents interactive terminal sessions — local shells, SSH, serial ports, and persistent remote sessions that survive disconnects.
Built for sysadmins and network engineers who want AI to help with real server and device management, not just code generation.
Why
AI agents run commands in non-interactive shells. They can’t:
- SSH into a server and interact with running processes
- Connect to routers or switches via serial console
- Monitor logs and react when a specific event occurs
- Keep session state across multiple commands
- Wait for a server to reboot and detect when it’s back up
pty-mcp solves all of these by providing real PTY sessions over MCP.
Without pty-mcp, AI agents resort to sleep 30 && check_status loops — burning CPU cycles and API calls waiting for things to happen. With wait_for, the agent blocks server-side until the event occurs. Less polling, less energy, better for polar bears. 🐻❄️
Use Cases
Server administration
# Reboot a server and wait until it's back online
create_local_session("ping myserver")
read_output(wait_for: "bytes from", timeout: 300)
→ blocks until server responds after reboot (~80s, one tool call)
Network device management
# Connect to a router via serial console
create_serial_session(port: "/dev/ttyUSB0", baud: 9600)
send_input("show interfaces status")
read_output(wait_for: "\\$")
Log monitoring and alerting
# Watch logs and act when something happens
create_ssh_session(host: "prod", user: "admin")
send_input("tail -f /var/log/app.log")
read_output(wait_for: "ERROR|CRITICAL", timeout: 3600)
→ returns the error line + context when it appears
Long-running tasks that survive disconnects
create_ssh_session(host: "server", user: "admin", persistent: true)
send_input("apt upgrade -y")
detach_session() → close Claude Code, task continues
# Reconnect later to check result
Features
| Feature | Description |
|---|---|
| Local terminal | Interactive bash/python/node sessions on local machine |
| SSH sessions | Connect to remote hosts with key/password auth, SSH config support |
| Serial port | Connect to devices via serial (IoT, embedded, network gear) |
| Persistent sessions | Sessions survive SSH disconnects via ai-tmux daemon |
| Attach/Detach | Detach from a running session, reconnect later |
| Control keys | Send ctrl+c, ctrl+d, arrow keys, tab, escape |
| Settle detection | Waits for output to settle before returning (smart timeout) |
| Pattern matching | wait_for blocks until a regex pattern appears in output (v0.2.0) |
설치
This server does not publish a one-line install command.
Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →