Skip to main content
Glama
lkyprogramer

codex-java-lsp

by lkyprogramer

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
JDTLS_BINNo指定 jdtls 可执行文件。
JDTLS_FILEWATCHNo设为 `off` 可关闭 JDT LS 文件监听。
JDTLS_JAVA_HOMENo指定运行 JDT LS 的 Java home。
JAVA_LSP_JDTLS_XMXNo覆盖 JDT LS heap,例如 `2g`。
JAVA_LSP_LOMBOK_JARNo指定 Lombok javaagent。
JAVA_LSP_IDLE_TTL_MSNorepo 空闲后自动停止 JDT LS 的时间。
JAVA_LSP_PROJECTS_JSONNo覆盖 projects.json 路径。
JAVA_LSP_MAX_ACTIVE_REPOSNo限制同时活跃的 JDT LS repo 数。
CODEX_JAVA_LSP_RUNTIME_DIRNo覆盖用户级 runtime 目录。
JAVA_LSP_PROJECT_JAVA_HOMENo指定默认项目 JDK。
JAVA_LSP_PROJECT_JAVA_HOME_<ALIAS>No为某个 alias 指定项目 JDK,alias 会转成大写并把非字母数字替换成 `_`。
JAVA_LSP_DOCUMENT_SYMBOL_TIMEOUT_MSNodocumentSymbol warm-index 等待预算。
JAVA_LSP_DOCUMENT_SYMBOL_GLOBAL_CONCURRENCYNodocumentSymbol 全局并发。
JAVA_LSP_DOCUMENT_SYMBOL_PER_REPO_CONCURRENCYNodocumentSymbol 单 repo 并发。

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
java_statusB

Return repo, JDT LS, watcher, source index, and router cache status; pass start=true to start JDT LS.

java_impactC

Build a compact Java impact plan with source-index routing, internal rg summary, optional bounded LSP enrichment, and read plan.

java_symbolB

Search workspace symbols by query or inspect hover/definition/implementation at a file position.

java_referencesC

Return summary-only references for a precise Java symbol position.

java_diagnosticsC

Open Java files and return JDT LS diagnostics after a short wait.

java_restartC

Restart the current JDT LS session; clear cache only when explicitly requested.

java_shutdownB

Stop the current JDT LS child process while keeping the MCP server alive.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/lkyprogramer/codex-java-lsp-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server