C4 architecture MCP sidecar — TOML under docs/, Rust write queue
Project description
architect-c4
MCP-сервис рядом с вашим git-репозиторием: агент ведёт C4, ADR и потоки поведения как файлы в docs/.
ваш-репо/
docs/
model.toml
adr/{id}.toml
flows/{id}.toml
На диске продукта — только TOML. Запись идёт через очередь на Rust. История — git.
Подробнее: концепт · быстрый старт · инструменты · публикация
Установка
Нужен Python 3.12+. Rust не требуется.
uvx architect-c4-mcp --docs /abs/path/to/product/docs
или
uv tool install architect-c4-mcp
architect-c4-mcp --docs /abs/path/to/product/docs
пакет: https://pypi.org/project/architect-c4-mcp/
Альтернатива: образ ghcr.io/hewimetall/architect-c4-mcp.
Быстрый старт
uvx architect-c4-mcp \
--docs /abs/path/to/product/docs \
--public-base https://c4.example.com
Эквивалент через env: ARCHITECT_C4_DOCS (CLI --docs важнее).
HTTP:
uvx architect-c4-mcp \
--docs /abs/path/to/product/docs \
--transport http --host 127.0.0.1 --port 8766
- MCP:
http://127.0.0.1:8766/mcp - Viewer:
http://127.0.0.1:8766/view?layer=context
Cursor
{
"mcpServers": {
"architect-c4": {
"command": "uvx",
"args": [
"architect-c4-mcp",
"--docs", "/ABS/product/docs",
"--public-base", "https://c4.example.com"
]
}
}
}
Что умеет агент
| Действие | Tools / prompts |
|---|---|
Привязать docs/ |
bind_docs · prompt sidecar_onboard |
| Модель C4 | upsert_element, upsert_relationship, validate_model · model_c4 |
ADR (GFM → .toml) |
upsert_adr, set_adr_status · write_adr |
| Сценарии | upsert_flow, get_flow_diagram · write_flow |
| Ссылки на схемы | get_view_links, get_overview_diagram · validate_architecture |
Промпты: https://gofastmcp.com/servers/prompts
Docker
docker pull ghcr.io/hewimetall/architect-c4-mcp:latest
docker run --rm -p 8766:8766 \
-v /abs/path/to/product/docs:/docs \
-e ARCHITECT_C4_DOCS=/docs \
-e ARCHITECT_C4_TRANSPORT=http \
ghcr.io/hewimetall/architect-c4-mcp:latest
Разработка
git clone https://github.com/hewimetall/architect-c4-mcp.git
cd architect-c4-mcp
uv sync --extra dev
uv run maturin develop
uv run architect-c4-mcp --docs ./examples/docs
CI
| Событие | Что делает |
|---|---|
| push / PR | pytest, cargo test, lint, docker build |
tag v* |
coverage ≥93% (py+rust) → PyPI wheels, GitHub Release, GHCR |
Лицензия
MIT — см. LICENSE.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file architect_c4_mcp-0.3.2.tar.gz.
File metadata
- Download URL: architect_c4_mcp-0.3.2.tar.gz
- Upload date:
- Size: 269.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.14.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38641da871fdbc9928978e84ccdece1f3510a20adf61d12a7b4e6ac67d04f648
|
|
| MD5 |
9bb59ced92ca46f19f8511e048d30b2b
|
|
| BLAKE2b-256 |
6488084f5ba1bde1d0e0ea3505455a11d8418762f047855bdc45e9691c7cac8d
|
File details
Details for the file architect_c4_mcp-0.3.2-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: architect_c4_mcp-0.3.2-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 3.4 MB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.14.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f783588a5ed59cf5f8b55fefa25a94b8b96ea402b6caeb3f8f0be0fac3558bd
|
|
| MD5 |
a27e1fad34bbbc92ffc5ff45c5695850
|
|
| BLAKE2b-256 |
fc5742e066e3003a9036152a90de27520129db5d6f257166083b3af9e5085a42
|
File details
Details for the file architect_c4_mcp-0.3.2-cp313-cp313-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: architect_c4_mcp-0.3.2-cp313-cp313-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 4.1 MB
- Tags: CPython 3.13, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.14.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4761748ef6dbb626dd4d2f1341134d054bc74969988f6c05437fbb406689f87c
|
|
| MD5 |
521268accd6ce173fa04ee9caabb959a
|
|
| BLAKE2b-256 |
494a7bab8f6e5fe9169494b32791a2b41a6912f84cee385cf8e7e118cb8befae
|
File details
Details for the file architect_c4_mcp-0.3.2-cp313-cp313-musllinux_1_2_aarch64.whl.
File metadata
- Download URL: architect_c4_mcp-0.3.2-cp313-cp313-musllinux_1_2_aarch64.whl
- Upload date:
- Size: 4.0 MB
- Tags: CPython 3.13, musllinux: musl 1.2+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.14.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb35ba75988a7698bd22b8c563718c8b12ef5b941d9488dc6a221cd1b7965882
|
|
| MD5 |
ce1298ef0f4733e970a4b19282aaa87e
|
|
| BLAKE2b-256 |
2471f5fbe0f1b97a5337018c4993016cdce120162a28a10781356a47535ad5d7
|
File details
Details for the file architect_c4_mcp-0.3.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: architect_c4_mcp-0.3.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 3.8 MB
- Tags: CPython 3.13, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.14.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
789122df7eab76a44146ef3a9335b31f246b1ac775ed150517d3a52889a32a20
|
|
| MD5 |
299c13f3a544b28e522918ecb932a75b
|
|
| BLAKE2b-256 |
c9a4d7cd71bb9e349655ad8fe44448752ac16f77c1c76bf9afd30022a2c72d8f
|
File details
Details for the file architect_c4_mcp-0.3.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: architect_c4_mcp-0.3.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 3.6 MB
- Tags: CPython 3.13, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.14.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4fda4ce0168fda8daec652e7faf25ca1950fbfc4f9fd6d5dd9e7f49d0502203
|
|
| MD5 |
0f01e8ece850d24ef197020fbd7846f9
|
|
| BLAKE2b-256 |
805b192cee4a967ef14b9eb72778a4ed0db7610cb51cb23e66dc4f83702cc33e
|
File details
Details for the file architect_c4_mcp-0.3.2-cp313-cp313-macosx_11_0_arm64.whl.
File metadata
- Download URL: architect_c4_mcp-0.3.2-cp313-cp313-macosx_11_0_arm64.whl
- Upload date:
- Size: 3.4 MB
- Tags: CPython 3.13, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.14.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00829e7ef54f72dd89a96b1ebac3186829f4092b8b422eebdb1b51b420d1b86e
|
|
| MD5 |
427205e8491ef5b182187dbe80556a5f
|
|
| BLAKE2b-256 |
433de2b516495c250a90d3a50290ed1644e4b0735ae3804ab80958cb779929db
|
File details
Details for the file architect_c4_mcp-0.3.2-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: architect_c4_mcp-0.3.2-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 3.4 MB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.14.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f04d3c460494a05995168f427a6017f1d16425ff7daebfac8646c087a96e794e
|
|
| MD5 |
0192edd54896d76ea0c127856d8b9aa5
|
|
| BLAKE2b-256 |
e28f4285728b3b96adb3f23ba88b8f940999aad1552be00b753c02a4df18c68d
|
File details
Details for the file architect_c4_mcp-0.3.2-cp312-cp312-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: architect_c4_mcp-0.3.2-cp312-cp312-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 4.1 MB
- Tags: CPython 3.12, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.14.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5cb3811180d5494aa7980d8227ad6b20a27a85388f6b281adb5d2a051764deb9
|
|
| MD5 |
8eededc4f6a9d87e24f30bb22f19fb98
|
|
| BLAKE2b-256 |
6b097aeebcb10864539b871c233e4ebd3309ab062e7c903e4243535cfa65cebc
|
File details
Details for the file architect_c4_mcp-0.3.2-cp312-cp312-musllinux_1_2_aarch64.whl.
File metadata
- Download URL: architect_c4_mcp-0.3.2-cp312-cp312-musllinux_1_2_aarch64.whl
- Upload date:
- Size: 4.0 MB
- Tags: CPython 3.12, musllinux: musl 1.2+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.14.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e0bb5eb75956b7cf450a7c3ec2fa07da1d7872cd9673ece11613bbcef3b0b02
|
|
| MD5 |
8355738b0f446d1ad273d0fff92832e1
|
|
| BLAKE2b-256 |
1fc555376e4bb84bd2d4234ccb41c46a7165a7daae4f70ae3dc1b6a52cefcc28
|
File details
Details for the file architect_c4_mcp-0.3.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: architect_c4_mcp-0.3.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 3.8 MB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.14.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58128909d828050740710144203314f8855d45896faa550ce7308c423f894fa5
|
|
| MD5 |
e8ad00ae3f48ca282ee3785bdfd91833
|
|
| BLAKE2b-256 |
2e5d5839a8785a32b7795757b8c64d3375059ff1b0799ca2d97a521b5a8d5033
|
File details
Details for the file architect_c4_mcp-0.3.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: architect_c4_mcp-0.3.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 3.7 MB
- Tags: CPython 3.12, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.14.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27bf5274f648bf91afd4641069a3255ead1e26ac400dd0230941e5b75fcbeb5d
|
|
| MD5 |
8cada135c96b0ee3468d3d67d3137f5f
|
|
| BLAKE2b-256 |
263f1a35bf99ddb72a06f6f7fde642eba74c299f48a1fc1822af0770e42c868a
|
File details
Details for the file architect_c4_mcp-0.3.2-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: architect_c4_mcp-0.3.2-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 3.4 MB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.14.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d9f9d3df2987f766729b286fab717c70ef41831e56f1e01f4354fbd2085c347
|
|
| MD5 |
e22bb89fd82081b82462ba31d7920767
|
|
| BLAKE2b-256 |
d8f5935aeeaa77aab9faf14a13f316cf08225d672252a5c8d5fce748968b2e0d
|