MCP.so
登录

MCP Kotlin Server Sample

@wujingwe

基本信息

分类

其他

传输方式

stdio

作者

wujingwe

关于 MCP Kotlin Server Sample

暂无概览

MCP Kotlin Server Sample 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

MCP Kotlin Server Sample 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is MCP Kotlin Server Sample?

MCP Kotlin Server Sample is a sample implementation of an MCP (Model Communication Protocol) server in Kotlin. It demonstrates different server configurations and transport methods for both JVM and WASM targets. It is intended for developers learning or prototyping MCP server implementations in Kotlin.

How to use MCP Kotlin Server Sample?

Run the server on JVM with ./gradlew runJvm (defaults to SSE mode with Ktor plugin on port 3001). Run on WASM (Node.js) with ./gradlew wasmJsNodeDevelopmentRun. Connect using the MCP inspector to http://localhost:<port>/sse.

Key features of MCP Kotlin Server Sample

  • Supports Standard I/O, plain SSE, and Ktor plugin SSE transports
  • Available on JVM and Kotlin/WASM (Node.js)
  • Built-in capabilities for Prompts, Resources, and Tools
  • Prompts include list change notifications
  • Resources support subscriptions and list change notifications
  • Tools include list change notifications

Use cases of MCP Kotlin Server Sample

  • Learning how to build an MCP server in Kotlin
  • Testing MCP client interactions with different transport modes
  • Prototyping multiplatform MCP server configurations
  • Demonstrating SSE and stdio server implementations

常见问题

1

What runtimes are supported by MCP Kotlin Server Sample?

JVM and Kotlin/WASM on Node.js.

2

How do I start the server?

On JVM: `./gradlew runJvm`. On WASM: `./gradlew wasmJsNodeDevelopmentRun`.

3

What transport methods are available?

Standard I/O (JVM only), SSE with plain configuration (JVM, WASM), and SSE using Ktor plugin (JVM, WASM).

4

What is the default port for the SSE server?

Port 3001.

5

How can I connect to the running server?

Use the MCP inspector and connect to `http://localhost:<port>/sse`.

评论

其他 分类下的更多 MCP 服务器