Trending

Latest Posts by Konstantin Pavlov

The biggest challenge is code review with focus on security concerns, keeping ai instructions safe and secure, sandboxing and restricting agent permissions.

2 days ago 1 0 0 0

Check out my latest article: When Your #AI #Code #Agent Becomes an #RCE Engine kpavlov.me/blog/agent-p...

2 days ago 1 0 1 0

A library developer’s true compass is a simple question: Is this safe enough to power Orion?

#Orion #MissionCritical #CodingPhilosophy #CodingPrinciples #SoftwareEngineering

4 days ago 1 0 0 0
Preview
Mokksy and AI-Mocks — Mokksy Mokksy & AI-Mocks: The modern mock HTTP server for Kotlin & Ktor. High-fidelity mocking for OpenAI, Anthropic, Gemini, and SSE streaming where WireMock falls short.

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

4 days ago 1 0 0 0
LinkedIn This link will take you to a page that’s not on LinkedIn

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

5 days ago 0 0 0 0
Preview
GitHub - kpavlov/javable: Kotlin-Java interoperability wrapper generators Kotlin-Java interoperability wrapper generators. Contribute to kpavlov/javable development by creating an account on GitHub.

GitHub repo: github.com/kpavlov/java...

2 weeks ago 0 0 0 0
Preview
Javable: generate Java-friendly wrappers for Kotlin with KSP When building a Kotlin library, the JVM interop story is often painful: suspend functions expose a raw Continuation parameter in Java, Flow has no Java equivalent, and data classes with many parameter...

#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.

2 weeks ago 1 0 1 0

@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()
}

4 weeks ago 0 0 0 0

🔀 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.

4 weeks ago 0 0 1 0
Preview
GitHub - Kotlin/kotlinx-schema: Kotlin Multiplatform library that generates JSON Schemas from your methods and classes both at compile-time via Kotlin Symbol Processing(KSP) and at runtime via reflect... Kotlin Multiplatform library that generates JSON Schemas from your methods and classes both at compile-time via Kotlin Symbol Processing(KSP) and at runtime via reflection or kotlinx.serialization....

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...

4 weeks ago 1 0 1 0
Advertisement

#Kotlin API design cheat sheet: when to use params, defaults, builders & lambdas—w/ thresholds
github.com/kpavlov/kmon...

1 month ago 1 0 0 0
Preview
feat: WebSocket support · Issue #33 · mokksy/mokksy Implement websocket stubs/request marchers and response generation. The API might look like mokksy.websocket(path="/ws") { when { frame.body contains "Hello" } respondsWith { textFrame { "How can I...

Websockets API is definitely something that has to be built github.com/mokksy/mokks...

1 month ago 1 0 0 0
MokksyServer

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...

1 month ago 1 0 1 0

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.

1 month ago 1 0 0 0
Preview
Large files in Kotlin: causes, trade-offs, and practical remedies Kotlin's permissive file organization model enables expressive, cohesive code — but it also explains why large files are commonplace even in mature Kotlin libraries. This article examines the cultural...

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-...

1 month ago 0 0 1 0

Spring Modulith is very valuable tool to avoid dependency cycles between modules in enterprise applications. Must-have tool for every serious project.

1 month ago 2 2 0 0
Preview
Mokksy: A Mock Server That Actually Streams — and Why Your AI App Needs Integration Tests Why unit tests alone won’t save your LLM application in production, and how Mokksy — a Kotlin mock server with true SSE and streaming support — fills the gap that WireMock leaves wide open.

#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

1 month ago 0 0 0 0
Preview
Mokksy: A Mock Server That Actually Streams — and Why Your AI App Needs Integration Tests Why unit tests alone won’t save your LLM application in production, and how Mokksy — a Kotlin mock server with true SSE and streaming support — fills the gap that WireMock leaves wide open.

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.

1 month ago 1 0 2 0
Advertisement
Preview
Release 0.4.0 · kpavlov/ksp-maven-plugin What's Changed Adds glob-pattern processor filtering #43 by @kpavlov in #69 Update default kotlin version to 2.3 by @kpavlov Update min Java version to 17 by @kpavlov Fix maven parameter help gen...

#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-...

1 month ago 0 0 0 0
Post image

Great guide by #anthropic on how to write #AI #Agent #Skills
resources.anthropic.com/hubfs/The-Co...

1 month ago 7 3 0 0
Preview
Release 0.3.0 · Kotlin/kotlinx-schema What's Changed Breaking Changes Migrate "kotlinx-schema-generator-core" and "kotlinx-schema-generator-json to Kotlin Multiplatform (#147) by @kpavlov in #149 New features Extract parameter, fiel...

#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...

2 months ago 0 0 0 0
Preview
Release v0.3.0 · kpavlov/ksp-maven-plugin What's Changed ✨ New features Dynamic plugin execution configuration: Added KspLifecycleParticipant, enabling dynamic configuration of plugin executions based on the Maven lifecycle by @kpavlov ...

#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...

2 months ago 1 0 0 0

This puzzle is quite beautiful! I hope it’s never used in production code🙃

2 months ago 1 0 0 0
Release 0.0.3 · Kotlin/kotlinx-schema Important Changes feat: Implement compile-time function schema generation via KSP by @kpavlov in #44 breaking(schema): use ObjectPropertyDefinition for function parameters to match JSON Schema sem...

#Kotlinx-schema has been released with function schema generation via #KSP plugin.
github.com/Kotlin/kotli...

2 months ago 0 0 0 0
Release 0.2.0 · kpavlov/ksp-maven-plugin What's Changed Process main and test sources (#22) by @kpavlov in #35 Full Changelog: v0.1.3...v0.2.0

🚀 #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

3 months ago 0 0 0 0
Preview
Release 0.8.1 · modelcontextprotocol/kotlin-sdk What's Changed fix(stdio-client): Monitor STDERR and refactor StdioClientTransport to use flows. Fixes #107 by @kpavlov fix(sse-client): Skip SSE in StreamableHttpClientTransport when data is empt...

- 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

4 months ago 1 0 0 0
Advertisement
Release 0.8.1 · modelcontextprotocol/kotlin-sdk What's Changed fix(stdio-client): Monitor STDERR and refactor StdioClientTransport to use flows. Fixes #107 by @kpavlov fix(sse-client): Skip SSE in StreamableHttpClientTransport when data is empt...

#Kotlin #MCP SDK v0.8.1 has been released

github.com/modelcontext...
#kotlinMcpSdk

4 months ago 0 0 1 0

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.

4 months ago 1 0 0 0
Preview
GitHub - Kotlin/kotlinx-schema: 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... 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) - Kotlin/kotlinx-schema

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

4 months ago 1 0 1 0
Weekend hack: Kotlin Symbol Processing Maven Plugin KSP only works with Gradle, leaving Maven users out in the cold. I built ksp-maven-plugin to fix that - minimal setup, auto-discovers processors, integrates with Maven’s lifecycle. Now you can use KSP...

Just released KSP Maven Plugin 0.1.2 with latest Kotlin Symbol Processing 2.3.3 and plugin dependency fix.

- Blog post: kpavlov.me/blog/ksp-mav...
- Release github.com/kpavlov/ksp-...
#Kotlin #KSP #Maven

4 months ago 0 0 0 0