Skip to content

Conversation

@kpavlov
Copy link
Contributor

@kpavlov kpavlov commented Nov 6, 2025

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 bugfix Something was fixed 🎉 samples 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
Copy link
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.

👍

@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

bugfix Something was fixed 🎉 samples tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants