Skip to content

Commit 0b2f03e

Browse files
committed
fix(packaging): repair mgp-gateway wheel and bump everything to 0.1.1
The published mgp-gateway 0.1.0 wheel was missing adapters/, schemas/, and openapi/ because reference/pyproject.toml used `where = [".", ".."]`, which PEP 517 build sandbox silently dropped. Installing the gateway from PyPI crashed at startup with `ModuleNotFoundError: No module named 'adapters'`. Move the build configuration to the repository root with `where = ["reference", "."]` so setuptools discovers every required tree in a single sandboxed build, and align all version markers to 0.1.1: - merge reference/pyproject.toml into the root pyproject.toml - bump mgp-gateway, mgp-client, gateway runtime, OpenAPI spec, adapter manifests, SDK protocol defaults, and protocol/spec docs to 0.1.1 - update Makefile, Dockerfile, publish workflow, and quality CI to build from the repo root - update install instructions in docs and reference/README to `pip install .` Verified by building the wheel locally, installing into a clean venv, and confirming `mgp-gateway --version` returns 0.1.1, all adapter packages import, importlib.resources can read schemas/openapi/postgres migrations, TestClient(app).get('/mgp/capabilities') returns 200, schema compliance suite passes, and SDK tests pass. Made-with: Cursor
1 parent ae7e7c0 commit 0b2f03e

40 files changed

Lines changed: 150 additions & 133 deletions

.github/workflows/publish-mgp-gateway.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ jobs:
1212
release-build:
1313
name: Build mgp-gateway
1414
runs-on: ubuntu-latest
15-
defaults:
16-
run:
17-
working-directory: reference
1815

1916
steps:
2017
- name: Checkout repository
@@ -35,7 +32,7 @@ jobs:
3532
uses: actions/upload-artifact@v7
3633
with:
3734
name: mgp-gateway-dists
38-
path: reference/dist/
35+
path: dist/
3936

4037
pypi-publish:
4138
name: Publish mgp-gateway to PyPI

.github/workflows/quality.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
python -m venv .venv
2929
./.venv/bin/python -m pip install --upgrade pip
3030
./.venv/bin/python -m pip install -r reference/requirements.lock.txt -r compliance/requirements.lock.txt -r docs/requirements.lock.txt
31-
./.venv/bin/python -m pip install -e reference -e sdk/python
31+
./.venv/bin/python -m pip install -e . -e sdk/python
3232
./.venv/bin/python -m pip install ruff mypy types-PyYAML
3333
3434
- name: Run Ruff (matches make lint quality checks)
@@ -68,7 +68,7 @@ jobs:
6868
python -m venv .venv
6969
./.venv/bin/python -m pip install --upgrade pip
7070
./.venv/bin/python -m pip install -r reference/requirements.lock.txt -r compliance/requirements.lock.txt
71-
./.venv/bin/python -m pip install -e reference
71+
./.venv/bin/python -m pip install -e .
7272
./.venv/bin/python -m pip install pytest-cov
7373
7474
- name: Run compliance suite
@@ -128,7 +128,7 @@ jobs:
128128
python -m venv .venv
129129
./.venv/bin/python -m pip install --upgrade pip
130130
./.venv/bin/python -m pip install -r reference/requirements.lock.txt -r compliance/requirements.lock.txt
131-
./.venv/bin/python -m pip install -e reference -e sdk/python
131+
./.venv/bin/python -m pip install -e . -e sdk/python
132132
133133
- name: Run integration tests
134134
run: ./.venv/bin/python -m pytest integrations/nanobot/tests integrations/langgraph/tests integrations/minimal_runtime/tests

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
55

66
WORKDIR /app
77

8+
COPY pyproject.toml ./pyproject.toml
89
COPY reference/ ./reference/
910
COPY adapters/ ./adapters/
1011
COPY schemas/ ./schemas/
1112
COPY openapi/ ./openapi/
1213

13-
RUN pip install --no-cache-dir ./reference
14+
RUN pip install --no-cache-dir .
1415

