From 1368af31dd0c09044c6fcf584e4caf5e1a9f827e Mon Sep 17 00:00:00 2001 From: Jake Macdonald Date: Mon, 7 Apr 2025 18:03:47 +0000 Subject: [PATCH 1/7] add health and publish workflows --- .github/workflows/health.yaml | 15 +++++++++++++++ .github/workflows/post_summaries.yaml | 17 +++++++++++++++++ .github/workflows/publish.yaml | 22 ++++++++++++++++++++++ 3 files changed, 54 insertions(+) create mode 100644 .github/workflows/health.yaml create mode 100644 .github/workflows/post_summaries.yaml create mode 100644 .github/workflows/publish.yaml diff --git a/.github/workflows/health.yaml b/.github/workflows/health.yaml new file mode 100644 index 0000000..98ba293 --- /dev/null +++ b/.github/workflows/health.yaml @@ -0,0 +1,15 @@ +name: Health +on: + pull_request: + branches: [ main ] + types: [opened, synchronize, reopened, labeled, unlabeled] + +jobs: + health: + uses: dart-lang/ecosystem/.github/workflows/health.yaml@main + with: + checks: "version,changelog,do-not-submit,breaking" + flutter_packages: "pkgs/dart_tooling_mcp_server/test_fixtures/counter_app" + sdk: dev + permissions: + pull-requests: write diff --git a/.github/workflows/post_summaries.yaml b/.github/workflows/post_summaries.yaml new file mode 100644 index 0000000..6683c13 --- /dev/null +++ b/.github/workflows/post_summaries.yaml @@ -0,0 +1,17 @@ +# A CI configuration to write comments on PRs. + +name: Comment on the pull request + +on: + workflow_run: + workflows: + - Health + - Publish + types: + - completed + +jobs: + upload: + uses: dart-lang/ecosystem/.github/workflows/post_summaries.yaml@main + permissions: + pull-requests: write diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..2e169fd --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,22 @@ +# A CI configuration to auto-publish pub packages. + +name: Publish + +on: + pull_request: + branches: [ main ] + types: [opened, synchronize, reopened, labeled, unlabeled] + push: + tags: [ '[A-z]+-v[0-9]+.[0-9]+.[0-9]+*' ] + +jobs: + publish: + if: ${{ github.repository_owner == 'dart-lang' }} + uses: dart-lang/ecosystem/.github/workflows/publish.yaml@main + with: + write-comments: false + sdk: dev + environment: pub.dev # Can be any name, this is the convention though. + permissions: + id-token: write + pull-requests: write From e0c1c56e1156392e69da1a777f5677e3f165305c Mon Sep 17 00:00:00 2001 From: Jake Macdonald Date: Mon, 7 Apr 2025 18:10:51 +0000 Subject: [PATCH 2/7] add changelog --- pkgs/dart_mcp/CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 pkgs/dart_mcp/CHANGELOG.md diff --git a/pkgs/dart_mcp/CHANGELOG.md b/pkgs/dart_mcp/CHANGELOG.md new file mode 100644 index 0000000..7a25812 --- /dev/null +++ b/pkgs/dart_mcp/CHANGELOG.md @@ -0,0 +1,4 @@ +## 0.1.0-wip + +- Initial release, supports all major MCP functionality for both clients and + servers, at protocol version 2024-11-05. From 2ca1a4d0015a3a78a8182070ac56924fdf03725a Mon Sep 17 00:00:00 2001 From: Jake Macdonald Date: Mon, 7 Apr 2025 18:11:55 +0000 Subject: [PATCH 3/7] remove publish_to: none --- pkgs/dart_mcp/pubspec.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/pkgs/dart_mcp/pubspec.yaml b/pkgs/dart_mcp/pubspec.yaml index 3d41b5b..d42562a 100644 --- a/pkgs/dart_mcp/pubspec.yaml +++ b/pkgs/dart_mcp/pubspec.yaml @@ -1,5 +1,4 @@ name: dart_mcp -publish_to: none version: 0.1.0-wip environment: sdk: ^3.6.1 # The version of dart in the current flutter stable From 83309b6c787040deb5f1bbe3fc542209b948dbcf Mon Sep 17 00:00:00 2001 From: Jake Macdonald Date: Mon, 7 Apr 2025 18:12:46 +0000 Subject: [PATCH 4/7] add another note about stability to the changelog --- pkgs/dart_mcp/CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/dart_mcp/CHANGELOG.md b/pkgs/dart_mcp/CHANGELOG.md index 7a25812..cdc35e4 100644 --- a/pkgs/dart_mcp/CHANGELOG.md +++ b/pkgs/dart_mcp/CHANGELOG.md @@ -2,3 +2,5 @@ - Initial release, supports all major MCP functionality for both clients and servers, at protocol version 2024-11-05. +- APIs may change frequently until the 1.0.0 release based on feedback and + needs. From e115ae8d5a65fd61d1210087ce7aad14928c13e1 Mon Sep 17 00:00:00 2001 From: Jake Macdonald Date: Mon, 7 Apr 2025 18:18:06 +0000 Subject: [PATCH 5/7] remove breaking check until we have a published version --- .github/workflows/health.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/health.yaml b/.github/workflows/health.yaml index 98ba293..88e2b11 100644 --- a/.github/workflows/health.yaml +++ b/.github/workflows/health.yaml @@ -8,7 +8,9 @@ jobs: health: uses: dart-lang/ecosystem/.github/workflows/health.yaml@main with: - checks: "version,changelog,do-not-submit,breaking" + # TODO: Add breaking check once we have a real version published to + # compare against. + checks: "version,changelog,do-not-submit" flutter_packages: "pkgs/dart_tooling_mcp_server/test_fixtures/counter_app" sdk: dev permissions: From 61eb3c7b5e690f0779c8df7e4ea867bf9a6b26db Mon Sep 17 00:00:00 2001 From: Jake Macdonald Date: Mon, 7 Apr 2025 19:39:22 +0000 Subject: [PATCH 6/7] remove environment --- .github/workflows/publish.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 2e169fd..f0e93ee 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -16,7 +16,6 @@ jobs: with: write-comments: false sdk: dev - environment: pub.dev # Can be any name, this is the convention though. permissions: id-token: write pull-requests: write From 5fb7150134371f8c76d0a92578a9d614176970e9 Mon Sep 17 00:00:00 2001 From: Jacob MacDonald Date: Mon, 7 Apr 2025 14:52:22 -0700 Subject: [PATCH 7/7] Update .github/workflows/publish.yaml Co-authored-by: Devon Carew --- .github/workflows/publish.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index f0e93ee..bd0a9fa 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -7,7 +7,7 @@ on: branches: [ main ] types: [opened, synchronize, reopened, labeled, unlabeled] push: - tags: [ '[A-z]+-v[0-9]+.[0-9]+.[0-9]+*' ] + tags: [ '[A-z0-9]+-v[0-9]+.[0-9]+.[0-9]+*' ] jobs: publish: