struct

Smith::MCP::ServerSpec

Inherits Struct < Value < Object

One MCP server as mcp.json describes it. Two shapes:

  • stdio: a subprocess smith spawns (command, args, env)
  • Streamable HTTP: a URL smith talks to (url, headers)

url decides which: an entry with a url is an HTTP server, everything else is a subprocess.

Constructors

new(name : String, command : String | Nil = nil, args : Array(String) = Array(String).new, env : Hash(String, String) = Hash(String, String).new, url : String | Nil = nil, headers : Hash(String, String) = Hash(String, String).new, source : String = "")
Source

Instance methods

args
Source
command
Source
description

What smith starts or connects to — the line for smith mcp list.

Source
headers
Source
http?
Source
name
Source
source
Source
stdio?
Source