sample: kotlinlang mcp server (#713)
add new sample: kotlinlang mcp server with 2 tools - search - get_page ## How Has This Been Tested? inspector/unit ## Breaking Changes none ## Checklist - [x] I have read the [MCP Documentation](https://modelcontextprotocol.io) - [x] My code follows the repository's style guidelines - [x] New and existing tests pass locally - [x] I have added appropriate error handling - [x] I have added or updated documentation as needed
This commit is contained in:
parent
bf8dc6d6b1
commit
c946dfc3c2
1 changed files with 2149 additions and 0 deletions
14
samples/kotlinlang-mcp-server/Dockerfile
Normal file
14
samples/kotlinlang-mcp-server/Dockerfile
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
FROM gradle:jdk21-alpine AS build
|
||||
WORKDIR /project
|
||||
COPY gradle/ gradle/
|
||||
COPY gradlew settings.gradle.kts build.gradle.kts ./
|
||||
COPY src/ src/
|
||||
RUN ./gradlew shadowJar --no-daemon
|
||||
|
||||
FROM eclipse-temurin:21-jre-alpine
|
||||
RUN addgroup -S appgroup && adduser -S appuser -G appgroup
|
||||
WORKDIR /app
|
||||
COPY --from=build /project/build/libs/*-all.jar app.jar
|
||||
USER appuser
|
||||
EXPOSE 8080
|
||||
ENTRYPOINT ["java", "-jar", "app.jar"]
|
||||
Loading…
Reference in a new issue