{"repo":"ondrsh/mcp4k","free":true,"listed":false,"github":"https://github.com/ondrsh/mcp4k","clone":"git clone https://github.com/ondrsh/mcp4k.git","description":"Compiler-driven MCP framework for Kotlin Multiplatform","language":"Kotlin","stars":70,"topics":["agentic-ai","agents","ai","kmp","kmp-library","llm","mcp","modelcontextprotocol"],"license":"Apache-2.0","category":"ai-agents","readme_excerpt":"mcp4k is a compiler-driven framework for building both clients and servers using the Model Context Protocol (MCP) in Kotlin. It implements the vast majority of the MCP specification, including resources, prompts, tools, sampling, and more. mcp4k automatically generates JSON-RPC handlers, schema metadata, and manages the complete lifecycle for you. --- Overview - Client : Connects to any MCP server to request prompts, read resources, or invoke tools. - Server : Exposes resources, prompts, and tools to MCP-compatible clients, handling standard JSON-RPC messages and protocol events. - Transports : Supports stdio , with HTTP-Streaming and other transports on the roadmap. - Lifecycle : Manages initialization, cancellation, sampling, progress tracking, and more. mcp4k also enforces correct parameter typing at compile time. If you describe a tool parameter incorrectly, you get a compile-time error instead of a runtime mismatch. --- Installation Add mcp4k to your build: Version Compatibility mcp4k includes a compiler plugin that requires exact Kotlin version matching. Each mcp4k version is hard-linked to a specific Kotlin version: mcp4k Version Required Kotlin Version --------------- ------------------------- 0.4.11 2.4.0 0.4.10 2.3.21 0.4.9 2.3.20 0.4.8 2.3.10 0.4.7 2.3.0 0.4.6 2.2.21 0.4.5 2.2.20 0.4.4 2.2.10 0.4.2 - 0.4.3 2.2.0 --- Quick Start Create a Simple Server In this example, your new is exposed via JSON-RPC as . Clients can call it by sending messages. --- Create a Simple ","default_branch":null,"files":null,"tree":[],"storefront":"/r/ondrsh","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ondrsh/mcp4k/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}