Skip to main content
Glama

mcp-sbt-shell

An MCP server for executing commands in a persistent sbt shell session.

Quick Start

Installation

pip install mcp-sbt-shell

Basic Usage

Start the server with default settings:

mcp_sbt_shell

Custom Options

  • --sbt-executable: sbt executable path (default: sbt.bat)

  • --cwd: Working directory (default: current directory)

  • --port: Server port (default: 8080)

  • --timeout: Command timeout in seconds (default: 30)

Related MCP server: Interactive Shell MCP

Tools

sbt_execute

Execute commands in a persistent sbt shell session. This tool maintains a long-running sbt process to avoid startup overhead and provides direct access to sbt's build capabilities.

Parameters:

  • command (string) - Required. The sbt command to execute (e.g., "compile", "test", "run")

Returns:

  • output (string) - The complete output from the sbt command execution, including any compilation messages, test results, or error information.

The tool will execute the command in the configured sbt session and return the full output, making it suitable for compiling code, running tests, packaging applications, or any other sbt task supported by your project's build configuration.

How it works

It sends command to sbt shell, then waits for byte sequence (\x1b\x5b\x3f\x32\x30\x30\x34\x68\x3e\x2e\x2e\x2e\x2e) that signals the end of command execution (tested on Windows with sbt.bat).

Prerequisites

  • Python 3.11+

  • sbt installed and in PATH

  • Scala project with build.sbt in the working directory

F
license - not found
-
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    D
    maintenance
    Enables LLMs to create and manage persistent, interactive shell sessions with full terminal emulation and PTY support. It allows for sequential command execution and supports interactive programs like vim or htop through specialized streaming and snapshot output modes.
    Last updated
    4
    MIT
  • A
    license
    -
    quality
    D
    maintenance
    Enables creation and management of persistent REPL sessions for various languages and shells, with web-based monitoring and session recovery capabilities.
    Last updated
    18
    3
    MIT

View all related MCP servers

Related MCP Connectors

  • Operate your Linux servers from your LLM. Every action runs through an auditable allowlist.

  • Persistent memory and cross-session learning for AI coding assistants (hosted remote MCP).

  • Connect to PlanetScale databases, branches, schema, query insights, and execute SQL

View all MCP Connectors

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/mozhaa/mcp-sbt-shell'

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