From a2739c3f9608be260ec056c7ee8f39d64015695d Mon Sep 17 00:00:00 2001 From: test Date: Tue, 28 Jul 2026 23:29:30 +0800 Subject: [PATCH 1/3] feat: migrate plugin api v2 --- .github/workflows/plugin-api-v2.yml | 26 ++++++++++++++++++++++++++ plugin.py | 3 ++- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/plugin-api-v2.yml diff --git a/.github/workflows/plugin-api-v2.yml b/.github/workflows/plugin-api-v2.yml new file mode 100644 index 0000000..d754535 --- /dev/null +++ b/.github/workflows/plugin-api-v2.yml @@ -0,0 +1,26 @@ +name: plugin-api-v2 + +on: + pull_request: + push: + +permissions: + contents: read + +jobs: + contract: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/checkout@v4 + with: + repository: akashic-plugins/plugin-contracts + ref: 24543445c7b99ca63fcd90b5828f754a148b184c + path: .plugin-contracts + - uses: actions/setup-python@v5 + with: + python-version: "3.13" + - name: Check Plugin API v2 + env: + PYTHONPATH: .plugin-contracts + run: python -m akashic_plugin_contracts check plugin.py diff --git a/plugin.py b/plugin.py index 80e2e25..38b9289 100644 --- a/plugin.py +++ b/plugin.py @@ -18,6 +18,7 @@ class SteamConfig(BaseModel): class SteamPlugin(Plugin): + api_version = 2 name = "steam" version = "1.1.0" desc = "Steam MCP plugin" @@ -49,7 +50,7 @@ def proactive_sources(self) -> list[ProactiveSourceSpec]: ) ] - async def initialize(self) -> None: + def activate(self) -> None: data_dir = self.context.data_dir workspace = self.context.workspace if data_dir is None or workspace is None: From 0e3dbfb1250b5b1f0d0f8ca268d1ad1c5dfd4a17 Mon Sep 17 00:00:00 2001 From: test Date: Wed, 29 Jul 2026 01:27:47 +0800 Subject: [PATCH 2/3] fix(mcp): pin compatible sdk version --- mcp/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mcp/requirements.txt b/mcp/requirements.txt index 6664c6d..3533ce3 100644 --- a/mcp/requirements.txt +++ b/mcp/requirements.txt @@ -1 +1 @@ -mcp +mcp==1.28.1 From d4b7bed3d22f228351836eaaf734dd4b91f3cf7b Mon Sep 17 00:00:00 2001 From: test Date: Wed, 29 Jul 2026 01:57:18 +0800 Subject: [PATCH 3/3] ci: avoid duplicate branch contract gate --- .github/workflows/plugin-api-v2.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/plugin-api-v2.yml b/.github/workflows/plugin-api-v2.yml index d754535..7c1876b 100644 --- a/.github/workflows/plugin-api-v2.yml +++ b/.github/workflows/plugin-api-v2.yml @@ -3,6 +3,8 @@ name: plugin-api-v2 on: pull_request: push: + branches: + - main permissions: contents: read