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 = "")
SourceInstance methods
args
Sourcecommand
Sourceenv
Sourceheaders
Sourcehttp?
Sourcename
Sourcesource
Sourcestdio?
Sourceurl
Source