Add change summaries, inline diff hunks and screenshots to reviews
This commit is contained in:
@@ -41,6 +41,7 @@ type Options struct {
|
||||
Guidance string
|
||||
Hooks map[string][]HookMatcher
|
||||
MCPServers []*mcp.Server
|
||||
StdioMCP []mcp.Stdio
|
||||
Transcript io.Writer
|
||||
OnBadLine func(line []byte, reason string)
|
||||
}
|
||||
@@ -303,6 +304,9 @@ func (s *Session) buildArgs(opts Options) ([]string, error) {
|
||||
s.servers[srv.Name] = srv
|
||||
servers[srv.Name] = map[string]any{"type": "sdk", "name": srv.Name, "alwaysLoad": true}
|
||||
}
|
||||
for _, srv := range opts.StdioMCP {
|
||||
servers[srv.Name] = map[string]any{"type": "stdio", "command": srv.Command, "args": srv.Args}
|
||||
}
|
||||
|
||||
mcpConfig, err := json.Marshal(map[string]any{"mcpServers": servers})
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user