Prompt AI chat with questions like:
- "How many Electrolux Appliances do I have?" or
- "What is the color of my Electrolux Air Purifier?"
Although the LLM model was not trained for that, you get correct answers!
How? Run this code and get surprised.
+------------------------+ MCP Protocol +-----------------+ REST API +--------------------+ +-----------------------------------+
| AI Chat (LLM) | <--------------------> | MCP Server | <-----------------> | Electrolux Cloud |<-----------------> | Home Appliance |
| (Claude, ChatGPT, ...) | | (This Code) | | | | (Vacuum, Oven, Air Purifier, ...) |
+------------------------+ +-----------------+ +--------------------+ +-----------------------------------+
* ./mvnw clean install -DskipTestsTo integrate with Claude Desktop, add the following configuration to the file claude_desktop_config.json.
Typical locations of claude_desktop_config.json:
- Windows: C:\Users<YourUser>\AppData\Roaming\Claude\claude_desktop_config.json
- macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
- Linux: ~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"mcp-stdio-server": {
"command": "java",
"args": [
"-Dspring.ai.mcp.server.stdio=true",
"-Dspring.main.web-application-type=none",
"-Dlogging.pattern.console=",
"-jar",
"<ABSOLUTE-PATH-TO-PROJECT>\\target\\mcp-stdio-server-0.0.1-SNAPSHOT.jar"
]
}
}
}For authentication Electrolux API requires an API key and JWT token. AI chat assistant will ask for them during the first interaction. Login to Electrolux for Developers Portal to get them.
- Run: McpClient
- Implement commands such as “Turn on the air purifier,” “If my living room hasn’t been cleaned for two days, clean it now,” etc.
- Implement Streamable HTTP transport (currently only stdio is supported)
- Try more assistants, not only Claude Desktop