bigfix-root-mcp
A read-only MCP server for the HCL BigFix root server REST API, enabling session relevance queries, client fast queries, and server/site/operator lookups through natural language.
README
bigfix-root-mcp
A minimal, read-only MCP server around the besapi library, exposing the HCL BigFix root server REST API to MCP clients. Built on FastMCP 4 (stateless).
Focus: session relevance queries (data the server already has) and client fast query (live questions answered by BigFix agents), plus a few read-only helpers.
Tools
| Tool | Purpose |
|---|---|
session_relevance_query |
Evaluate session relevance on the root server; returns the JSON envelope (result, evaltime_ms). |
client_query_submit |
Submit a client fast query, return its query_id immediately. |
client_query_results |
Fetch current (cumulative) results for a query ID; safe to call repeatedly. |
client_query |
Submit + poll in one call with progress notifications; stops on expected count reached, results stable, or timeout. |
get_server_info |
Root server version info (/api/serverinfo). |
list_sites |
Sites visible to the configured operator. |
get_computer_group |
Look up a group by name — requires an explicit site_path. |
get_operator |
Look up a console operator by name. |
get_dashboard_variable |
Read a dashboard datastore variable. |
whoami |
Configured user/root server, main-operator status; connectivity smoke test. |
api_get |
Read-only escape hatch: GET any /api/ path (try help for discovery). |
Client fast query semantics
Client queries are answered by live agents: results accumulate at
/api/clientqueryresults/{id} over seconds to minutes as clients report in,
and there is no completion flag. The client_query tool polls with three
termination heuristics (reported in stop_reason):
expected_count_reached— as many distinct computers reported as targeted;results_stable— no new computers forstable_pollsconsecutive polls;timeout— partial results at timeout are a normal outcome (offline agents never report), not an error.
For long waits, use client_query_submit then client_query_results
repeatedly instead of a single blocking call.
Configuration
Environment variables win over config files:
| Setting | Env var / [besapi] config key |
Default |
|---|---|---|
| Root server URL | BES_ROOT_SERVER (e.g. https://bes.example.com:52311) |
— |
| REST operator | BES_USER_NAME |
— |
| Password | BES_PASSWORD |
— |
| TLS verification | BES_SSL_VERIFY: false, true, or a CA bundle path |
false (besapi default) |
Config files are searched in besapi's order: /etc/besapi.conf,
~/besapi.conf, ~/.besapi.conf, ./besapi.conf — same
[besapi] section format as besapi/bescli, so an existing config just works.
Prefer keeping credentials in ~/besapi.conf over MCP client config files.
Example MCP client config (see .mcp.json):
{
"mcpServers": {
"bigfix-root": {
"command": "uvx",
"args": ["bigfix-root-mcp"]
}
}
}
Install / run
pip install bigfix-root-mcp # or: uvx bigfix-root-mcp
From a checkout:
pip install -e ".[dev]"
bigfix-root-mcp # or: python -m bigfix_root_mcp
Smoke test against a live root server with MCP Inspector:
npx @modelcontextprotocol/inspector bigfix-root-mcp
then call whoami, session_relevance_query with number of bes computers,
and client_query targeting a known computer ID.
Operator scope
Every result is limited to what the configured REST operator can see. Only a
master operator has full visibility; a regular operator can never be
certain its view is complete, and cannot distinguish "does not exist" from
"outside my scope". So number of bes computers returning 35 means 35
computers visible to this operator — a lower bound, not the BigFix total.
whoami reports is_main_operator for exactly this reason: check it before
treating any result as the full state of BigFix. The tool descriptions carry
this caveat so LLM clients don't overstate scoped results.
Safety and design notes
- Read-only surface: only the tools above are registered; no mutating besapi calls exist in this package. One nuance: submitting a client query does create a query object server-side, but agents only evaluate relevance against it — no managed-endpoint state changes. Any future write support would be opt-in via an explicit environment flag.
- Explicit site paths: this server never uses besapi's mutable
"current site path" connection state (
set_current_site_path/get_current_site_path— a bescli convenience); tools that need a site take a requiredsite_pathparameter. - Stdout hygiene: stdout belongs to the MCP stdio transport; all logging goes to stderr, and config loading avoids besapi helpers that print.
- TLS: verification is off by default to match besapi; set
BES_SSL_VERIFY=true(or a CA bundle path) for anything beyond a lab. - Generic BigFix logic here is written to be upstreamed into besapi — see docs/besapi-proposals.md.
Documentation
| Doc | Contents |
|---|---|
| client-query.md | Client fast query protocol reference: endpoints, payloads, live-captured result schema, termination heuristics and their tradeoffs. |
| besapi-notes.md | besapi behaviors this wrapper depends on or works around (error surfacing, connection lifecycle, return shapes, site-path state). |
| design-decisions.md | Why the server is shaped this way, plus FastMCP 4 beta specifics. |
| besapi-proposals.md | Proposed upstream besapi changes that would let this project shrink. |
Development
python3 -m venv .venv && .venv/bin/pip install -e ".[dev]"
.venv/bin/python -m pytest
Tests run entirely offline against a scripted fake BESConnection, including
in-memory end-to-end MCP calls via fastmcp.Client.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。