Ryan Malloy 5fa1eb36ef Hamilton remediation: validation, ToolError, elicitation, permission docs
Three-pillar fix from Hamilton review:

Code quality — validate_signature() for D-Bus spec compliance,
MCDBUS_TIMEOUT env var, replace 13 error-as-success returns with
ToolError, monotonic clock deadline on tree walks, sanitize D-Bus
error messages, fix resource connection leak via module-level
BusManager, hasattr guards in conftest.

Elicitation — ctx.elicit() confirmation for system bus call_method
and all set_property calls, graceful degradation when client lacks
elicitation support, MCDBUS_REQUIRE_ELICITATION for hard-fail mode.

Permission docs — four-layer guide (systemd sandboxing, dbus-broker
policy, polkit rules, xdg-dbus-proxy) with ready-to-deploy example
configs validated against xmllint, bash -n, and systemd-analyze.
2026-03-06 11:54:31 -07:00

mcdbus

D-Bus MCP server — bridge Linux IPC into the Model Context Protocol.

Gives Claude native tool access to session and system D-Bus services through introspection-first discovery.

Install

uv run mcdbus

Add to Claude Code

claude mcp add mcdbus -- uv run --directory /path/to/mcdbus mcdbus
Description
D-Bus MCP server — bridge Linux IPC into the Model Context Protocol
Readme 387 KiB
Languages
MDX 57.6%
Python 39.9%
JavaScript 1.5%
Dockerfile 0.4%
CSS 0.4%