1516
EXPOSE 8080
1617

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ install: check-python
1313
$(PYTHON) -m venv $(VENV)
1414
$(PIP) install --upgrade pip
1515
$(PIP) install -r reference/requirements.lock.txt -r compliance/requirements.lock.txt -r docs/requirements.lock.txt
16-
$(PIP) install -e reference -e sdk/python
16+
$(PIP) install -e . -e sdk/python
1717
$(PIP) install ruff mypy pip-audit build pytest-asyncio pytest-cov types-PyYAML
1818

1919
serve:
@@ -47,7 +47,7 @@ build-sdk:
4747
$(VENV_PYTHON) -m build sdk/python
4848

4949
build-gateway:
50-
$(VENV_PYTHON) -m build reference
50+
$(VENV_PYTHON) -m build
5151

5252
docs-build:
5353
$(VENV_PYTHON) -m mkdocs build --strict

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
**The open protocol for governed memory in AI systems.**
66

7-
[![Protocol](https://img.shields.io/badge/protocol-v0.1.0-blue)](#)
7+
[![Protocol](https://img.shields.io/badge/protocol-v0.1.1-blue)](#)
88
[![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
99
[![CI](https://img.shields.io/github/actions/workflow/status/hkuds/MGP/quality.yml?label=CI)](https://github.com/hkuds/MGP/actions)
1010
[![Docs](https://img.shields.io/badge/docs-mkdocs-blue)](https://hkuds.github.io/MGP/)
@@ -18,7 +18,7 @@
1818

1919
MGP standardizes how AI runtimes **write, recall, govern, and audit persistent memory** across heterogeneous backends. Think of it as a unified contract layer — your agent talks to one protocol, and any compliant memory backend just works.
2020

21-
Current protocol version: `v0.1.0`
21+
Current protocol version: `v0.1.1`
2222

2323
> **MCP** standardizes *tools and resources*. **MGP** standardizes *governed memory*. They are peer protocols — complementary, not competing.
2424

README.zh.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
**面向 AI 系统的开放记忆治理协议**
66

7-
[![Protocol](https://img.shields.io/badge/protocol-v0.1.0-blue)](#)
7+
[![Protocol](https://img.shields.io/badge/protocol-v0.1.1-blue)](#)
88
[![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
99
[![CI](https://img.shields.io/github/actions/workflow/status/hkuds/MGP/quality.yml?label=CI)](https://github.com/hkuds/MGP/actions)
1010
[![Docs](https://img.shields.io/badge/docs-mkdocs-blue)](https://hkuds.github.io/MGP/)
@@ -18,7 +18,7 @@
1818

1919
MGP 统一了 AI 运行时**写入、召回、治理和审计持久化记忆**的方式。它是一个协议契约层——你的 Agent 只需对接一套协议,任何兼容的记忆后端都能直接工作。
2020

21-
当前协议版本:`v0.1.0`
21+
当前协议版本:`v0.1.1`
2222

2323
> **MCP** 标准化的是*工具与资源***MGP** 标准化的是*受治理记忆*。二者是对等协议——互补而非竞争。
2424

adapters/file/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"adapter_name": "file-reference-adapter",
33
"backend_kind": "file",
4-
"mgp_version": "0.1.0",
4+
"mgp_version": "0.1.1",
55
"supported_memory_types": [
66
"profile",
77
"preference",

adapters/graph/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"adapter_name": "graph-reference-adapter",
33
"backend_kind": "graph_db",
4-
"mgp_version": "0.1.0",
4+
"mgp_version": "0.1.1",
55
"supported_memory_types": [
66
"profile",
77
"preference",

adapters/lancedb/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"adapter_name": "lancedb-vector-adapter",
33
"backend_kind": "vector_db",
4-
"mgp_version": "0.1.0",
4+
"mgp_version": "0.1.1",
55
"supported_memory_types": [
66
"profile",
77
"preference",

adapters/mem0/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"adapter_name": "mem0-adapter",
33
"backend_kind": "memory_service",
4-
"mgp_version": "0.1.0",
4+
"mgp_version": "0.1.1",
55
"supported_memory_types": [
66
"profile",
77
"preference",

0 commit comments

Comments
 (0)