Skip to content

wayzer107/kotlin-lsp

v0.1.0Apache-2.0

Use kotlin-lsp for Kotlin code navigation and diagnostics in Codex.

Kotlin LSP

Use kotlin-lsp for Kotlin code navigation and diagnostics in Codex. Supported source extensions are .kt, .kts.

Prerequisites

  • Node.js 22 or newer on the Codex host's PATH.
  • Install the official standalone Kotlin LSP. Check the release notes for its bundled or required runtime. Put kotlin-lsp or the newer intellij-server executable on PATH. The bridge passes --stdio. Language-server documentation

Use in Codex

After adding the marketplace, install this plugin and start a new Codex conversation.

codex plugin add 'kotlin-lsp@codex-plugin-ports'

Ask Codex to use the kotlin-lsp language-server tools for your project. Call lsp_start with the absolute project root and poll lsp_status if initialization is pending. Queries use saved files and zero-based UTF-16 positions. The available features and indexing behavior depend on the native server.

Open trusted workspaces. A native language server can run build or project tools while indexing. Stop the workspace with lsp_stop when you finish or before starting another workspace.

Upstream and changes

Adapted from Anthropic's kotlin-lsp under the Apache License 2.0. This port keeps the upstream file mappings and uses a local MCP bridge to start the language server and query it from Codex.