Skip to content

Update Kotlin-MCP-Server with STDIO support, logging & CORS#371

Merged
kpavlov merged 1 commit into
mainfrom
kpavlov/fix-samples
Nov 6, 2025
Merged

Update Kotlin-MCP-Server with STDIO support, logging & CORS#371
kpavlov merged 1 commit into
mainfrom
kpavlov/fix-samples

Conversation

@kpavlov

@kpavlov kpavlov commented Nov 6, 2025

Copy link
Copy Markdown
Contributor

Update Kotlin-MCP-Server with STDIO support, logging & CORS

Summary

  • Added support for STDIO transport mode (default behavior).
  • Configured CORS and migrated SSE server to Ktor's Netty engine.
  • Redirected logs to ./build/stdout.log and updated log levels.
  • New TestEnvironment setup for integration testing.
  • Enhanced documentation with examples for server execution and MCP Inspector usage.
  • Introduced shadow JAR plugin for building runnable artifacts.

Motivation and Context

Improves server versatility and developer experience by enabling STDIO and refining setup.

How Has This Been Tested?

Unit tests, tested locally (see README.md in sample)
NB! sse plain configuration is not working at the moment

Breaking Changes

No

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

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 added tests Test additions and improvements bugfix samples Sample projects and examples labels Nov 6, 2025
…d CORS configuration

### Summary
- Added support for STDIO transport mode (default behavior).
- Configured CORS.
- Redirected logs to `./build/stdout.log` and updated log levels.
- New `TestEnvironment` setup for integration testing.
- Enhanced documentation with examples for server execution and MCP Inspector usage.
- Introduced shadow JAR plugin for building runnable artifacts.

### Motivation and Context
Improves server versatility and developer experience by enabling STDIO and refining setup.
@kpavlov
kpavlov force-pushed the kpavlov/fix-samples branch from 7b3e9ee to c70cc60 Compare November 6, 2025 12:58
@kpavlov
kpavlov marked this pull request as ready for review November 6, 2025 13:11

@devcrocod devcrocod left a comment

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.

👍

@kpavlov
kpavlov merged commit dc4386f into main Nov 6, 2025
7 checks passed
@kpavlov
kpavlov deleted the kpavlov/fix-samples branch November 6, 2025 16:18
@kpavlov
kpavlov removed request for e5l and tiginamaria November 6, 2025 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

samples Sample projects and examples tests Test additions and improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants