mitigated fmt warnings
This commit is contained in:
@@ -168,7 +168,8 @@ var defaultMCPFactory MCPClientFactory = func(toolset string) (MCPClientInterfac
|
||||
|
||||
// Use WithCommandFunc to configure the command environment
|
||||
c, err = client.NewStdioMCPClientWithOptions(command, env, args,
|
||||
transport.WithCommandFunc(func(ctx context.Context, command string, env []string, args []string) (*exec.Cmd, error) {
|
||||
transport.WithCommandFunc(func(ctx context.Context, command string,
|
||||
env []string, args []string) (*exec.Cmd, error) {
|
||||
cmd := exec.CommandContext(ctx, command, args...)
|
||||
cmd.Env = env
|
||||
return cmd, nil
|
||||
|
||||
Reference in New Issue
Block a user