The biggest challenge is code review with focus on security concerns, keeping ai instructions safe and secure, sandboxing and restricting agent permissions.
Latest Posts by Konstantin Pavlov
Check out my latest article: When Your #AI #Code #Agent Becomes an #RCE Engine kpavlov.me/blog/agent-p...
A library developer’s true compass is a simple question: Is this safe enough to power Orion?
#Orion #MissionCritical #CodingPhilosophy #CodingPrinciples #SoftwareEngineering
Mokksy just got a facelift✨💄
The go-to toolkit for mocking HTTP APIs with SSE streaming and LLMs now has a brand new design.
Explore the update at mokksy.dev
#AI #DeveloperTools #OpenSource #Kotlin #Mokksy #SoftwareTesting #ServiceVirtualization
Kotlin MCP SDK 0.11.0 is out!
Highlights:
- Elicitation support
- Upgraded to Kotlin 2.3, Ktor 3.3, serialization
- Configurable max request payload size + automatic JSON setup
- Full conformance test suite is finally green
github.com/modelcontext...
#Kotlin #MCP #AI #SDK #APIs #DeveloperTools
#Javable: generate Java-friendly wrappers for #Kotlin with #KSP
Annotate your Kotlin class and functions, and Kotlin Symbol Processor generate #CompletableFuture-based async adapters, blocking wrappers, and Java Stream-based #Flow collectors — with correct #CoroutineScope lifecycle management.
@Serializable
sealed class Animal {
@Serializable
data class Dog(val name: String, val breed: String) : Animal()
@Serializable
data class Cat(val name: String, val color: String) : Animal()
}
🔀 Sealed hierarchies, zero boilerplate
If you have a #Kotlin sealed class, the library now automatically generates correct oneOf schemas — including a discriminator type property per subclass, all wired up with $defs and $ref references.
kotlinx-schema v0.4 is out — with first-class sealed class support!
Excited to announce the release of kotlinx-schema 0.4.0, bringing one of the most requested features: polymorphic type support for JSON Schema and LLM function calling schemas.
github.com/kotlin/kotli...
#Kotlin API design cheat sheet: when to use params, defaults, builders & lambdas—w/ thresholds
github.com/kpavlov/kmon...
Yes, it’s a direct WireMock alternative but on Ktor. You may configure additional Ktor features with a lambda passed to the constructor. So, it supports everything what Ktor supports. I need to document it better.✍️
Please feel free to create a tickets on GitHub 🤗
mokksy.github.io/mokksy/-mokk...
That matters not just for human readers, but increasingly for LLM-based coding agents that work better with focused, well-scoped context. The remedy is not stricter Java-style rules, but deliberate balance: use detekt, agree on limits, and treat file size as a signal worth paying attention to.
Kotlin’s flexibility — multiple classes and extension functions in one file — is a feature, not a bug. But without team conventions and static analysis, files can quietly grow past 1,000 lines.
kpavlov.me/blog/kotlin-...
Spring Modulith is very valuable tool to avoid dependency cycles between modules in enterprise applications. Must-have tool for every serious project.
#Mokksy lets you test your service as a black box and simulate the kinds of failures that usually show up only after deployment. If you care about reliable releases, integration tests need to be part of your strategy. github.com/mokksy/mokksy
mokksy.dev
Unit tests won’t catch what breaks in production.
If your service talks to external HTTP systems — mocking isn’t enough. You miss real config, timeouts, retries, and streaming behaviour. #Mokksy is a #Kotlin mock server with real HTTP & SSE support for black-box integration tests.
#KSP #Maven plugin 0.4 is here!
Upgraded KSP v2.3.6, Kotlin 2.3, Java 17, and now supports processor class filtering
github.com/kpavlov/ksp-...
Great guide by #anthropic on how to write #AI #Agent #Skills
resources.anthropic.com/hubfs/The-Co...
#Kotlinx-schema now supports JSON Schema generation from #Kotlin #serializarion (SerialDescriptor) without KSP or reflection. And also KSP generator can extract property descriptions from KDoc
github.com/Kotlin/kotli...
#KSP #Maven plugin 0.3.0 is out:
- Dynamic configuration of plugin executions via Maven lifecycle
- Automatic detection of KSP/Kotlin configuration parameters
- KSP upgraded to **2.3.5**
github.com/kpavlov/ksp-...
See it is action in #KotlinxSchema: github.com/Kotlin/kotli...
This puzzle is quite beautiful! I hope it’s never used in production code🙃
#Kotlinx-schema has been released with function schema generation via #KSP plugin.
github.com/Kotlin/kotli...
🚀 #ksp-maven-plugin v0.2.0 is out!
Now processes both main AND test sources, making KSP integration with Maven even more powerful.
Perfect for Kotlin projects using symbol processing.
github.com/kpavlov/ksp-...
#Kotlin #Maven #KSP
- ClientStdioTransport was refactored to use Kolton Coroutines Flows and now can monitor STDERR, addressing #107
- StreamableHttpClientTransport now doesn’t fail on SSE message with empty “data” field
- Support list and resource notifications on server.
- Enabled running some TCK conformance tests
#Kotlin #MCP SDK v0.8.1 has been released
github.com/modelcontext...
#kotlinMcpSdk
Thanks, Suresh! I’m not sure if we should live in a single plugin. Schema generation isn’t super common usecase, and SchemaGenerator is a pretty general tool that can work with different types of schemas.
Recently open-sourced Kotlin Multiplatform library that generates JSON Schemas from your methods and classes at compile time and at runtime via reflection using Kotlin Symbol Processing (KSP). Want to hear your thought
github.com/Kotlin/kotli...
#kotlin #ksp #jsonschema #toolschema #codegeneration