kotlin-mcp-server-generator
Installation
Summary
Generate production-ready Kotlin MCP server projects with Gradle, official SDK, and typed tools.
- Scaffolds complete project structure with build.gradle.kts, package layout, and MCP server configuration using io.modelcontextprotocol:kotlin-sdk
- Includes 2–3 sample tools with JSON schema definitions, typed inputs/outputs, and error handling patterns
- Provides coroutine-based server setup with stdio transport, environment variable configuration, and kotlin-logging integration
- Includes test templates using kotlinx-coroutines-test and README with build, run, and development instructions
SKILL.md
Kotlin MCP Server Project Generator
Generate a complete, production-ready Model Context Protocol (MCP) server project in Kotlin.
Project Requirements
You will create a Kotlin MCP server with:
- Project Structure: Gradle-based Kotlin project layout
- Dependencies: Official MCP SDK, Ktor, and kotlinx libraries
- Server Setup: Configured MCP server with transports
- Tools: At least 2-3 useful tools with typed inputs/outputs
- Error Handling: Proper exception handling and validation
- Documentation: README with setup and usage instructions
- Testing: Basic test structure with coroutines