Build an MCP server changeddocs/draft/develop/build-server
Nearest release: v2.1.316, published 14 hours before upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Upstream edited this page at 31 Oct 2026 15:31 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 31 Oct 2026 15:37 UTC.
Upstream edited
Recorded here
Lines+19added
Lines−7removed
From line
775
where the diff opens
First seen
26 Aug 2026
this site's first read of the page
Recorded edits11to this page, all time
The whole hunk
from line 775, old and new numbered
/
from line 775
775775>
776776> > [!NOTE]
777777> >
778> > This server uses MCP protocol version 2025-11-25, as supported by the latest stable release of the Java SDK. Clients that also support that version can connect to it, but clients that support only 2026-07-28 cannot. See [backward compatibility](https://modelcontextprotocol.io/specification/draft/basic/versioning.md#backward-compatibility-with-initialization-based-versions).
779>
780> > [!NOTE]
781> >
778782> > This is a quickstart demo based on Spring AI MCP auto-configuration and boot starters.
779783> > To learn how to create sync and async MCP Servers, manually, consult the [Java SDK Server](https://java.sdk.modelcontextprotocol.io/) documentation.
780784>
from line 804
800804> ### System requirements
801805>
802806> * Java 17 or higher installed.
803> * [Spring Boot 3.3.x](https://docs.spring.io/spring-boot/installing.html) or higher
807> * [Spring Boot 4.1.x](https://docs.spring.io/spring-boot/installing.html) or higher
804808>
805809> ### Set up your environment
806810>
from line 1016
10121016> .args("-jar", "/ABSOLUTE/PATH/TO/PARENT/FOLDER/mcp-weather-stdio-server-0.0.1-SNAPSHOT.jar")
10131017> .build();
10141018>
1015> var stdioTransport = new StdioClientTransport(stdioParams);
1019> var stdioTransport = new StdioClientTransport(stdioParams, McpJsonDefaults.getMapper());
10161020>
10171021> var mcpClient = McpClient.sync(stdioTransport).build();
10181022>
from line 1064
10601064
10611065> [tab] Kotlin
10621066>
1067> > [!NOTE]
1068> >
1069> > This server uses MCP protocol version 2025-11-25, as supported by the latest stable release of the Kotlin SDK. Clients that also support that version can connect to it, but clients that support only 2026-07-28 cannot. See [backward compatibility](https://modelcontextprotocol.io/specification/draft/basic/versioning.md#backward-compatibility-with-initialization-based-versions).
1070>
10631071> Let's get started with building our weather server! [You can find the complete code for what we'll be building here.](https://github.com/modelcontextprotocol/kotlin-sdk/tree/main/samples/weather-stdio-server)
10641072>
10651073> ### Prerequisite knowledge
from line 1131
11231131>
11241132> ```kotlin build.gradle.kts theme={null}
11251133> // Check latest versions at https://github.com/modelcontextprotocol/kotlin-sdk/releases
1126> val mcpVersion = "0.9.0"
1134> val mcpVersion = "0.16.0"
11271135> val ktorVersion = "3.2.3"
11281136> val slf4jVersion = "2.0.17"
11291137>
from line 1142
11341142> application
11351143> }
11361144>
1145> repositories {
1146> mavenCentral()
1147> }
1148>
11371149> application {
11381150> mainClass.set("MainKt")
11391151> }
from line 1366
13541366>
13551367> ```bash theme={null}
13561368> ./gradlew build
1357> java -jar build/libs/weather-0.1.0-all.jar
1369> java -jar build/libs/weather-all.jar
13581370> ```
13591371>
13601372> Let's now test your server from an existing MCP host, Claude for Desktop.
from line 1406
13941406> "command": "java",
13951407> "args": [
13961408> "-jar",
1397> "/ABSOLUTE/PATH/TO/PARENT/FOLDER/weather/build/libs/weather-0.1.0-all.jar"
1409> "/ABSOLUTE/PATH/TO/PARENT/FOLDER/weather/build/libs/weather-all.jar"
13981410> ]
13991411> }
14001412> }
from line 1420
14081420> "command": "java",
14091421> "args": [
14101422> "-jar",
1411> "C:\\PATH\\TO\\PARENT\\FOLDER\\weather\\build\\libs\\weather-0.1.0-all.jar"
1423> "C:\\PATH\\TO\\PARENT\\FOLDER\\weather\\build\\libs\\weather-all.jar"
14121424> ]
14131425> }
14141426> }
from line 1430
14181430> This tells Claude for Desktop:
14191431>
14201432> 1. There's an MCP server named "weather"
1421> 2. Launch it by running `java -jar /ABSOLUTE/PATH/TO/PARENT/FOLDER/weather/build/libs/weather-0.1.0-all.jar`
1433> 2. Launch it by running `java -jar /ABSOLUTE/PATH/TO/PARENT/FOLDER/weather/build/libs/weather-all.jar`
14221434>
14231435> Save the file, and restart **Claude for Desktop**.
14241436
No line in this hunk matches that.