Skip to main content

MCP Virtual Shell(MVS)

面向AI Agent的统一工具入口与管理平台。 当前版本为 0.0.1,支持Python 3.12及以上。

模型通过virtual_shell(command)按需发现和调用工具:ls查看目录,help读取参数, run执行获授权的调用。MCP服务位于/mcp,管理员注册的操作系统命令位于/os。 调用共用Schema校验、权限、审批、并发、超时、审计和结果引用。

安装

从PyPI安装包含中文可视化后台的工具:

uv tool install --python 3.12 'mcp-virtual-shell[console]==0.0.1'
mvs init
mvs token show
mvs serve --open

后台默认地址为http://127.0.0.1:8080,使用本机初始化生成的管理员令牌登录。 发布wheel已包含React/shadcn/ui页面,最终用户不需要Node.js。 如果包尚未公开发布,请从项目提供的安装包选择本地wheel安装。

使用已有Python虚拟环境时也可运行:

python -m pip install 'mcp-virtual-shell[console]==0.0.1'

功能

  • 通过官方MCP SDK v2接入stdio或Streamable HTTP服务。
  • 注册Linux、Windows、macOS固定程序和脚本,限制参数、目录、输出与执行资源。
  • 中文后台管理服务、工具白名单、用户、角色、凭证、模型、审批与配置历史。
  • 结果按主体和租户隔离,支持有界预览、结果引用、分页和纯数据管道。
  • 可选Redis会话/限流、PostgreSQL共享控制面与结果、S3对象内容。
  • Prometheus指标、OpenTelemetry追踪、加密备份及恢复。

在后台工作台运行内置演示,无需模型API密钥:

ls /mcp/demo/tools
help /mcp/demo/tools/add
run /mcp/demo/tools/add --a 12 --b 30

可选依赖

依赖组 用途
console 管理后台、HTTP服务和模型客户端
api 嵌入式FastAPI工具执行接口与可观测性
benchmark 真实模型工具入口实验客户端
production Redis、PostgreSQL、S3和系统钥匙串适配

需要共享存储时安装mcp-virtual-shell[console,production]==0.0.1。 外部服务、模型密钥和Docker运行时需按部署场景另行配置。

MVS只执行管理员授权的工具,不接受任意操作系统Shell源码。版本0.0.1仍有跨平台服务安装、 真实第三方OAuth、长期压力和故障恢复等待验收项目,详见仓库文档。

文档与源码

项目使用MIT许可证。

Metadata

Release files for mcp-virtual-shell 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcp-virtual-shell 0.0.1
File Size Uploaded Provenance Actions
mcp_virtual_shell-0.0.1.tar.gz 421.6 kB Without provenance Details for mcp_virtual_shell-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mcp-virtual-shell 0.0.1
File Interpreter ABI Platform Actions
mcp_virtual_shell-0.0.1-py3-none-any.whl Python 3 none any Details for mcp_virtual_shell-0.0.1-py3-none-any.whl

Total release size: 659.9 kB

Release files / mcp_virtual_shell-0.0.1.tar.gz

Download URL mcp_virtual_shell-0.0.1.tar.gz
Size 421.6 kB
Tags Source
SHA-256 checksum
How to use checksums
8d364e288e3007f3708f96bdd04904432e26de9c06fd927ad33bd732dc771188
BLAKE2b-256 checksum
How to use checksums
0d397c4d19a0fbd70fa12be0826a0ff71da900971242e1fac1849963531589a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / mcp_virtual_shell-0.0.1-py3-none-any.whl

Download URL mcp_virtual_shell-0.0.1-py3-none-any.whl
Size 238.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
88ce76c30dc56fcf22a39d13b004c0c31c9840aaad1541b0c2a170757d0573b0
BLAKE2b-256 checksum
How to use checksums
c46cee75bbc04e7624a8021f4ea5d2fbc8f62fbe6dae444a6468849b019b9dd4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Security for mcp-virtual-shell 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page