Skip to content

#302 Update samples build workflow#330

Merged
kpavlov merged 8 commits into
mainfrom
kpavlov/302
Oct 23, 2025
Merged

#302 Update samples build workflow#330
kpavlov merged 8 commits into
mainfrom
kpavlov/302

Conversation

@kpavlov
Copy link
Copy Markdown
Contributor

@kpavlov kpavlov commented Oct 22, 2025

#302 Update samples build workflow

  • Introduce workflow to build samples independently from the main project
  • Keep building samples against the current snapshot version of the SDK. Update composite build configuration.
  • Temporarily disable "samples/kotlin-mcp-server": the multiplatform project is broken. It doesn't compile for me even on the main branch. Not working with MCP Instepcor, because CORS is not configured. Deserves a separate PR to fix.

Motivation and Context

Samples should be independently buildable

How Has This Been Tested?

Breaking Changes

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Build improvement
  • Tests

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

@kpavlov kpavlov marked this pull request as ready for review October 22, 2025 19:16
@kpavlov kpavlov added the samples Sample projects and examples label Oct 22, 2025
Copy link
Copy Markdown

@EugeneTheDev EugeneTheDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally looks good to me, only minor comments

Comment thread samples/kotlin-mcp-client/settings.gradle.kts
}
plugins {
// Apply the foojay-resolver plugin to allow automatic download of JDKs
id("org.gradle.toolchains.foojay-resolver-convention") version "1.0.0"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same, let's move to libs.versions.toml

Copy link
Copy Markdown
Contributor

@devcrocod devcrocod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a few questions, could you please take a look at them?

koverLog koverHtmlReport \
publishToMavenLocal
publishToMavenLocal \
-Pversion=0.0.1-SNAPSHOT
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this version being used? Shouldn’t we use the latest version + snapshot instead?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it would be harder to maintain. This is an ephemeral version for the build process only.

Comment thread .github/workflows/samples.yml
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need a separate toml file for each example?
Maybe it would be clearer to specify the versions directly in the build.gradle files instead?

Also, we should check the dependabot workflow to make sure it monitors these files as well

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, samples should be completely independent from SDK

Comment thread settings.gradle.kts
Copy link
Copy Markdown
Contributor

@devcrocod devcrocod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@kpavlov kpavlov merged commit 2da14b0 into main Oct 23, 2025
6 checks passed
@kpavlov kpavlov deleted the kpavlov/302 branch October 23, 2025 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

samples Sample projects and examples

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants