Packages

Model Context Protocol (MCP) implementation in Elixir with Phoenix integration

Retired package: Release invalid - Accidental version. Use 0.3.0 instead.

Current section

Files

Jump to
backplane_mcp_protocol lib mix interactive shell.ex
Raw

lib/mix/interactive/shell.ex

defmodule Mix.Interactive.Shell do
@moduledoc false
alias Mix.Interactive.Commands
alias Mix.Interactive.UI
@doc """
Main command loop for interactive shells.
"""
def loop(client) do
IO.write("#{UI.colors().prompt}mcp> #{UI.colors().reset}")
""
|> IO.gets()
|> String.trim()
|> Commands.process_command(client, fn -> loop(client) end)
end
end