Skip to content

Commit 6589ccf

Browse files
authored
Merge branch 'main' into 158-support-resource-links
2 parents f63bc81 + 1397019 commit 6589ccf

File tree

717 files changed

+297
-76254
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

717 files changed

+297
-76254
lines changed

.github/workflows/apidocs.yaml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Build and Publish API Docs to GitHub Pages
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
# Allow running this workflow manually from the Actions tab
8+
workflow_dispatch:
9+
10+
jobs:
11+
deploy:
12+
13+
permissions:
14+
pages: write # to deploy to Pages
15+
id-token: write # to verify the deployment originates from an appropriate source
16+
17+
environment:
18+
name: github-pages
19+
url: ${{ steps.deployment.outputs.page_url }}
20+
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v5
24+
with:
25+
submodules: true # Fetch Hugo themes (true OR recursive)
26+
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
27+
28+
- name: Set up JDK 21
29+
uses: actions/setup-java@v5
30+
with:
31+
java-version: '21'
32+
distribution: 'temurin'
33+
cache: gradle
34+
35+
- name: Setup Gradle
36+
uses: gradle/actions/setup-gradle@v4
37+
38+
- name: Generate Dokka Site
39+
run: |-
40+
./gradlew clean dokkaGenerate
41+
42+
- name: Upload artifact
43+
uses: actions/upload-pages-artifact@v4
44+
with:
45+
path: build/dokka/html
46+
47+
- name: Deploy to GitHub Pages
48+
id: deployment
49+
uses: actions/deploy-pages@v4

.github/workflows/build.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,24 @@ jobs:
3737
JAVA_OPTS: "-Xmx8g -Dfile.encoding=UTF-8 -Djava.awt.headless=true -Dkotlin.daemon.jvm.options=-Xmx6g"
3838

3939
- name: Upload Reports
40-
if: always()
40+
if: ${{ !cancelled() }}
4141
uses: actions/upload-artifact@v4
4242
with:
4343
name: reports
4444
path: |
4545
**/build/reports/
4646
47+
- name: Publish Test Report
48+
uses: mikepenz/action-junit-report@v5
49+
if: ${{ !cancelled() }} # always run even if the previous step fails
50+
with:
51+
report_paths: '**/test-results/**/TEST-*.xml'
52+
detailed_summary: true
53+
flaky_summary: true
54+
include_empty_in_summary: false
55+
include_time_in_summary: true
56+
annotate_only: true
57+
4758
- name: Disable Auto-Merge on Fail
4859
if: failure() && github.event_name == 'pull_request'
4960
run: gh pr merge --disable-auto "$PR_URL"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ build/
1111
.idea/compiler.xml
1212
.idea/libraries/
1313
.idea
14+
!.idea/icon.png
1415
*.iws
1516
*.iml
1617
*.ipr

build.gradle.kts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
plugins {
2+
id("mcp.dokka")
23
alias(libs.plugins.ktlint)
34
alias(libs.plugins.kover)
45
}
56

67
allprojects {
78
group = "io.modelcontextprotocol"
8-
version = "0.7.0"
9+
version = "0.7.1"
910
}
1011

1112
dependencies {
13+
dokka(project(":kotlin-sdk-core"))
14+
dokka(project(":kotlin-sdk-client"))
15+
dokka(project(":kotlin-sdk-server"))
16+
1217
kover(project(":kotlin-sdk-core"))
1318
kover(project(":kotlin-sdk-client"))
1419
kover(project(":kotlin-sdk-server"))
@@ -20,6 +25,14 @@ subprojects {
2025
apply(plugin = "org.jetbrains.kotlinx.kover")
2126
}
2227

28+
dokka {
29+
moduleName = "MCP Kotlin SDK"
30+
31+
dokkaPublications.html {
32+
includes.from("docs/moduledoc.md")
33+
}
34+
}
35+
2336
kover {
2437
reports {
2538
filters {

buildSrc/src/main/kotlin/mcp.dokka.gradle.kts

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,35 @@ plugins {
55
}
66

77
dokka {
8-
moduleName.set("MCP Kotlin SDK - ${project.name}")
98

109
dokkaSourceSets.configureEach {
10+
includes.from("Module.md")
11+
12+
pluginsConfiguration.html {
13+
footerMessage = "Copyright © 2024-2025 Anthropic, PBC"
14+
}
15+
1116
sourceLink {
1217
localDirectory = projectDir.resolve("src")
1318
remoteUrl("https://github.com/modelcontextprotocol/kotlin-sdk/tree/main/${project.name}/src")
1419
remoteLineSuffix = "#L"
1520
}
1621

1722
documentedVisibilities(VisibilityModifier.Public)
18-
}
1923

20-
dokkaPublications.html {
21-
outputDirectory = rootProject.layout.projectDirectory.dir("docs/${project.name}")
24+
externalDocumentationLinks.register("ktor-client") {
25+
url("https://api.ktor.io/ktor-client/")
26+
packageListUrl("https://api.ktor.io/package-list")
27+
}
28+
29+
externalDocumentationLinks.register("kotlinx-coroutines") {
30+
url("https://kotlinlang.org/api/kotlinx.coroutines/")
31+
packageListUrl("https://kotlinlang.org/api/kotlinx.coroutines/package-list")
32+
}
33+
34+
externalDocumentationLinks.register("kotlinx-serialization") {
35+
url("https://kotlinlang.org/api/kotlinx.serialization/")
36+
packageListUrl("https://kotlinlang.org/api/kotlinx.serialization/package-list")
37+
}
2238
}
23-
}
39+
}

docs/-m-c-p -kotlin -s-d-k/io.modelcontextprotocol.kotlin.sdk.client/-client-options/-client-options.html

Lines changed: 0 additions & 87 deletions
This file was deleted.

docs/-m-c-p -kotlin -s-d-k/io.modelcontextprotocol.kotlin.sdk.client/-client-options/capabilities.html

Lines changed: 0 additions & 87 deletions
This file was deleted.

0 commit comments

Comments
 (0)