vcf-ops-mcp
Provides authenticated read-only access to VMware Cloud Foundation Operations inventory, metrics, alerts, report definitions, targets, and skills via Streamable HTTP, with a durable audit trail and an admin UI.
README
Sentania VCF Ops MCP (unofficial)
vcf-ops-mcp is a containerized, read-only-by-default MCP server with a small
admin UI for VCF Operations. The current MVP exposes the implemented inventory,
metrics, alerts, report-definition, target, and skills reads through
authenticated Streamable HTTP. Every MCP tool call passes through the durable
audit dispatcher.
This is an unofficial personal-lab project. It is not a Broadcom or VMware offering.
Run the test suite
Python 3.12 or later is required.
python3 -m venv .venv
.venv/bin/python -m pip install --upgrade pip hatchling
.venv/bin/python -m pip install -e '.[test]'
.venv/bin/pytest tests/
./tools/generate_agents_md.sh --check
./tools/consensus-check.py --self-test
The live-appliance tier is skipped unless its explicit guard variables are provided. Normal tests use only synthetic VCF Ops responses.
Build and start the container locally
The service creates its session signing secret and credential keyring on the
/keys volume at first start. No hand-authored SESSION_SECRET is required.
docker build -t vcf-ops-mcp:local .
docker volume create vcf-ops-mcp-data
docker volume create vcf-ops-mcp-keys
docker volume create vcf-ops-mcp-audit
docker run --name vcf-ops-mcp --rm \
--read-only \
--user 10001:10001 \
--security-opt no-new-privileges \
--cap-drop ALL \
-p 8000:8000 \
-e PUBLIC_BASE_URL=http://localhost:8000 \
-v vcf-ops-mcp-data:/data \
-v vcf-ops-mcp-keys:/keys \
-v vcf-ops-mcp-audit:/audit \
vcf-ops-mcp:local
In another terminal:
curl --fail http://localhost:8000/healthz
A ready response is HTTP 200 and reports all four dependencies as true:
audit_writable, configuration_ready, session_secret_persistent, and
mcp_ready. An unavailable audit, configuration, key, or MCP dependency keeps
the process diagnosable but returns HTTP 503.
The lab deployment owns its image pin and rollout. The reference
deploy/compose.yml retains the external docker-slots
network and the same three persistent volumes, but this repository does not
deploy it. Runtime secrets never pass through CI or the compose environment.
First admin sign-in
The approved bootstrap path uses an operator-supplied password file. The service starts healthy without it, but the admin plane stays inaccessible until the file exists. The password must contain at least 16 bytes. It is hashed with scrypt into the runtime database and the bootstrap file is removed when the first login initializes the account. If that removal fails, a later login retries the cleanup without changing the stored admin password.
For the local container, create the file without placing the password in shell history or process arguments:
docker exec -it vcf-ops-mcp sh
umask 077
python -c 'import getpass,pathlib; pathlib.Path("/keys/admin_bootstrap_password").write_text(getpass.getpass("New admin password: "))'
exit
For the docker.int slot, lab-admin performs the same one-time operation through
the host's normal administrative channel inside the running
vcf-ops-mcp-web container. The deploy key cannot and must not perform it,
because its forced-command allowlist intentionally excludes exec. The file
path and mode are the same. CI never receives the bootstrap password.
Open http://localhost:8000/admin/login, sign in as admin, then:
- Register a VCF Ops target. New targets are always
read_only. The production FQDN is recognized server-side and can never be switched to actions in this MVP. - Select the required implemented read scopes and one or more registered targets, then mint an MCP API key. The plaintext key is displayed once. Only its SHA-256 digest is stored.
- Configure the MCP client with Streamable HTTP URL
http://localhost:8000/mcp/and headerAuthorization: Bearer <displayed-key>. - Use
list_targetsto discover permitted target IDs, then call a read tool. VCF adapter arguments are passed in that tool'sargumentsobject. - Inspect
/admin/auditto see the append-only attempt and terminal records.
Production uses https://vcf-ops-mcp.int.sentania.net, which keeps the admin
session cookie Secure. Local HTTP is enabled only when PUBLIC_BASE_URL
explicitly uses http://.
Persistent data and recovery
The three volume roots have separate jobs:
| Volume path | Contents |
|---|---|
/data |
Runtime SQLite database with admin hash, target metadata, encrypted credential envelopes, and API-key digests |
/keys |
Generated session secret, audit argument-digest key, versioned AES-256-GCM credential keyring, and the one-use admin bootstrap file |
/audit |
Append-only SQLite audit ledger |
Back up /data, /keys, and /audit as separate protected artifacts. Losing
/keys while encrypted target records remain is intentionally unrecoverable.
The server refuses to regenerate the credential keyring over existing
ciphertext. Do not use docker compose down -v for an established deployment.
If a process dies after committing an audit attempt but before its terminal
record, the next start appends outcome_unknown. It never rewrites the attempt
or invents a successful result.
MVP boundary
Shipped:
- Automatic durable
SESSION_SECRETgeneration, with an explicit environment override retained for direct process operation. - Durable encrypted target configuration, bootstrap-admin login, scoped API-key mint and revoke, target registration, and audit viewing.
- Authenticated Streamable HTTP with the implemented read adapters, target
discovery, and both skills tools and skills resources/prompts. Skill content
over resources and prompts requires the same
read:skillscapability as the skills tools; only concrete resource discovery is available without it. - Read-only target posture, API-key target allowlists, default-deny implemented scopes, the production-target hard block, response projection and caps, and durable per-tool audit.
Intentionally deferred:
- All action execution, action-capable keys, report runs, plan/apply, and async task polling. These remain behind the Phase 2 human gate.
- Target editing and credential rotation in the UI.
- Completed-report download, because the development appliance has no completed reports without first running a report mutation.
- External exposure, NSX, VCFA automation, direct-vCenter tools, and PII scrubbing.
- Non-LOCAL authentication-source discovery. The earlier arbitrary-FQDN fetch was removed because it was an SSRF boundary, not a safe discovery mechanism.
See docs/SPEC.md, the accepted records in docs/decisions, and docs/read-plane.md for the full contract and measured VCF Ops behaviors.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。