os-control-mcp
os-control-mcp
用于持久终端会话的本地 MCP。该进程保持 Bash、CMD、PowerShell、pwsh 或 WSL 处于活动状态,并将输入发送与输出的增量读取分开。
它还具备持久目标:代理可以创建带有验收标准的目标,执行多个步骤,验证证据,并持续进行直到完成、失败、受阻或达到设定的限制。
注意: 此服务器以运行它的用户的权限控制进程。请在本地使用,默认不要以管理员/root 身份运行,并且切勿将进程直接暴露到互联网。
传输
服务器通过 stdio 使用 MCP JSONL。默认不打开网络端口。
Related MCP server: Persistent Terminal MCP Server
Shell
在 POSIX 系统上:
bash、sh、zsh;在 Windows 上:
cmd、powershell和pwsh;在 Windows 上:
wsl-bash,使用OS_CONTROL_WSL_DISTRO中定义的发行版,默认为kali-linux。
交互流程
os_create_session创建持久会话。os_send_input立即写入 PTY/ConPTY。os_read_output使用since_seq仅获取新输出。os_session_status跟踪 PID、shell、目录和终止状态。
在 autonomous 目标之外,可能具有破坏性的命令需要明确确认。在自主目标中,授权在目标定义的步骤和时间限制内持续有效。该服务器用于本地使用,当置于远程隧道之后时,应继续通过身份验证和范围界定进行保护。
自主目标
推荐流程:
os_create_session创建持久终端。os_goal_start接收目标、标准和session_id。os_send_input使用goal_id执行,无需重复确认。os_read_output读取增量输出。os_goal_update记录操作、结果、证据和下一步。代理重复执行,直到所有标准得到验证。
服务器不会自行发明下一步操作,也不会单独调用模型;它维护目标的状态和限制。客户端/代理应持续进行调用,直到达到终止状态。
安装
git clone https://github.com/Willian-2-0-0-1/os-control-mcp.git
cd os-control-mcp
python -m pip install -r requirements.txt在 Windows 上,pywinpty 为 CMD 和 PowerShell 启用 ConPTY。在 Kali/Linux 上,后端使用原生 PTY。.mcp.json 文件可供接受通过 stdio 的本地服务器的 MCP 客户端使用。
用于 GPT/Codex 的插件
仓库包含 .codex-plugin/plugin.json 清单和 MCP 服务器。这允许将包分发给兼容 MCP 插件的客户端。
要在 ChatGPT 中使用本地服务器,每个用户必须运行自己的实例并配置私有连接。仅凭 GitHub 仓库本身,并不能让 ChatGPT 访问用户的计算机。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityDmaintenanceExecute terminal commands locally or remotely via SSH with session persistence and environment variable support. Manage terminal sessions that maintain state for up to 20 minutes, enabling efficient command execution workflows. Connect using stdio or SSE for flexible integration with AI models and a12MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to create and manage persistent terminal sessions that continue running even after disconnection, with features like smart output management, web UI visualization, and automatic bug fixing with Codex integration.254MIT
- FlicenseNot gradedqualityDmaintenanceProvides stateful, interactive terminal access for LLMs to spawn and maintain persistent processes like SSH sessions, debuggers, and REPLs with continuous input/output interaction across commands.7
- AlicenseNot gradedqualityDmaintenanceEnables LLMs to create and manage persistent, interactive shell sessions with full terminal emulation and PTY support. It allows for sequential command execution and supports interactive programs like vim or htop through specialized streaming and snapshot output modes.4MIT
Related MCP Connectors
Adaptive plan/build/review cycles for AI coding assistants, persisted across sessions.
Persistent memory and cross-session learning for AI coding assistants (hosted remote MCP).
Persistent memory and knowledge management for AI agents with semantic search and 50+ tools.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Willian-2-0-0-1/os-control-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server