SDKMAN Interactive CLI

by ocean-zhc

1 167 downloads Not rated yet Apache-2.0
GitHub

About

A Model Context Protocol (MCP) server for SDKMAN. Can help you execute the SDK from any command line.

Details

License
Apache-2.0

Explore

- Interactive version selection with formatted display
- Version filtering by keyword (e.g., "21" for Java 21)
- Support for all SDKMAN candidates (Java, Kotlin, Gradle, etc.)
- Comprehensive command-line interface
- User-friendly display of version information

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name SDKMAN Interactive CLI
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

- Python 3.6+
- SDKMAN installed and configured
- Bash shell environment

result = sdk_interactive_install("java")

result = sdk_interactive_install("java", "21")


Install any SDKMAN candidate:

bash
python examples/install_sdk.py java # Install any Java version
python examples/install_sdk.py java 21 # Install Java 21.x
python examples/install_sdk.py kotlin # Install Kotlin
python examples/install_sdk.py gradle 8 # Install Gradle 8.x

bash
python examples/install_jdk.py # Install any JDK version
python examples/install_jdk.py 21 # Install JDK 21.x
```

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "sdkman interactive cli": {
            "sdkman-mcp": {
                "command": "python",
                "args": [
                    "examples/install_sdk.py",
                    "java",
                    "#",
                    "Install",
                    "any",
                    "Java",
                    "version"
                ]
            }
        }
    }
}

McpServers

{
    "sdkman-mcp": {
        "command": "python",
        "args": [
            "examples/install_sdk.py",
            "java",
            "#",
            "Install",
            "any",
            "Java",
            "version"
        ]
    }
}

An interactive command-line interface for SDKMAN (Software Development Kit Manager), making it easier to browse, filter, and install SDKs.

中文文档

Features

- Interactive version selection with formatted display
- Version filtering by keyword (e.g., "21" for Java 21)
- Support for all SDKMAN candidates (Java, Kotlin, Gradle, etc.)
- Comprehensive command-line interface
- User-friendly display of version information

Prerequisites

- Python 3.6+
- SDKMAN installed and configured
- Bash shell environment

Installation

Clone this repository:

git clone https://github.com/yourusername/sdkman-mcp.git
cd sdkman-mcp

Usage

As a Python Module

```python
from src.sdkman_mcp.sdk_commands import sdk_interactive_install

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.