It's here! :rocket: Hot on the heels of the latest...
# feed
d
It's here! 🚀 Hot on the heels of the latest MCP specification—which we helped shape—we're proud to launch the first released JVM implementation of the http4k Model Context Protocol (MCP) SDK. Team #C5AL3AKUY involved in the discussions around evolving the MCP specification, contributing our expertise and insights to the open standard. Now, that spec is Gold, we're bringing those insights to life with an SDK that: 🌐 Delivers stateless HTTP MCP connections ☁️ Supports Server and Serverless deployments across on-prem and cloud platforms 🛡️ Maintains rock-solid testability that http4k is known for 🔒 Provides type-safe tooling 🔀 Switch protocols with 1 Line of Code . Maintains compatibility with the new and legacy transport versions. Key highlights: - First VM-based SDK for the new MCP spec - Native support for stateless AI interactions - Zero-compromise approach to testing AI integrations - Serverless deployment ready (AWS Lambda, GCP Functions) - Easy desktop integration with AI assistants like Claude Download it,have a play and come and tell us what you think in #C5AL3AKUY! 🙃 https://www.http4k.org/news/http4k_mcp_has_landed/
👍 4
👍🏾 1
d
Just wondering
🌐 Delivers stateless HTTP MCP connections
How do you achieve stateless connections when MCP protocol uses SSE ? Based on my understanding, current MCP protocol is unintentionally stateful?
d
you can't - you need to use the new HTTP streaming protocol to do this.
that spec only went gold this week, but we'd been sneakily implementing the protocol during the draft phase so it didn't take very long to do for us. I was actually quite annoyed because if I'd have had my machine yesterday we could have released it then! That will teach me to leave the house without a laptop! 😂
d
Got it, so in
2025-03-26
SSE is not a necessity. You have an option to directly POST and wait for the response, IMHO it feels more natural. However there is still "session" logic so fully stateless is practically impossible? (Unless you ignore sessions lol). I also wonder, what are the benefits of this sticky session in MCP?
d
For basic tools and resources, it's not much - because you're basically working with a cut down version of openAPI., but once you start introducing more distributed and agentic type behaviours into the mix then the benefits start to show. I'm putting a demos together round this stuff to get multi-agent workflows (where there are a network of servers connecting to each other and it's not just a single session)
🙌 1