You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Short: "Start an agent as an MCP (Model Context Protocol) server",
21
-
Long: "Start an stdio MCP server that exposes the agent via the Model Context Protocol",
26
+
Long: "Start an MCP server that exposes the agent via the Model Context Protocol. By default, uses stdio transport. Use --http to start a streaming HTTP server instead.",
22
27
Example: ` cagent mcp ./agent.yaml
23
28
cagent mcp ./team.yaml
24
-
cagent mcp agentcatalog/pirate`,
29
+
cagent mcp agentcatalog/pirate
30
+
cagent mcp ./agent.yaml --http --port 8080`,
25
31
Args: cobra.ExactArgs(1),
26
32
GroupID: "server",
27
33
RunE: flags.runMCPCommand,
28
34
}
29
35
36
+
cmd.PersistentFlags().BoolVar(&flags.http, "http", false, "Use streaming HTTP transport instead of stdio")
37
+
cmd.PersistentFlags().IntVar(&flags.port, "port", 0, "Port to listen on when using HTTP transport (default: random available port)")
0 commit comments