mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
24 lines
668 B
Ruby
24 lines
668 B
Ruby
![]() |
# typed: strong
|
||
|
# frozen_string_literal: true
|
||
|
|
||
|
require "abstract_command"
|
||
|
require "shell_command"
|
||
|
|
||
|
module Homebrew
|
||
|
module Cmd
|
||
|
class McpServerCmd < AbstractCommand
|
||
|
# This is a shell command as MCP servers need a faster startup time
|
||
|
# than a normal Homebrew Ruby command allows.
|
||
|
include ShellCommand
|
||
|
|
||
|
cmd_args do
|
||
|
description <<~EOS
|
||
|
Starts the Homebrew MCP (Model Context Protocol) server.
|
||
|
EOS
|
||
|
switch "-d", "--debug", description: "Enable debug logging to stderr."
|
||
|
switch "--ping", description: "Start the server, act as if receiving a ping and then exit.", hidden: true
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|