SK

sebastianaigner/kotlin-mcp-hue-light-sample

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

20 stars 4 forks 品質 21 トレンド 10

This repo contains supplemental code for this YouTube video.

概要

This repo contains supplemental code for this YouTube video. The Model Context Protocol Kotlin SDK (https://github.com/modelcontextprotocol/kotlin-sdk) makes it easy for you to build integrations between LLM clients like Claude Desktop and your own applications, whether that's software or hardware! Let's see it in practice: Join Sebastian Aigner building an integration between Hue Smart Lights and Claude Desktop, powered entirely by Kotlin. We walk through defining our interfaces, delegating some of the more mechanical tasks when working with Ktor to Junie, and then implement a basic version of an MCP using the official SDK for Kotlin. We use the MCP inspector to explore and debug our application, and finally integrate the Kotlin Gradle application with Claude Desktop by setting up the final configuration. In the end, we have a self-sufficient MCP server that can control smart lights with natural language! Junie, the coding agent by JetBrains: https://www.jetbrains.

README

🎥 Building MCP with Kotlin: Claude Desktop Controls my Smart Home Lights!

This repo contains supplemental code for this YouTube video.

The Model Context Protocol Kotlin SDK (https://github.com/modelcontextprotocol/kotlin-sdk) makes it easy for you to build integrations between LLM clients like Claude Desktop and your own applications, whether that’s software or hardware! Let’s see it in practice: Join Sebastian Aigner building an integration between Hue Smart Lights and Claude Desktop, powered entirely by Kotlin. We walk through defining our interfaces, delegating some of the more mechanical tasks when working with Ktor to Junie, and then implement a basic version of an MCP using the official SDK for Kotlin. We use the MCP inspector to explore and debug our application, and finally integrate the Kotlin Gradle application with Claude Desktop by setting up the final configuration. In the end, we have a self-sufficient MCP server that can control smart lights with natural language!

Junie, the coding agent by JetBrains: https://www.jetbrains.com/junie/

MCP Server Plugin for JetBrains IDEs: https://plugins.jetbrains.com/plugin/26071-mcp-server

MCP inspector: https://github.com/modelcontextprotocol/inspector

How to run

Run the installDist Gradle task, and point your MCP client to the generated startup script in build/install/huelight-mcp/bin.

GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →