From b383f36872291cb2f1539e06bb28fe9068a4a2a2 Mon Sep 17 00:00:00 2001 From: Ryan Malloy Date: Thu, 5 Mar 2026 20:09:32 -0700 Subject: [PATCH] Initial project scaffold for mcdbus D-Bus MCP server --- .gitignore | 14 ++++++++++++++ pyproject.toml | 39 +++++++++++++++++++++++++++++++++++++++ src/mcdbus/__init__.py | 3 +++ 3 files changed, 56 insertions(+) create mode 100644 .gitignore create mode 100644 pyproject.toml create mode 100644 src/mcdbus/__init__.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..70ea12f --- /dev/null +++ b/.gitignore @@ -0,0 +1,14 @@ +__pycache__/ +*.py[cod] +*$py.class +*.egg-info/ +dist/ +build/ +.eggs/ +*.egg +.venv/ +.env +.ruff_cache/ +.pytest_cache/ +.mypy_cache/ +*.so diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..295e495 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,39 @@ +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + +[project] +name = "mcdbus" +version = "2026.03.05" +description = "D-Bus MCP server — bridge Linux IPC into the Model Context Protocol" +readme = "README.md" +requires-python = ">=3.11" +license = "MIT" +authors = [{name = "Ryan Malloy", email = "ryan@supported.systems"}] +dependencies = [ + "fastmcp>=2.14.5", + "dbus-fast>=3.1.2", +] + +[project.scripts] +mcdbus = "mcdbus.server:main" + +[tool.hatch.build.targets.wheel] +packages = ["src/mcdbus"] + +[dependency-groups] +dev = [ + "ruff>=0.9.0", + "pytest>=8.0", + "pytest-asyncio>=0.25", +] + +[tool.pytest.ini_options] +asyncio_mode = "auto" + +[tool.ruff] +target-version = "py311" +line-length = 99 + +[tool.ruff.lint] +select = ["E", "F", "I", "W", "UP"] diff --git a/src/mcdbus/__init__.py b/src/mcdbus/__init__.py new file mode 100644 index 0000000..89871ef --- /dev/null +++ b/src/mcdbus/__init__.py @@ -0,0 +1,3 @@ +"""mcdbus — D-Bus MCP server for Linux IPC.""" + +__version__ = "2026.03.05"